Parcourir la source

修改订单查询

zs il y a 1 an
Parent
commit
778e187801
2 fichiers modifiés avec 4 ajouts et 32 suppressions
  1. 2 16
      pagesMy/order/all.vue
  2. 2 16
      pagesMy/order/index.vue

+ 2 - 16
pagesMy/order/all.vue

@@ -180,8 +180,6 @@
 		},
 		data() {
 			return {
-				// 店铺id
-				shop: '',
 				// 设备平台信息
 				system: {},
 				user: {},
@@ -238,7 +236,7 @@
 						// 设备平台信息
 						let config = that.$config;
 						that.$set(that, `system`, config.system);
-						that.searchShop()
+						that.search()
 					},
 					fail: function(err) {
 						uni.navigateTo({
@@ -255,8 +253,7 @@
 					let info = {
 						skip: that.skip,
 						limit: that.limit,
-						customer: user._id,
-						shop: that.shop
+						customer: user._id
 					}
 					let res;
 					if (that.tabs.active == '1') {
@@ -687,17 +684,6 @@
 				that.$set(that, `skip`, 0)
 				that.$set(that, `limit`, 6)
 				that.$set(that, `page`, 0)
-			},
-			// 店铺信息
-			searchShop() {
-				const that = this;
-				uni.getStorage({
-					key: 'shop',
-					success: async function(res) {
-						that.$set(that, `shop`, res.data);
-						await that.search();
-					}
-				})
 			}
 		}
 	}

+ 2 - 16
pagesMy/order/index.vue

@@ -188,8 +188,6 @@
 		},
 		data() {
 			return {
-				// 店铺id
-				shop: '',
 				// 系统设置
 				config: {},
 				// 设备信息
@@ -258,7 +256,7 @@
 						if (user) {
 							that.$set(that, `user`, user)
 							that.clearPage();
-							that.searchShop();
+							that.search();
 						}
 					}
 				})
@@ -271,8 +269,7 @@
 					skip: that.skip,
 					limit: that.limit,
 					customer: user._id,
-					status: status,
-					shop: that.shop
+					status: status
 				}
 				let res;
 				if (status == '0') {
@@ -607,17 +604,6 @@
 				that.$set(that, `skip`, 0)
 				that.$set(that, `limit`, 6)
 				that.$set(that, `page`, 0)
-			},
-			// 店铺信息
-			searchShop() {
-				const that = this;
-				uni.getStorage({
-					key: 'shop',
-					success: async function(res) {
-						that.$set(that, `shop`, res.data);
-						await that.search();
-					}
-				})
 			}
 		},
 	}