Commit 640286d8 by 胡悦

tijiao

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