This commit is contained in:
zhangmanman
2021-08-09 15:57:37 +08:00
parent c661dd0e16
commit 540d76bdb8
158 changed files with 4914 additions and 788 deletions

View File

@@ -114,9 +114,10 @@ Page({
})
} else {
// 回到个人中心
wx.switchTab({
url: '/pages/user/user'
})
// wx.switchTab({
// url: '/pages/user/user'
// })
wx.navigateBack({delta: 2})
}
})
},
@@ -134,20 +135,24 @@ Page({
// 写入缓存
wx.setStorage({
key : 'token',
data : res.data.token
data : res.data.token,
success : ()=> {
if(this.data.way == "activity") {
// 回到活动首页
wx.reLaunch({
url: '/pages/activityInfo/activityInfo'
})
}else if(this.data.way == "shareLogin") {
// 回到上一页面
wx.navigateBack({delta: 2})
}else {
// 回到个人中心
wx.switchTab({
url: '/pages/user/user'
})
}
}
})
if(this.data.way == "activity") {
// 回到活动首页
wx.reLaunch({
url: '/pages/activityInfo/activityInfo'
})
} else {
// 回到个人中心
wx.switchTab({
url: '/pages/user/user'
})
}
})
}).catch(err => {});
}
})