3
0
Fork 0

fix(pay): 再分享情况下点击返回首页走自动登录逻辑

This commit is contained in:
woody 2025-09-02 16:15:29 +08:00
parent 386e478dcf
commit e8bedfa519
1 changed files with 6 additions and 1 deletions

View File

@ -79,6 +79,7 @@ export default {
isRecharge: undefined, isRecharge: undefined,
payStatus: 0, payStatus: 0,
isSharePay: false, isSharePay: false,
memberData: {},
} }
}, },
computed: { computed: {
@ -96,7 +97,6 @@ export default {
onLoad(options) { onLoad(options) {
// //
const extParam = JSON.parse(atob(options.extParam || '{}')) const extParam = JSON.parse(atob(options.extParam || '{}'))
console.log(extParam, '..extParam')
this.specialArea = extParam.specialArea this.specialArea = extParam.specialArea
this.isRecharge = extParam.isRecharge this.isRecharge = extParam.isRecharge
this.orderCode = extParam.orderCode || '' this.orderCode = extParam.orderCode || ''
@ -120,6 +120,7 @@ export default {
registerInfo(this.orderCode).then(res => { registerInfo(this.orderCode).then(res => {
if (res.data) { if (res.data) {
uni.hideLoading() uni.hideLoading()
this.memberData = res.data
this.$refs.successDialog.showSuccess(res.data) this.$refs.successDialog.showSuccess(res.data)
} else { } else {
getRegisterInfoTimeoutFlag = setTimeout(() => { getRegisterInfoTimeoutFlag = setTimeout(() => {
@ -182,6 +183,10 @@ export default {
// //
goToHome() { goToHome() {
if (this.isSharePay) {
this.getTempToken(this.memberData)
return
}
uni.switchTab({ uni.switchTab({
url: '/pages/index/index', url: '/pages/index/index',
}) })