|
...
|
...
|
@@ -63,6 +63,7 @@ Page({ |
|
|
|
GetCheckout(){
|
|
|
|
App.Customer.GetOrderInfo({rid:this.options.rid}).then(res=>{
|
|
|
|
let checkout=res.data
|
|
|
|
|
|
|
|
if(checkout){
|
|
|
|
let remark=[]
|
|
|
|
if(res.data.is_wine>0){
|
|
...
|
...
|
@@ -77,15 +78,15 @@ Page({ |
|
|
|
}else{
|
|
|
|
this.GetOrderInfoRun()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(checkout.discount.length>0){
|
|
|
|
let subsidy_price=0
|
|
|
|
checkout.discount.forEach(q=>{
|
|
|
|
if(q.checked){
|
|
|
|
subsidy_price+=q.price/1
|
|
|
|
}
|
|
|
|
})
|
|
|
|
checkout.subsidy_price=subsidy_price.toFixed(2)
|
|
|
|
if(checkout.discount && checkout.discount.length>0){
|
|
|
|
let subsidy_price=0
|
|
|
|
checkout.discount.forEach(q=>{
|
|
|
|
if(q.checked){
|
|
|
|
subsidy_price+=q.price/1
|
|
|
|
}
|
|
|
|
})
|
|
|
|
checkout.subsidy_price=subsidy_price.toFixed(2)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.setData({
|
|
|
|
checkout:checkout,
|
...
|
...
|
|