Commit 29dc5359 by 高淑倩

微信地址

parent 42664357
...@@ -296,13 +296,13 @@ wxService.page({ ...@@ -296,13 +296,13 @@ wxService.page({
}) })
}, },
handelGobuy() { handelGobuy() {
const { trolleySku2Buy, couponId, addressInfo } = this.data const { trolleySku2Buy, couponId,addressId, addressInfo } = this.data
let params = { let params = {
couponId, couponId,
trolleySku2Buy, trolleySku2Buy,
addressId: addressInfo.id addressId: addressId ? addressId : addressInfo.id // 微信地址 or 地址id
} }
this.getBill(params) // 下单 this.getBill(params) // 下单
}, },
// 下单 // 下单
...@@ -398,6 +398,9 @@ wxService.page({ ...@@ -398,6 +398,9 @@ wxService.page({
const { result, data } = res.data const { result, data } = res.data
if (result == 0) { if (result == 0) {
wx.hideLoading() wx.hideLoading()
this.setData({
addressId:data
})
} }
}).finally(() => { }).finally(() => {
wx.hideLoading() 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