Browse Source

首页bug修复

chenjj 2 days ago
parent
commit
ed27bec807
2 changed files with 13 additions and 2 deletions
  1. 9 1
      pages/chat.vue
  2. 4 1
      pages/index.vue

+ 9 - 1
pages/chat.vue

@@ -21,7 +21,7 @@
                         <view class="chat-sys-title">收到{{xt_count}}条系统提醒
                             <view class="chat-num sys-ab" v-if="xt_count > 0">{{ xt_count }}</view>
                         </view>
-                        <view class="chat-sys-btn">去查看</view>
+                        <view class="chat-sys-btn" @click="goSys()">去查看</view>
                     </view>
                 </view>
                 <view v-if="list && list.length > 0" class="chat-list">
@@ -119,6 +119,14 @@ const xt_count = computed(() =>{
     return 0
 })
 
+const goSys =()=>{
+    const  count = list.value.filter(item => item.conversationType === '3')
+    if(count && count.length >0){
+        const data = count[0];
+        onClick(data);
+    }
+}
+
 const loadmoreInfo = ref({
     status: 'loadmore',
     loadingText: '努力加载中...',

+ 4 - 1
pages/index.vue

@@ -1,7 +1,9 @@
 <template>
   <view>
     <!-- 首页顶部定位区域 -->
-    <view class="home-banner" :class="{ 'home-banner-with-bg': showAddressBg }">
+    <view class="home-banner" 
+    :class="{ 'home-banner-with-bg': showAddressBg }"
+    >
       <view class="home-banner-left" @click="cityClick">
         <img src="@/static/uview/common/map-pin-fill@1x.png" alt="" class="map-pin-fill">
         <text class="address-text">{{ data.address.name }}</text>
@@ -70,6 +72,7 @@
 
       <view class="safe-area-bottom"></view>
     </view>
+  </view>
 </template>
 
 <script setup>