Pārlūkot izejas kodu

improve: 添加确认收货loading

From-wh 2 gadi atpakaļ
vecāks
revīzija
8307a7cf3a

+ 5 - 1
template/uni-app/pages/goods/order_details/index.vue

@@ -1039,6 +1039,9 @@
 				// #ifdef MP
 				// #ifdef MP
 				if (wx.openBusinessView && this.orderInfo.order_shipping_open && this.orderInfo
 				if (wx.openBusinessView && this.orderInfo.order_shipping_open && this.orderInfo
 					.trade_no) {
 					.trade_no) {
+					uni.showLoading({
+						title: this.$t(`加载中`)
+					});
 					wx.openBusinessView({
 					wx.openBusinessView({
 						businessType: 'weappOrderConfirm',
 						businessType: 'weappOrderConfirm',
 						extraData: {
 						extraData: {
@@ -1046,12 +1049,13 @@
 						},
 						},
 						success() {},
 						success() {},
 						fail(err) {
 						fail(err) {
+							uni.hideLoading();
 							return that.$util.Tips({
 							return that.$util.Tips({
 								title: err.errMsg
 								title: err.errMsg
 							});
 							});
 						},
 						},
 						complete() {
 						complete() {
-							//dosomething
+							uni.hideLoading();
 						}
 						}
 					});
 					});
 				} else {
 				} else {