|
|
|
@ -34,10 +34,11 @@ Page({ |
|
|
|
gp_id: app.globalData.gp_id || app.globalData.team_id, |
|
|
|
}) |
|
|
|
console.log(app.globalData); |
|
|
|
let price = 0, sku_id = []; |
|
|
|
let price = 0, sku_id = [] ,postFee= 0; |
|
|
|
app.globalData.postProduct.map(item => { |
|
|
|
if (!app.globalData.kjId && !this.data.gp_id) { |
|
|
|
price = price + item.sku.price * item.productNum; |
|
|
|
postFee +=item.postFee |
|
|
|
} |
|
|
|
else if (this.data.gp_id) { |
|
|
|
price = price + item.sku.event_price * item.productNum; |
|
|
|
@ -50,12 +51,12 @@ Page({ |
|
|
|
}) |
|
|
|
this.setData({ |
|
|
|
showPrice: app.globalData.kjId ? 0 : price, |
|
|
|
postFee:postFee, |
|
|
|
sku_id: sku_id.join(",") |
|
|
|
}) |
|
|
|
if (!this.data.kjId && !this.data.gp_id) { |
|
|
|
this.couponCom = this.selectAllComponents("#coupon")[0]; |
|
|
|
} |
|
|
|
console.log(this.data.showPrice) |
|
|
|
}, |
|
|
|
order: function (){ |
|
|
|
console.log(app.globalData.createDate); |
|
|
|
|