From 2c3614061cfa88fc0a7d653f02238e3e23f16ec5 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期三, 28 八月 2024 18:34:43 +0800
Subject: [PATCH] 1
---
sub_pages/customer/shopping/confirm.vue | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/sub_pages/customer/shopping/confirm.vue b/sub_pages/customer/shopping/confirm.vue
index c9fda51..db02471 100644
--- a/sub_pages/customer/shopping/confirm.vue
+++ b/sub_pages/customer/shopping/confirm.vue
@@ -179,7 +179,7 @@
console.log('pay,', data)
// /api/pub/init/callback?orderId=
// if(env.pro)
- if (data && (data['_testV2OrderId'] || data['_testOrderId']) &&
+ if (false && data && (data['_testV2OrderId'] || data['_testOrderId']) &&
environments.httpBaseUri.startsWith(
'http://47.99.58.211/flower')) {
//回调
@@ -204,13 +204,18 @@
tmp.$message.showToast('支付成功')
//返回上一页
await tmp.$store.dispatch('sign_add', 'shopping')
- uni.navigateBack()
+ // setTimeout(() => {
+ // uni.navigateBack()
+ // }, 500)
+ await tmp.$message.showToast('支付成功')
+
+
},
async fail(err) {
console.error('pay fail', err)
tmp.$message.showToast('支付失败')
- await tmp.$store.dispatch('sign_add', 'shopping')
- uni.navigateBack()
+ // await tmp.$store.dispatch('sign_add', 'shopping')
+ // uni.navigateBack()
}
})
--
Gitblit v1.9.3