Commit 73b006b0 by 李伟康

commit

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