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