|
@@ -26,7 +26,7 @@ Page({
|
|
|
wxLogin: function(e) {
|
|
wxLogin: function(e) {
|
|
|
user.checkLogin().catch(() => {
|
|
user.checkLogin().catch(() => {
|
|
|
wx.getUserProfile({
|
|
wx.getUserProfile({
|
|
|
- desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
|
|
|
|
|
|
|
+ desc: '用于完善会员资料',
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
user.loginByWeixin(res.userInfo).then(res => {
|
|
user.loginByWeixin(res.userInfo).then(res => {
|
|
|
app.globalData.hasLogin = true;
|
|
app.globalData.hasLogin = true;
|