Commit 91f60325 by 杨明

fixed

1 parent 9d818c5e
......@@ -104,12 +104,17 @@ const loginSuccess = () => {
let type = null;
let _list = []
_list = res.merchantList || []
_openList.forEach(k => {
if (_list[0].sceneCodes && _list[0].sceneCodes.includes(k.code)) {
type = k.type
return
}
})
try {
_openList.forEach(k => {
if (_list[0].sceneCodes && _list[0].sceneCodes.includes(k.code)) {
type = k.type
throw new Error()
}
})
} catch (error) {
}
if (_list.length == 1 && type !== null) {
wx.reLaunch({
url: `/pages/tab/output/output?merchantId=${_list[0].merchantId4s}&type=${type}&merchantName=${_list[0].merchantName4s}`,
......
......@@ -171,6 +171,13 @@
"query": "merchantId=44205761&type=0&merchantName=%E6%9D%B0%E8%A5%BF%E9%9B%86%E5%9B%A2%E7%9A%84%E9%97%A8%E5%BA%97",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "login/loading/loading",
"query": "scene=sceneId%3D24957",
"launchMode": "default",
"scene": null
}
]
}
......
......@@ -21,7 +21,7 @@ const systemInfo = wx.getSystemInfoSync()
const manual = false
const release = false
let index = 3
let index = 2
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!