收货地址

This commit is contained in:
mactj 2021-01-21 19:06:58 +08:00
parent f5f13295bb
commit 6a1931ae80

View File

@ -149,6 +149,9 @@ wepy.page({
...mapActions([ ...mapActions([
'setOrderAction' 'setOrderAction'
]), ]),
onAdd() {
appManager.navigateTo(userAddressPage)
},
async init() { async init() {
this.isInit = false this.isInit = false
@ -176,6 +179,11 @@ wepy.page({
}, },
onSubmit() { onSubmit() {
if (!this.order.addressId) {
appManager.showToast('请选择收货地址.')
return
}
orderApis.createOrder(this.order).then(r => { orderApis.createOrder(this.order).then(r => {
wx.hideLoading() wx.hideLoading()