Commit 0ae75041 by 张立顺 Committed by chenwq

免登录逻辑修改

1 parent 4ef770e2
...@@ -27,6 +27,7 @@ Page({ ...@@ -27,6 +27,7 @@ Page({
*/ */
onShow() { onShow() {
const appEnter = wx.getEnterOptionsSync() const appEnter = wx.getEnterOptionsSync()
console.log(appEnter,'appEnter');
if (appEnter.scene == 1037) { if (appEnter.scene == 1037) {
if (Object.keys(appEnter.referrerInfo).length) { if (Object.keys(appEnter.referrerInfo).length) {
const { extraData } = appEnter.referrerInfo const { extraData } = appEnter.referrerInfo
...@@ -34,6 +35,8 @@ Page({ ...@@ -34,6 +35,8 @@ Page({
else this.init() else this.init()
} else this.init() } else this.init()
} else if ([1047, 1048, 1049].includes(appEnter.scene)) { } else if ([1047, 1048, 1049].includes(appEnter.scene)) {
// debugger
console.log(!this.options.scene,this.options,'!this.options.scene');
if (!this.options.scene) { if (!this.options.scene) {
this.init() this.init()
return return
...@@ -169,6 +172,7 @@ Page({ ...@@ -169,6 +172,7 @@ Page({
const { sessionId, loginUserInfoList } = data const { sessionId, loginUserInfoList } = data
var routeParams = {} var routeParams = {}
var list = [] var list = []
console.log(obj,'obj');
if (obj.url == '/packagesList/packageOutput/pages/summary') { if (obj.url == '/packagesList/packageOutput/pages/summary') {
routeParams = { routeParams = {
merchantId: obj.merchantId, merchantId: obj.merchantId,
...@@ -182,6 +186,7 @@ Page({ ...@@ -182,6 +186,7 @@ Page({
list.push(item + "=" + routeParams[item]) list.push(item + "=" + routeParams[item])
}) })
this.options.targetPath = obj.url + "?" + list.join("&") this.options.targetPath = obj.url + "?" + list.join("&")
this.options.targetPath = '/pages/tab/output/output' + "?" + list.join("&")
} }
setLoginInfo(loginUserInfoList[0], sessionId) setLoginInfo(loginUserInfoList[0], sessionId)
} else { } else {
......
...@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync() ...@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
const manual = false const manual = false
const release = false const release = false
let index = 1 let index = 3
// 判断小程序环境 // 判断小程序环境
// develop:开发版(正常开发工具,测试时) // develop:开发版(正常开发工具,测试时)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!