Commit d826888318a91ee0b735a76f605a6df172714d3b
1 parent
ce4c83ff
修复正式环境律师端部分iphone手机操作系统10.x 显示空白问题
Showing
3 changed files
with
7 additions
and
8 deletions
src/components/AvatarUpload.vue
@@ -30,7 +30,7 @@ let mbbc; | @@ -30,7 +30,7 @@ let mbbc; | ||
30 | try{ | 30 | try{ |
31 | mbbc = wx.getMenuButtonBoundingClientRect()?wx.getMenuButtonBoundingClientRect():null; | 31 | mbbc = wx.getMenuButtonBoundingClientRect()?wx.getMenuButtonBoundingClientRect():null; |
32 | if(!mbbc){ | 32 | if(!mbbc){ |
33 | - throw new Error('getMenuButtonBoundingClientRect error'); | 33 | + throw new Error('getMenuButtonBoundingClientRect error mbbc'); |
34 | }else{ | 34 | }else{ |
35 | height = device.windowHeight - 10 - (mbbc.bottom + mbbc.top - device.statusBarHeight); | 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,21 +173,18 @@ export default { | ||
173 | throw new Error('getMenuButtonBoundingClientRect error'); | 173 | throw new Error('getMenuButtonBoundingClientRect error'); |
174 | }else{ | 174 | }else{ |
175 | this.navBarHeight = mbbc.bottom + mbbc.top - res.statusBarHeight; | 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 | }catch (e) { | 177 | }catch (e) { |
180 | - console.log('err',err); | ||
181 | this.navBarHeight = 44 | 178 | this.navBarHeight = 44 |
182 | this.statusBarHeight = 20 | 179 | this.statusBarHeight = 20 |
183 | } | 180 | } |
184 | }, | 181 | }, |
185 | fail: (err) => { | 182 | fail: (err) => { |
186 | - console.log('err',err); | ||
187 | this.navBarHeight = 44 | 183 | this.navBarHeight = 44 |
188 | this.statusBarHeight = 20 | 184 | this.statusBarHeight = 20 |
189 | } | 185 | } |
190 | }) | 186 | }) |
187 | + | ||
191 | this.checkAuth().then( res => { | 188 | this.checkAuth().then( res => { |
192 | if(!res) wx.redirectTo({ url: '../welcome/main' }) | 189 | if(!res) wx.redirectTo({ url: '../welcome/main' }) |
193 | }) | 190 | }) |
src/pages/noticeList/index.vue
@@ -63,9 +63,11 @@ export default { | @@ -63,9 +63,11 @@ export default { | ||
63 | console.log(res.data) | 63 | console.log(res.data) |
64 | this.loaded = true | 64 | this.loaded = true |
65 | this.noticeList=res.data | 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 | } |