From 8f09fcb6707915dd961e653dd2322a7cc673fe80 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期二, 03 九月 2024 17:42:27 +0800
Subject: [PATCH] feat(支付): 1、改为history路由
---
pay/index.vue | 2 +-
pay/scanpay.vue | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pay/index.vue b/pay/index.vue
index f8c0935..0b2d5a5 100644
--- a/pay/index.vue
+++ b/pay/index.vue
@@ -19,7 +19,7 @@
this.opt = opt
},
onShow() {
- let redirect_uri = `${config.webURL}/#/pay/scanpay?cid=${this.opt.cid||''}&shopId=${this.opt.shopId||''}&activityQrcodeId=${this.opt.activityQrcodeId||''}&smoney=${this.opt.smoney||''}`
+ let redirect_uri = `${config.webURL}/pay/scanpay?cid=${this.opt.cid||''}&shopId=${this.opt.shopId||''}&activityQrcodeId=${this.opt.activityQrcodeId||''}&smoney=${this.opt.smoney||''}`
if(this.platform==2&&uni.getStorageSync('OPENID')){
window.location.href = redirect_uri
return
diff --git a/pay/scanpay.vue b/pay/scanpay.vue
index 5b64e21..c90f8f0 100644
--- a/pay/scanpay.vue
+++ b/pay/scanpay.vue
@@ -312,7 +312,7 @@
/*鎺堟潈unionid*/
toRegister() {
if (this.payWay == 2) {
- const redirect_uri = encodeURIComponent(`${config.webURL}/#/pay/scanpay?cid=${this.cid || ''}&shopId=${this.shopId || ''}&activityQrcodeId=${this.activityQrcodeId || ''}&smoney=${this.smoney || ''}`)
+ const redirect_uri = encodeURIComponent(`${config.webURL}/pay/scanpay?cid=${this.cid || ''}&shopId=${this.shopId || ''}&activityQrcodeId=${this.activityQrcodeId || ''}&smoney=${this.smoney || ''}`)
uni.clearStorageSync()
window.location.href =
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${config.wx_appid}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect`
--
Gitblit v1.9.1