Browse Source

print code

master
kola-web 6 days ago
parent
commit
4006c480a9
  1. 39
      src/app.ts

39
src/app.ts

@ -134,25 +134,26 @@ App<IAppOption>({
const that = this const that = this
wx.login({ wx.login({
success(res) { success(res) {
wx.ajax({ console.log('=======================',code=======================',res.code)
method: 'GET', // wx.ajax({
url: '?r=igg4/user/init-login', // method: 'GET',
data: { // url: '?r=igg4/user/init-login',
code: res.code, // data: {
}, // code: res.code,
}).then((res) => { // },
that.globalData.loginState = res.loginState // }).then((res) => {
that.globalData.isReg = res.isReg // that.globalData.loginState = res.loginState
that.globalData.isLogin = res.isLogin // that.globalData.isReg = res.isReg
that.globalData.loginType = res.loginType // that.globalData.isLogin = res.isLogin
if (!Object.keys(that.globalData.scene)?.length) { // that.globalData.loginType = res.loginType
that.globalData.anyWhere = res.anyWhere // if (!Object.keys(that.globalData.scene)?.length) {
} // that.globalData.anyWhere = res.anyWhere
if (wx.getLaunchOptionsSync()?.query?.activity === 'NRDL') { // }
that.clickPush() // if (wx.getLaunchOptionsSync()?.query?.activity === 'NRDL') {
} // that.clickPush()
that.getUserInfo() // }
}) // that.getUserInfo()
// })
}, },
}) })
}, },

Loading…
Cancel
Save