Commit d826888318a91ee0b735a76f605a6df172714d3b

Authored by sh
1 parent ce4c83ff

修复正式环境律师端部分iphone手机操作系统10.x 显示空白问题

src/components/AvatarUpload.vue
... ... @@ -30,7 +30,7 @@ let mbbc;
30 30 try{
31 31 mbbc = wx.getMenuButtonBoundingClientRect()?wx.getMenuButtonBoundingClientRect():null;
32 32 if(!mbbc){
33   - throw new Error('getMenuButtonBoundingClientRect error');
  33 + throw new Error('getMenuButtonBoundingClientRect error mbbc');
34 34 }else{
35 35 height = device.windowHeight - 10 - (mbbc.bottom + mbbc.top - device.statusBarHeight);
36 36 }
... ...
src/pages/news/index.vue
... ... @@ -173,21 +173,18 @@ export default {
173 173 throw new Error('getMenuButtonBoundingClientRect error');
174 174 }else{
175 175 this.navBarHeight = mbbc.bottom + mbbc.top - res.statusBarHeight;
176   - //console.log("this.navBarHeight",this.navBarHeight);
177 176 }
178   - console.log('nav',this.navBarHeight);
179 177 }catch (e) {
180   - console.log('err',err);
181 178 this.navBarHeight = 44
182 179 this.statusBarHeight = 20
183 180 }
184 181 },
185 182 fail: (err) => {
186   - console.log('err',err);
187 183 this.navBarHeight = 44
188 184 this.statusBarHeight = 20
189 185 }
190 186 })
  187 +
191 188 this.checkAuth().then( res => {
192 189 if(!res) wx.redirectTo({ url: '../welcome/main' })
193 190 })
... ...
src/pages/noticeList/index.vue
... ... @@ -63,9 +63,11 @@ export default {
63 63 console.log(res.data)
64 64 this.loaded = true
65 65 this.noticeList=res.data
66   - this.noticeList.forEach(v=>{
67   - v.data.sysMessage.sendDate = this.service.correctTime(v.data.sysMessage.sendDate,'full')
68   - })
  66 + if(undefined != res.data && null != res.data){
  67 + this.noticeList.forEach(v=>{
  68 + v.data.sysMessage.sendDate = this.service.correctTime(v.data.sysMessage.sendDate,'full')
  69 + })
  70 + }
69 71 }
70 72 })
71 73 }
... ...