zs vor 2 Jahren
Ursprung
Commit
ffe00f7b6e
2 geänderte Dateien mit 3 neuen und 9 gelöschten Zeilen
  1. 2 8
      pages/home/index.vue
  2. 1 1
      pagesMy/order/index.vue

+ 2 - 8
pages/home/index.vue

@@ -149,18 +149,12 @@
 					status: '0'
 				});
 				if (res.errcode == '0') {
-					let data = res.data.sort(function(a, b) {
-						return a.sort - b.sort
-					});
-					that.$set(that, `bannerList`, data);
+					that.$set(that, `bannerList`, res.data);
 				}
 				// 首页模块管理
 				res = await that.$api(`/indexModule`, 'GET', {});
 				if (res.errcode == '0') {
-					let data = res.data.sort(function(a, b) {
-						return a.sort - b.sort
-					});
-					that.$set(that, `btnList`, data);
+					that.$set(that, `btnList`, res.data);
 				}
 				// 推荐好货
 				res = await that.$api(`/viewGoods/iatg`, 'GET', {});

+ 1 - 1
pagesMy/order/index.vue

@@ -522,7 +522,7 @@
 				});
 			},
 			// 拒收
-			async toReject(e) {
+			async toReject(e) { 
 				const that = this;
 				uni.showModal({
 					title: '提示',