|
...
|
...
|
@@ -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,
|
...
|
...
|
|