Browse Source

订单列表

shish 5 years ago
parent
commit
f80683a6a9
1 changed files with 2 additions and 37 deletions
  1. 2 37
      ghsApp/src/admin/home/order.vue

+ 2 - 37
ghsApp/src/admin/home/order.vue

@@ -214,8 +214,6 @@ export default {
     }
   },
   mounted() {
-    // getCategory()
-    // getUsage()
   },
   onLoad(option) {
     let dateDefaultOption = [];
@@ -233,15 +231,10 @@ export default {
       uni.removeStorageSync("switchTabQuery");
       this.tabIndex = parseInt(tabIndex.tabIndex);
     }
+    this._list();
   },
   onShow() {
-  	this.resetList();
-    let tabIndex = uni.getStorageSync("switchTabQuery") || null;
-    if (tabIndex) {
-      uni.removeStorageSync("switchTabQuery");
-      this.tabIndex = parseInt(tabIndex.tabIndex);
-    }
-    this._list();
+
   },
   methods: {
     selectTime(type) {
@@ -377,7 +370,6 @@ export default {
           }
         }
 
-
       });
     },
     change(e) {
@@ -391,12 +383,6 @@ export default {
       }
     },
     // 免发货
-    // freeShippingFn(item, index) {
-    //   // this.operateIndex = index;
-    //   this.operateData = item;
-    //   this.freeShipModal = true;
-    // },
-    // 免发货
     freeShipModalClick(e) {
       freeShipping({ id: this.operateData.id }).then((res) => {
         this._list();
@@ -416,31 +402,10 @@ export default {
     // 关闭弹窗
     modalCancel() {
       this.freeShipModal = false;
-      // this.classifyModal = false;
     },
     classifyOrder(id) {
-      // this.classifyModal = true
       this.currentOrderId = id;
     },
-    // confirmClassify(e) {
-    // 	if (e.index === 0) {
-    // 		this.modalCancel()
-    // 	} else {
-    // 		orderClass({
-    // 			id: this.currentOrderId,
-    // 			...this.classifyForm
-    // 		}).then(res => {
-    //       this.classifyModal = false;
-    // 			this.$msg('分类成功!')
-    // 		})
-    // 	}
-    // },
-    // selCategoryFn(item) {
-    //   this.classifyForm.categoryId = item.id
-    // },
-    // selUsageFn(item) {
-    //   this.classifyForm.usageId = item.id
-    // }
   },
 };
 </script>