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