|
@@ -310,7 +310,7 @@
|
|
this.allPrice = data.totalPrice
|
|
this.allPrice = data.totalPrice
|
|
this.rechargeGoods = data.includeRecharge
|
|
this.rechargeGoods = data.includeRecharge
|
|
this.clauseList = data.clauseList
|
|
this.clauseList = data.clauseList
|
|
- this.postageParam.productIds = this.getProductIds(data.list)
|
|
|
|
|
|
+ this.postageParam.skuIds = this.getProductIds(data.list)
|
|
this.isCouponShow = true
|
|
this.isCouponShow = true
|
|
if(this.couponList.length>0){
|
|
if(this.couponList.length>0){
|
|
this.couponAmount = data.couponList[0].couponAmount
|
|
this.couponAmount = data.couponList[0].couponAmount
|
|
@@ -341,13 +341,13 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getProductIds(list){// 获取订单商品id列表
|
|
getProductIds(list){// 获取订单商品id列表
|
|
- let productIds = []
|
|
|
|
|
|
+ let skuId = []
|
|
list.forEach(function(supplier){
|
|
list.forEach(function(supplier){
|
|
supplier.cartList.forEach(function(product){
|
|
supplier.cartList.forEach(function(product){
|
|
- productIds.push(product.productId)
|
|
|
|
|
|
+ skuId.push(product.skuId)
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- return productIds.join(',')
|
|
|
|
|
|
+ return skuId.join(',')
|
|
},
|
|
},
|
|
getFreightData(){//获取邮费信息
|
|
getFreightData(){//获取邮费信息
|
|
this.OrderService.GetOrderPostage(this.postageParam).then(response =>{
|
|
this.OrderService.GetOrderPostage(this.postageParam).then(response =>{
|