zhaojs
2023-07-18 0e1bce71603c5cbb92b3fe6387c87430528d18a9
uniapp/pages/login/wxlogin.vue
@@ -113,12 +113,20 @@
         },
         doMobileLogin(mobRes)
         {
            //从缓存获取cid
            let clientInfo = uni.getStorageSync('clientInfo');
            let pushCid='';
            if(clientInfo&&clientInfo.clientid)
            {
               pushCid=clientInfo.clientid
            }
            var that=this;
            uniCloud.callFunction({
              name: 'getPhoneNumber', // 你的云函数名称
              data: {
                'access_token': mobRes.access_token, // 客户端一键登录接口返回的access_token
                'openid': mobRes.openid // 客户端一键登录接口返回的openid
                'openid': mobRes.openid, // 客户端一键登录接口返回的openid
               'pushCid':pushCid//app推送cid
              }
            }).then(res => {
               console.log(res)
@@ -148,6 +156,9 @@
                  {
                     "normalColor":"#F73314",
                     "highlightColor":"#F73314"
                  },
                  "privacyTerms":{
                     "defaultCheckBoxState":false
                  }
                  
                 },
@@ -160,6 +171,7 @@
                     if(res.errCode==30002)
                     {//切换登录方式
                        that.isother=true;
                        univerifyManager.close();
                     }
                     else
                     {
@@ -168,6 +180,7 @@
                           univerifyManager.close();
                        },2000);
                     }
                     that.isother=true;
                  }
               })
@@ -197,11 +210,13 @@
                     url: './setInviteCode'
                  })
               }
               else if (e.data.userinfo.isPwd == 'N') {
               /* else if (e.data.userinfo.isPwd == 'N') {
                  uni.redirectTo({
                     url: './setPass'
                  })
               } else {
               } */ else {
                  //更新pushcid
                  getApp().updatePushCid();
                  uni.switchTab({
                     url: '../index/index'
                  })