Commit 15951ad6033ee8cda6e3099313c252402f231de1
Exists in
dev_wjl
and in
1 other branch
Merge branch 'dev-wrh' into dev_wjl
Showing 2 changed files
littleApp_child/app.js
View file @
15951ad
| ... | ... | @@ -321,7 +321,7 @@ |
| 321 | 321 | } |
| 322 | 322 | }, |
| 323 | 323 | globalData: { |
| 324 | - userInfo: null, | |
| 324 | + // userInfo: null, | |
| 325 | 325 | token: '', |
| 326 | 326 | userId:'', |
| 327 | 327 | openInfo: {}, |
| ... | ... | @@ -333,7 +333,8 @@ |
| 333 | 333 | hospital:{id:'',name:''} |
| 334 | 334 | }, |
| 335 | 335 | getINfoList:function(){ |
| 336 | - // console.log(userInfo.wxopenid,'userInfo'); | |
| 336 | + // console.log(,'2222'); | |
| 337 | + const openid = wx.getStorageSync('openId').wxopenid | |
| 337 | 338 | const res = wx.getAccountInfoSync(); |
| 338 | 339 | let height = 0 |
| 339 | 340 | wx.getSystemInfo({ |
| ... | ... | @@ -352,7 +353,7 @@ |
| 352 | 353 | height = 48 + 44 |
| 353 | 354 | plugin.init({ |
| 354 | 355 | appid: "MWH8RhGZELAOcXT59HJNycPipQ9vvx", |
| 355 | - openid: "organizeda52ac", | |
| 356 | + openid: openid || '1', | |
| 356 | 357 | textToSpeech: false, |
| 357 | 358 | guideList: ['转人工'], |
| 358 | 359 | welcome: `您好,请问有什么能够帮助您的。您可以选择下方标签,进行相关问题查询`, |
littleApp_child/pages/home/home.js
View file @
15951ad
| ... | ... | @@ -576,6 +576,7 @@ |
| 576 | 576 | networkUtil._get(api.userInfo + app.globalData.currentId, param, function(res) { |
| 577 | 577 | // console.log('获取用户信息1212', res) |
| 578 | 578 | wx.setStorageSync('hospitalId', res.data.data.hospitalId) |
| 579 | + wx.setStorageSync('openId', res.data.data) | |
| 579 | 580 | if (res.data.data.bzstatus==1){ |
| 580 | 581 | self.data.riskBase=true; |
| 581 | 582 | }else{ |
| 582 | 583 | |
| ... | ... | @@ -835,13 +836,14 @@ |
| 835 | 836 | // console.log('绑定code', param) |
| 836 | 837 | } |
| 837 | 838 | networkUtil._get(api.verifyCode, param, function(res) { |
| 838 | - // console.log(res) | |
| 839 | + // console.log(res,'resqqweqweqw') | |
| 839 | 840 | self.loginSuccess(res.data) |
| 840 | 841 | }, function(res) { |
| 841 | 842 | networkUtil.showErrorToast(res.errormsg) |
| 842 | 843 | }) |
| 843 | 844 | }, |
| 844 | 845 | loginSuccess(data) { |
| 846 | + // console.log(data,'data112'); | |
| 845 | 847 | // 为3的时候就是没填写资料 |
| 846 | 848 | wx.setStorageSync('hxName', data.hxName) |
| 847 | 849 | wx.setStorageSync('hxPassWord', data.hxPassWord) |