Ver Fonte

bug 修复

lilei há 4 anos atrás
pai
commit
709a16da52
1 ficheiros alterados com 5 adições e 3 exclusões
  1. 5 3
      pages/getOrder/getOrder.vue

+ 5 - 3
pages/getOrder/getOrder.vue

@@ -373,6 +373,7 @@
 					params.couponReceivesList = [{couponId:this.checkedCoupon.id}]
 				}
 				saveOrder(params).then(res => {
+					uni.hideLoading()
 					if (res.status == 200) {
 						let data = res.data
 						// 保存成功后 请求预支付返回吊起微信支付所需参数
@@ -380,10 +381,11 @@
 						this.$u.vuex('vuex_itemCode',data.itemCode)
 						this.$u.vuex('vuex_orderNo',data.orderNo)
 					} else {
-						uni.hideLoading()
-						// 刷新服务项
-						this.getServerList()
 						this.toashMsg(res.message)
+						setTimeout(()=>{
+							// 刷新服务项
+							this.getServerList()
+						},2000)
 					}
 				})
 			},