shish 3 anni fa
parent
commit
074390a290
1 ha cambiato i file con 9 aggiunte e 12 eliminazioni
  1. 9 12
      ghsApp/src/admin/home/order.vue

+ 9 - 12
ghsApp/src/admin/home/order.vue

@@ -113,12 +113,12 @@ export default {
   },
   onPullDownRefresh() {
     this.resetList();
-    this._list()
+    this.getOrderList()
     uni.stopPullDownRefresh()
   },
   onReachBottom() {
     if (!this.list.finished) {
-      this._list().then((res) => {
+      this.getOrderList().then((res) => {
         uni.stopPullDownRefresh();
       });
     } else {
@@ -127,27 +127,24 @@ export default {
   },
   mounted() {
   },
-  onLoad(option) {
+  onLoad() {
     let tabIndex = uni.getStorageSync("switchTabQuery") || null;
     if (tabIndex) {
       uni.removeStorageSync("switchTabQuery");
       this.tabIndex = parseInt(tabIndex.tabIndex);
     }
-    this._list();
-
     // #ifdef APP-PLUS
     if(this.$util.isScanEnv()){
       this.isScanEnv = true
     }
 	  //#endif
-
   },
   onShow() {
-
+    this.init()
   },
   methods: {
     init(){
-
+      this.getOrderList()
     },
     printOrder(item){
       let that = this
@@ -185,14 +182,14 @@ export default {
       this.startTime = val.startTime
       this.endTime = val.endTime
       this.resetList();
-      this._list();
+      this.getOrderList();
     },
     searchFn(e) {
       this.resetList();
       this.seekVal = e;
-      this._list()
+      this.getOrderList()
     },
-    _list() {
+    getOrderList() {
       return getListB({
         searchTime: this.searchTime,
         startTime: this.startTime,
@@ -216,7 +213,7 @@ export default {
       } else {
         this.tabIndex = e.index;
         this.resetList();
-        this._list();
+        this.getOrderList();
       }
     },
     // 关闭弹窗