Commit 7dc9cf67 by 李嘉林

登录后跳转加日志

parent 39172dc5
...@@ -218,6 +218,8 @@ export default { ...@@ -218,6 +218,8 @@ export default {
//来自小程序登录页面 //来自小程序登录页面
this.page = decodeURIComponent(options.backpath); this.page = decodeURIComponent(options.backpath);
this.params += "&" + decodeURIComponent(options.params); this.params += "&" + decodeURIComponent(options.params);
console.log(this.page, this.params,'-----------index---221')
log.info(this.page, this.params,'-----------index---221')
} else if (options.from && options.from == "logout") { } else if (options.from && options.from == "logout") {
log.info('options.from == "logout"') log.info('options.from == "logout"')
//来自用户登出 //来自用户登出
......
...@@ -125,6 +125,7 @@ export default { ...@@ -125,6 +125,7 @@ export default {
onLoad(options) { onLoad(options) {
this.isOnLoad = true; this.isOnLoad = true;
console.log('----------------------login-onload') console.log('----------------------login-onload')
console.log(options,'----------------------login-onload-options')
log.info(options,'----------------------login-onload-options') log.info(options,'----------------------login-onload-options')
this.getShopUserProtocol(); this.getShopUserProtocol();
Object.assign(this.$data, this.$options.data()); //mpvue 的混合周期 使用小程序生命周期数据未初始化 Object.assign(this.$data, this.$options.data()); //mpvue 的混合周期 使用小程序生命周期数据未初始化
...@@ -141,6 +142,9 @@ export default { ...@@ -141,6 +142,9 @@ export default {
this.backParams = this.defalutBackParams; this.backParams = this.defalutBackParams;
let params = JSON.parse(options.params); let params = JSON.parse(options.params);
this.fromType = params.fromType; this.fromType = params.fromType;
console.log(this.backParams,'----this.backParams')
console.log(params,'----params')
console.log(this.fromType,'----this.fromType')
} }
if(options.ossLink) { if(options.ossLink) {
this.ossLink = decodeURIComponent(options.ossLink) this.ossLink = decodeURIComponent(options.ossLink)
...@@ -376,6 +380,7 @@ export default { ...@@ -376,6 +380,7 @@ export default {
pushPageType(){ pushPageType(){
//绑定上下级关系 //绑定上下级关系
log.info(this.scene,'this.scene====',this.backPath) log.info(this.scene,'this.scene====',this.backPath)
console.log(this.scene,'this.scene====',this.backPath)
log.info(wx.getStorageSync("becomeInfo"),'pushPageType-getStorageSync-becomeInfo') log.info(wx.getStorageSync("becomeInfo"),'pushPageType-getStorageSync-becomeInfo')
app.fenxiaoModel.becomeRelation(wx.getStorageSync("becomeInfo")?JSON.parse(wx.getStorageSync("becomeInfo")):'').then(res=>{ app.fenxiaoModel.becomeRelation(wx.getStorageSync("becomeInfo")?JSON.parse(wx.getStorageSync("becomeInfo")):'').then(res=>{
log.info('pushPageType调用becomeRelation-381') log.info('pushPageType调用becomeRelation-381')
...@@ -426,6 +431,8 @@ export default { ...@@ -426,6 +431,8 @@ export default {
url: parseLink == '/' ? '/pages/home/main' : `/pages/tabBar${isTabbarIndex}/main`, url: parseLink == '/' ? '/pages/home/main' : `/pages/tabBar${isTabbarIndex}/main`,
}) })
}else{ }else{
console.log(this.backPath,this.backParams,'this.backParams')
log.info(this.backPath,this.backParams,'this.backParams--435')
wx.reLaunch({ wx.reLaunch({
url: `../index/main?from=login&backpath=${ url: `../index/main?from=login&backpath=${
this.backPath this.backPath
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment