forked from angelo/web-retail-h5
fix(pay): 再分享情况下点击返回首页走自动登录逻辑
This commit is contained in:
parent
e5c7253123
commit
a7ce84fbfd
|
@ -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',
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue