diff --git a/littleApp_child/app.js b/littleApp_child/app.js index 68017b4..ea79f3e 100644 --- a/littleApp_child/app.js +++ b/littleApp_child/app.js @@ -321,7 +321,7 @@ } }, globalData: { - userInfo: null, + // userInfo: null, token: '', userId:'', openInfo: {}, @@ -333,7 +333,8 @@ hospital:{id:'',name:''} }, getINfoList:function(){ - // console.log(userInfo.wxopenid,'userInfo'); + // console.log(,'2222'); + const openid = wx.getStorageSync('openId').wxopenid const res = wx.getAccountInfoSync(); let height = 0 wx.getSystemInfo({ @@ -352,7 +353,7 @@ height = 48 + 44 plugin.init({ appid: "MWH8RhGZELAOcXT59HJNycPipQ9vvx", - openid: "organizeda52ac", + openid: openid || '1', textToSpeech: false, guideList: ['转人工'], welcome: `您好,请问有什么能够帮助您的。您可以选择下方标签,进行相关问题查询`, diff --git a/littleApp_child/pages/home/home.js b/littleApp_child/pages/home/home.js index 58c7d10..29681f6 100644 --- a/littleApp_child/pages/home/home.js +++ b/littleApp_child/pages/home/home.js @@ -576,6 +576,7 @@ Page({ networkUtil._get(api.userInfo + app.globalData.currentId, param, function(res) { // console.log('获取用户信息1212', res) wx.setStorageSync('hospitalId', res.data.data.hospitalId) + wx.setStorageSync('openId', res.data.data) if (res.data.data.bzstatus==1){ self.data.riskBase=true; }else{ @@ -835,13 +836,14 @@ Page({ // console.log('绑定code', param) } networkUtil._get(api.verifyCode, param, function(res) { - // console.log(res) + // console.log(res,'resqqweqweqw') self.loginSuccess(res.data) }, function(res) { networkUtil.showErrorToast(res.errormsg) }) }, loginSuccess(data) { + // console.log(data,'data112'); // 为3的时候就是没填写资料 wx.setStorageSync('hxName', data.hxName) wx.setStorageSync('hxPassWord', data.hxPassWord)