From 6a1931ae80772efc9dc3a8a0abd40f6ec579bc69 Mon Sep 17 00:00:00 2001 From: mactj Date: Thu, 21 Jan 2021 19:06:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=B4=A7=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mini-app/src/pages/mall/order/order-check.wpy | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mini-app/src/pages/mall/order/order-check.wpy b/mini-app/src/pages/mall/order/order-check.wpy index 13a7c7969..3bee52ec8 100644 --- a/mini-app/src/pages/mall/order/order-check.wpy +++ b/mini-app/src/pages/mall/order/order-check.wpy @@ -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()