zs 2 年 前
コミット
e6cae6efa0
1 ファイル変更4 行追加1 行削除
  1. 4 1
      pagesHome/order/order.vue

+ 4 - 1
pagesHome/order/order.vue

@@ -123,6 +123,8 @@
 				orderList: [],
 				shop: [],
 				goods_total: 0,
+				// 金额明细
+				total_detail:{},
 				// 收货地址
 				addressList: [],
 			};
@@ -185,7 +187,7 @@
 				let data = {
 					address: that.address,
 					goods: that.orderList,
-					total_detail: that.goods_total
+					total_detail: that.total_detail
 				}
 				const arr = await that.$api(`/order`, 'POST', data)
 				if (arr.errcode == '0') {
@@ -233,6 +235,7 @@
 				if (arr.errcode == '0') {
 					that.$set(that, `address`, arr.data.address);
 					that.$set(that, `orderList`, arr.data.goodsData);
+					that.$set(that, `total_detail`, arr.data.orderTotal);
 					var total = arr.data.orderTotal.freight_total + arr.data.orderTotal.goods_total
 					that.$set(that, `goods_total`, total);
 				}