Commit debb239c by 张天炜

登录功能改动

parent d684c0f0
......@@ -53,8 +53,7 @@ Page({
iv: e.iv,
scene: app.options.query && app.options.query.scene ? decodeURIComponent(app.options.query.scene) : ''
}).then(res => {
console.log(res)
if (!_this.wxLoginCode) {
if (res.code == 0) {
app.globalData.userInfo = res.user
wx.setStorageSync('token', res.token)
$Toast({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment