From 2c01ac3e5b20bf4e0c62f388eb4616675d8ebf93 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期一, 28 十月 2024 15:53:53 +0800
Subject: [PATCH] 1.小程序-供应商:钱包功能

---
 pages/order/order-detail.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/pages/order/order-detail.vue b/pages/order/order-detail.vue
index 24a86bb..43f9a37 100644
--- a/pages/order/order-detail.vue
+++ b/pages/order/order-detail.vue
@@ -21,7 +21,7 @@
 		
 		async onShow() {
 			// 支付回调
-			// #ifdef PUB_CUSTOMER_DEV
+			// #ifdef PUB_CUSTOMER
 			let options = wx.getEnterOptionsSync();
 			if (options.scene == '1038' && options.referrerInfo.appId == 'wxef277996acc166c3') {
 				// 代表从收银台小程序返回
@@ -264,7 +264,7 @@
 						await this.$message.confirm('是否确定收货')
 
 						var tryCallWx = false
-						// #ifdef MP
+						// #ifdef MPOLD
 						let tmp = this
 						if (wx.openBusinessView && tmp.dto && tmp.dto.paymentTrId) {
 							tryCallWx = true
@@ -332,6 +332,8 @@
 							this.$message.hideLoading()
 							if (code === 0) {
 								this.getDetail()
+								this.$store.dispatch('getCurrentInfo')
+								this.$message.showToast('收货成功')
 							}
 						}
 
@@ -354,7 +356,7 @@
 						if (code === 0) {
 							//微信接口
 							let that = this
-							// #ifndef PUB_CUSTOMER_DEV
+							// #ifndef PUB_CUSTOMER
 							
 							wx.requestPayment({
 								...data,
@@ -369,7 +371,7 @@
 								}
 							})
 							// #endif
-							// #ifdef PUB_CUSTOMER_DEV
+							// #ifdef PUB_CUSTOMER
 							var param = {
 								// cusid: "平台分配的商户号",
 								// appid: "平台分配的appid",

--
Gitblit v1.9.3