zs 2 gadi atpakaļ
vecāks
revīzija
a08bcdfedc
2 mainītis faili ar 5 papildinājumiem un 15 dzēšanām
  1. 4 14
      pagesHome/order/detail.vue
  2. 1 1
      pagesHome/order/order.vue

+ 4 - 14
pagesHome/order/detail.vue

@@ -282,8 +282,7 @@
 				// 优惠
 				discount: {},
 				// 底部菜单
-				options: [ //
-					{
+				options: [{
 						icon: 'shop',
 						text: '店铺',
 						type: 'shop',
@@ -296,8 +295,7 @@
 						route: 'pages/market/index',
 					},
 				],
-				buttonGroup: [ //
-					{
+				buttonGroup: [{
 						text: '加入购物车',
 						backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
 						color: '#fff',
@@ -404,7 +402,6 @@
 					shop: that.info?.shop?._id
 				});
 				if (res.errcode == '0') that.$set(that, `shopColect`, res.data)
-
 			},
 			// 查询商品信息
 			async search() {
@@ -445,16 +442,9 @@
 						that.$set(that, `info`, data);
 						// 优惠
 						act = data.act.find(i => i.type == '5')
-						if (act) {
-							var text = act.text.split(';')
-							that.$set(that.discount, `full_decrement`, text);
-						}
-
+						if (act) that.$set(that.discount, `full_decrement`, act.text.split(';'));
 						act = data.act.find(i => i.type == '6')
-						if (act) {
-							var text = act.text.split(';')
-							that.$set(that.discount, `full_fold`, text);
-						}
+						if (act) that.$set(that.discount, `full_fold`, act.text.split(';'));
 						// 查询规格
 						that.searchSpecs(data.specs);
 						// 查询评价数

+ 1 - 1
pagesHome/order/order.vue

@@ -326,7 +326,7 @@
 					// 总价
 					that.$set(that, `total_detail`, arr.data.orderTotal);
 					that.$set(that, `type`, arr.data.type);
-					this.computedTotal();
+					that.computedTotal();
 					// 优惠劵
 					that.$set(that, `couponList`, arr.data.couponList);
 				}