Commit 640286d8 by 胡悦

tijiao

1 parent 4d1884bb
......@@ -22,7 +22,6 @@ App({
util.setStorageSync('srcm_shopmall_system_info', res)
}
})
console.log(options)
if (options.path != 'pages/tab/index/index') {
this.login()
}
......@@ -39,16 +38,13 @@ App({
code,
appId: _this.globalData.appId
}).then(res => {
console.log(res)
wx.$authStatus = res.code != 0
util.setSessionId(res.data.sessionId)
const openId = res.data.openId
ssoApi.getUserInfo({
openId
}).then(result => {
console.log(result)
if (returnResponse) {
console.log(result,' ====')
resolve(result)
} else {
if (result.code != -1) {
......@@ -68,10 +64,8 @@ App({
wx.$authStatus = true
reject()
})
console.log(wx.$trackData.scene, '--------')
if (wx.$trackData.scene) {
_this.getScene(wx.$trackData.scene).then(res => {
console.log(res)
wx.$trackData.merchant = res.merchantId
})
wx.$Track.sendTrack(trackData.COMPANY)
......@@ -90,9 +84,7 @@ App({
const [key, val] = item.split("=")
op[key] = val
})
console.log(op)
resolve(op)
// wx.$trackData.merchant = op.merchantId
})
})
},
......
......@@ -43,7 +43,7 @@
{
"name": "",
"pathName": "pages/tab/index/index",
"query": "scene=sceneId%3D563",
"query": "scene=sceneId%3D563&cardId=1",
"launchMode": "default",
"scene": null
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!