shish 3 лет назад
Родитель
Сommit
f48254aa76
3 измененных файлов с 17 добавлено и 17 удалено
  1. 3 7
      ghsApp/src/admin/home/me.vue
  2. 13 10
      ghsApp/src/admin/home/member.vue
  3. 1 0
      ghsApp/src/admin/home/order.vue

+ 3 - 7
ghsApp/src/admin/home/me.vue

@@ -210,13 +210,9 @@ export default {
     this.init()
   },
   onShow () {
-    // #ifdef APP-PLUS
-    // 只让 ios 加载,安卓不加载(如果这边安卓加载,可能会发生请求二次 /shop/all)
-    let type = uni.getSystemInfoSync().platform
-    if(type == 'ios'){
-      this.init()
-    }
-    // #endif
+
+    this.init()
+
   },
   onLoad(){
     // #ifdef APP-PLUS

+ 13 - 10
ghsApp/src/admin/home/member.vue

@@ -103,7 +103,7 @@ export default {
 	},
   onPullDownRefresh() {
     this.resetList();
-    this._list()
+    this.getCustomList()
     uni.stopPullDownRefresh()
   },
   onReachBottom() {
@@ -112,12 +112,12 @@ export default {
         this.list.finished = true
         return;
       }
-      this._list().then((res) => {
+      this.getCustomList().then((res) => {
         uni.stopPullDownRefresh();
       }).catch(err => {
         this.$msg('网络异常,重新加载');
-        this.resetList();
-        this._list()
+        this.resetList()
+        this.getCustomList()
         uni.stopPullDownRefresh()
       })
     } else {
@@ -125,10 +125,13 @@ export default {
     }
   },
   onLoad(option) {
-    this._list();
+    this.getCustomList()
   },
 	onShow(){
-		uni.removeStorageSync('newClient');
+		uni.removeStorageSync('newClient')
+
+    this.resetList()
+    this.getCustomList()
 	},
   methods: {
     init(){
@@ -147,9 +150,9 @@ export default {
     searchFn(e) {
       this.resetList();
       this.seekVal = e;
-      this._list();
+      this.getCustomList();
     },
-    _list() {
+    getCustomList() {
       return getList({
           search: "",
           type:this.tabIndex,
@@ -164,7 +167,7 @@ export default {
         }).catch(err => {
           this.$msg('网络异常,重新加载');
           this.resetList();
-          this._list()
+          this.getCustomList()
           uni.stopPullDownRefresh()
         })
     },
@@ -174,7 +177,7 @@ export default {
       }
       this.tabIndex = e.index;
       this.resetList();
-      this._list();
+      this.getCustomList();
     },
   },
 };

+ 1 - 0
ghsApp/src/admin/home/order.vue

@@ -140,6 +140,7 @@ export default {
 	  //#endif
   },
   onShow() {
+    this.resetList()
     this.init()
   },
   methods: {