|
@@ -43,8 +43,12 @@ Page({
|
|
|
this.setUser(userRes.data)
|
|
|
wx.setStorageSync('uid', userRes.data.uid)
|
|
|
wx.setStorageSync('user', userRes.data)
|
|
|
+ wx.showToast({
|
|
|
+ icon: 'loading',
|
|
|
+ title: '登录成功!',
|
|
|
+ })
|
|
|
wx.switchTab({
|
|
|
- url: '/pages/index/index',
|
|
|
+ url: '/pages/index/index',
|
|
|
})
|
|
|
}
|
|
|
})
|