From 8307a7cf3a9d41be4eba7d71a4618f7cf5f13b99 Mon Sep 17 00:00:00 2001 From: From-wh Date: Wed, 17 May 2023 11:38:47 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E6=B7=BB=E5=8A=A0=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E6=94=B6=E8=B4=A7loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/uni-app/pages/goods/order_details/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/template/uni-app/pages/goods/order_details/index.vue b/template/uni-app/pages/goods/order_details/index.vue index 344ee30d2..f01d04d7e 100644 --- a/template/uni-app/pages/goods/order_details/index.vue +++ b/template/uni-app/pages/goods/order_details/index.vue @@ -1039,6 +1039,9 @@ // #ifdef MP if (wx.openBusinessView && this.orderInfo.order_shipping_open && this.orderInfo .trade_no) { + uni.showLoading({ + title: this.$t(`加载中`) + }); wx.openBusinessView({ businessType: 'weappOrderConfirm', extraData: { @@ -1046,12 +1049,13 @@ }, success() {}, fail(err) { + uni.hideLoading(); return that.$util.Tips({ title: err.errMsg }); }, complete() { - //dosomething + uni.hideLoading(); } }); } else {