Commit debb239c by 张天炜

登录功能改动

parent d684c0f0
...@@ -53,8 +53,7 @@ Page({ ...@@ -53,8 +53,7 @@ Page({
iv: e.iv, iv: e.iv,
scene: app.options.query && app.options.query.scene ? decodeURIComponent(app.options.query.scene) : '' scene: app.options.query && app.options.query.scene ? decodeURIComponent(app.options.query.scene) : ''
}).then(res => { }).then(res => {
console.log(res) if (res.code == 0) {
if (!_this.wxLoginCode) {
app.globalData.userInfo = res.user app.globalData.userInfo = res.user
wx.setStorageSync('token', res.token) wx.setStorageSync('token', res.token)
$Toast({ $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