liukangdong
2024-08-01 14cdf97901b9491f17e05a7314dfcb820a7c3878
Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia
已修改1个文件
11 ■■■■ 文件已修改
wechat_staff/pages/login/index.js 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/login/index.js
@@ -183,17 +183,10 @@
    getWxMiniPhone({
      encryptedData: data.encryptedData,
      iv: data.iv,
      openid:this.data.openid,
      sessionKey: wx.getStorageSync('sessionKey'),
    }).then(res => {
      if (res.data && res.data.token) {
        wx.login({
          timeout: 5000,
          success: (loginRes) =>  {
            if (loginRes.code) {
              this.bindingOpenid(loginRes.code, res.data.token)
            }
          }
        })
      if (res.data && res.data.token) {
        if(res.data.phone){
          res.data.users.phone = res.data.phone || res.data.users.phone
        }