lilei 4 months ago
parent
commit
b1fe0c7538
2 changed files with 8 additions and 0 deletions
  1. 3 0
      pagesB/procureOrder/orderDetail.vue
  2. 5 0
      pagesB/procureOrder/orderList.vue

+ 3 - 0
pagesB/procureOrder/orderDetail.vue

@@ -249,6 +249,7 @@
 	   },
 	   onUnload() {
 			this.$store.state.vuex_tempOrderData = null
+			uni.$emit('refashPayBalance')
 	   },
 	   computed: {
 		   totalPages(){
@@ -347,6 +348,7 @@
 		 						_this.message('取消成功')
 								item.payInfo = null
 								uni.$emit('refreshPurcaOrder',item,'CANCEL')
+								uni.$emit('refashPayBalance')
 								setTimeout(()=>{
 									uni.navigateBack()
 								},3000)
@@ -376,6 +378,7 @@
 			 		_this.statusMessage = '订单超过30分钟已自动取消'
 			 		_this.info.cancelDate = moment().format('YYYY-MM-DD hh:mm:ss')
 					uni.$emit('refreshPurcaOrder',_this.info,'CANCEL')
+					uni.$emit('refashPayBalance')
 			 		// 更改标题栏背景色
 			 		uni.setNavigationBarColor({
 			 			frontColor: '#ffffff',

+ 5 - 0
pagesB/procureOrder/orderList.vue

@@ -181,6 +181,9 @@
 				 _this.resetList(data,state)
 			})
 		},
+		onUnload() {
+			uni.$emit('refashPayBalance')
+		},
 		methods:{
 			message(title){
 				uni.showToast({
@@ -266,6 +269,7 @@
 								if (res.status == 200) {
 									_this.message('取消成功')
 									_this.resetList(item,'CANCEL')
+									uni.$emit('refashPayBalance')
 								} else {
 									_this.message(res.message)
 								}
@@ -335,6 +339,7 @@
 			countDownEnd(item){
 				item.payInfo = null
 				this.resetList(item,'CANCEL')
+				uni.$emit('refashPayBalance')
 			},
 			// 确认收货
 			receiveOrder(item){