Commit ba703fd3 by 张立顺

免登录逻辑修改

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