收货地址
This commit is contained in:
parent
f5f13295bb
commit
6a1931ae80
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user