Browse Source

no message

linwenxin 4 months ago
parent
commit
9161585339
1 changed files with 21 additions and 6 deletions
  1. 21 6
      src/packageMine/pages/myWebsit.vue

+ 21 - 6
src/packageMine/pages/myWebsit.vue

@@ -17,7 +17,14 @@
           </view>
         </view>
         <view class="search-container">
-          <u-search shape="round" :showAction="false" placeholder="输入网点名称搜索" v-model="keyword"> </u-search>
+          <u-search
+            shape="round"
+            :showAction="false"
+            placeholder="输入网点名称搜索"
+            v-model="keyword"
+            @search="getList"
+          >
+          </u-search>
         </view>
       </view>
       <zj-page-fill>
@@ -27,8 +34,8 @@
           @refresherrefresh="refresherrefresh"
           @scrolltolower="scrolltolower"
         >
-          <view class="list-container" v-if="showDataList.length > 0">
-            <view class="mode" @click="navToPage(item)" v-for="(item, index) in showDataList" :key="index">
+          <view class="list-container" v-if="dataList.length > 0">
+            <view class="mode" @click="navToPage(item)" v-for="(item, index) in dataList" :key="index">
               <view class="flex_asb order">
                 <view class="title"></view>
                 <view class="status">{{
@@ -127,9 +134,6 @@ export default {
   computed: {
     userInfo() {
       return getStorage('user')
-    },
-    showDataList() {
-      return this.dataList.filter(item => !!~item.name.indexOf(this.keyword))
     }
   },
   methods: {
@@ -162,6 +166,17 @@ export default {
                 isAll: true
               }
             }
+          })(),
+          ...(() => {
+            if (!!this.keyword) {
+              return {
+                websitName: this.keyword
+              }
+            } else {
+              return {
+                rice: 50000
+              }
+            }
           })()
         })
         .then(res => {