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