瀏覽代碼

improve: 添加确认收货loading

From-wh 2 年之前
父節點
當前提交
8307a7cf3a
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      template/uni-app/pages/goods/order_details/index.vue

+ 5 - 1
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 {