Commit 29dc5359 by 高淑倩

微信地址

parent 42664357
......@@ -296,13 +296,13 @@ wxService.page({
})
},
handelGobuy() {
const { trolleySku2Buy, couponId, addressInfo } = this.data
const { trolleySku2Buy, couponId,addressId, addressInfo } = this.data
let params = {
couponId,
trolleySku2Buy,
addressId: addressInfo.id
addressId: addressId ? addressId : addressInfo.id // 微信地址 or 地址id
}
this.getBill(params) // 下单
},
// 下单
......@@ -398,6 +398,9 @@ wxService.page({
const { result, data } = res.data
if (result == 0) {
wx.hideLoading()
this.setData({
addressId:data
})
}
}).finally(() => {
wx.hideLoading()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment