Commit 73b006b0 by 李伟康

commit

1 parent afdc4c0c
......@@ -166,13 +166,21 @@ export default {
},
getDetail (id) {
let total = 0
let { radioObj } = this
giftApi.getGiftDetail(id).then(res => {
this.hideLoading()
res.couponList.length && res.couponList.map(e => total += e.couponAnticipatedCost * e.couponAmount)
this.flag = true
if (res.receiveWay == 1) res.phone = res.receiveDetails
else obj.vin = res.receiveDetails
radioObj.map(e => e.active = false)
if (res.receiveWay == 1) {
res.phone = res.receiveDetails
radioObj[0].active = true
} else {
radioObj[1].active = true
res.vin = res.receiveDetails
}
this.obj = res
console.log(res)
this.total = total
this.checkData()
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!