zs 2 years ago
parent
commit
2bcdf5d369
1 changed files with 9 additions and 0 deletions
  1. 9 0
      pagesHome/order/order.vue

+ 9 - 0
pagesHome/order/order.vue

@@ -134,6 +134,8 @@
 				type: '0',
 				// 团id
 				group_id: '',
+				// 分享人id
+				inviter: '',
 			};
 		},
 		onLoad: function(e) {
@@ -187,6 +189,7 @@
 						total_detail: that.total_detail,
 						coupon: that.coupon,
 						type: that.type,
+						inviter: that.inviter
 					}
 					if (that.group_id) {
 						data.group = that.group_id
@@ -308,11 +311,17 @@
 					key: that.key
 				})
 				if (arr.errcode == '0') {
+					// 分享人id
+					that.$set(that, `inviter`, arr.data.inviter);
+					// 地址
 					that.$set(that, `address`, arr.data.address);
+					// 订单
 					that.$set(that, `orderList`, arr.data.goodsData);
+					// 总价
 					that.$set(that, `total_detail`, arr.data.orderTotal);
 					that.$set(that, `type`, arr.data.type);
 					this.computedTotal();
+					// 优惠劵
 					that.$set(that, `couponList`, arr.data.couponList);
 				}
 			},