Procházet zdrojové kódy

修改确认收货后,订单列表状态未刷新bug

1004749546@qq.com před 4 roky
rodič
revize
b6171ce2da
3 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 1 0
      pages/order/LogList.vue
  2. 1 1
      pages/order/order.vue
  3. 1 0
      pages/order/orderDetail.vue

+ 1 - 0
pages/order/LogList.vue

@@ -109,6 +109,7 @@
 				}
 				finishOrder(params).then(res=>{
 					if(res.status==200) {
+						uni.$emit('refresh')
 						uni.showToast({
 							title:res.message,
 							icon: 'none'

+ 1 - 1
pages/order/order.vue

@@ -172,7 +172,7 @@
 		onLoad() {
 			// 监听设置密码是否成功
 			uni.$once('setPswSuccess', this.setPsw)
-			// 监听详情支付成功事件
+			// 监听页面刷新事件 在详情支付成功后或在物流确认收货后刷新列表
 			uni.$on('refresh', this.handleRefresh)
 			this.pageInit()
 		},

+ 1 - 0
pages/order/orderDetail.vue

@@ -232,6 +232,7 @@
 				signPay(params).then(res=>{
 					this.btnLoading = false
 					if(res.status == 200) {
+						uni.$emit('refresh')
 						// 跳转到支付完成界面
 						uni.navigateTo({
 							url:"/pages/toOrder/payFinish?id=" + id