From aee5272d23ade39f178d6b3c2032a29db6752aca Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期一, 21 十月 2024 13:18:52 +0800
Subject: [PATCH] update 首页定位

---
 pages/order/order.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/pages/order/order.vue b/pages/order/order.vue
index 985d21d..4847452 100644
--- a/pages/order/order.vue
+++ b/pages/order/order.vue
@@ -94,7 +94,7 @@
 		},
 		async onShow() {
 			// 支付回调
-			// #ifdef PUB_CUSTOMER_DEV
+			// #ifdef PUB_CUSTOMER
 			let options = wx.getEnterOptionsSync();
 			if (options.scene == '1038' && options.referrerInfo.appId == 'wxef277996acc166c3') {
 				// 代表从收银台小程序返回
@@ -244,7 +244,7 @@
 					case 'confirm': {
 						await this.$message.confirm('是否确定收货')
 						var tryCallWx = false
-						// #ifdef MP
+						// #ifdef MPOLD
 						let tmp = this
 						if (wx.openBusinessView && item.paymentTrId) {
 							tryCallWx = true
@@ -313,6 +313,9 @@
 							this.$message.hideLoading()
 							if (code === 0) {
 								this.refreshList()
+								//刷新积分
+								this.$store.dispatch('getCurrentInfo')
+								this.$message.showToast('收货成功')
 							}
 						}
 
@@ -334,7 +337,7 @@
 						if (code === 0) {
 							//微信接口
 							let that = this
-							// #ifndef PUB_CUSTOMER_DEV
+							// #ifndef PUB_CUSTOMER
 							wx.requestPayment({
 								...data,
 								async success(res) {
@@ -351,7 +354,7 @@
 								}
 							})
 							// #endif
-							// #ifdef PUB_CUSTOMER_DEV
+							// #ifdef PUB_CUSTOMER
 							var param = {
 								// cusid: "平台分配的商户号",
 								// appid: "平台分配的appid",

--
Gitblit v1.9.3