!1 feat:小程序登录、用户信息相关接口调整.

Merge pull request !1 from yy/ym_dev
This commit is contained in:
yy
2021-04-16 11:26:03 +08:00
committed by Gitee
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -1,6 +1,6 @@
<view class="container">
<view class="login-box">
<button type="primary" class="wx-login-btn" bindtap="wxLogin">微信直接登录</button>
<button type="primary" open-type="getUserProfile" class="wx-login-btn" bindtap="wxLogin">微信直接登录</button>
<button type="primary" class="account-login-btn" bindtap="accountLogin">账号登录</button>
</view>
</view>