Commit 20e92328bad841042a7e44165456e0bf1e32a2f4

Authored by vking
1 parent 07842678

商家红包活动

Showing 1 changed file with 10 additions and 9 deletions
... ... @@ -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,
... ...