| | |
| | | }, |
| | | 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) |
| | |
| | | url: './setPass' |
| | | }) |
| | | } */ else { |
| | | //更新pushcid |
| | | getApp().updatePushCid(); |
| | | uni.switchTab({ |
| | | url: '../index/index' |
| | | }) |