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

Loading…
Cancel
Save