收货地址
This commit is contained in:
parent
f5f13295bb
commit
6a1931ae80
@ -149,6 +149,9 @@ wepy.page({
|
||||
...mapActions([
|
||||
'setOrderAction'
|
||||
]),
|
||||
onAdd() {
|
||||
appManager.navigateTo(userAddressPage)
|
||||
},
|
||||
async init() {
|
||||
this.isInit = false
|
||||
|
||||
@ -176,6 +179,11 @@ wepy.page({
|
||||
},
|
||||
|
||||
onSubmit() {
|
||||
if (!this.order.addressId) {
|
||||
appManager.showToast('请选择收货地址.')
|
||||
return
|
||||
}
|
||||
|
||||
orderApis.createOrder(this.order).then(r => {
|
||||
wx.hideLoading()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user