Commit 7b62ed026dba055c4734770669b6c1f66702843a

Authored by vking
1 parent ebd3a6e7

商家红包活动

... ... @@ -210,7 +210,20 @@ Page({
}
*/
this.detailData.rdateStr = util.unixtoTime(this.detailData.ddate, tpl)
if(this.detailData.order_info && this.detailData.order_info.status==3){ //已支付
let ores = await App.Customer.GetOrderInfo({rid: id});
let discount={pt:0,se:0}
ores.data.discount.forEach(q=>{
if(q.checked){
if(q.owner==1){//平台
discount.pt+=parseFloat(q.price)
}else{
discount.se+=parseFloat(q.price)
}
}
})
this.detailData.order_info.price=(this.detailData.order_info.price-discount.se).toFixed(2)
}
this.setData({
tables: res.data.tables,
bookInfo: this.detailData,
... ...
... ... @@ -504,7 +504,7 @@
"id": 60,
"name": "pack-book/pages/book/b_detail",
"pathName": "pack-book/pages/book/b_detail",
"query": "id=62202",
"query": "id=66538",
"scene": null
},
{
... ...