From d826888318a91ee0b735a76f605a6df172714d3b Mon Sep 17 00:00:00 2001 From: sh <2022704648@qq.com> Date: Mon, 13 Jan 2020 09:12:01 +0800 Subject: [PATCH] 修复正式环境律师端部分iphone手机操作系统10.x 显示空白问题 --- src/components/AvatarUpload.vue | 2 +- src/pages/news/index.vue | 5 +---- src/pages/noticeList/index.vue | 8 +++++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/components/AvatarUpload.vue b/src/components/AvatarUpload.vue index b3d8f56..4417220 100644 --- a/src/components/AvatarUpload.vue +++ b/src/components/AvatarUpload.vue @@ -30,7 +30,7 @@ let mbbc; try{ mbbc = wx.getMenuButtonBoundingClientRect()?wx.getMenuButtonBoundingClientRect():null; if(!mbbc){ - throw new Error('getMenuButtonBoundingClientRect error'); + throw new Error('getMenuButtonBoundingClientRect error mbbc'); }else{ height = device.windowHeight - 10 - (mbbc.bottom + mbbc.top - device.statusBarHeight); } diff --git a/src/pages/news/index.vue b/src/pages/news/index.vue index c6574cd..5d81483 100644 --- a/src/pages/news/index.vue +++ b/src/pages/news/index.vue @@ -173,21 +173,18 @@ export default { throw new Error('getMenuButtonBoundingClientRect error'); }else{ this.navBarHeight = mbbc.bottom + mbbc.top - res.statusBarHeight; - //console.log("this.navBarHeight",this.navBarHeight); } - console.log('nav',this.navBarHeight); }catch (e) { - console.log('err',err); this.navBarHeight = 44 this.statusBarHeight = 20 } }, fail: (err) => { - console.log('err',err); this.navBarHeight = 44 this.statusBarHeight = 20 } }) + this.checkAuth().then( res => { if(!res) wx.redirectTo({ url: '../welcome/main' }) }) diff --git a/src/pages/noticeList/index.vue b/src/pages/noticeList/index.vue index 78b29f7..c4b5429 100644 --- a/src/pages/noticeList/index.vue +++ b/src/pages/noticeList/index.vue @@ -63,9 +63,11 @@ export default { console.log(res.data) this.loaded = true this.noticeList=res.data - this.noticeList.forEach(v=>{ - v.data.sysMessage.sendDate = this.service.correctTime(v.data.sysMessage.sendDate,'full') - }) + if(undefined != res.data && null != res.data){ + this.noticeList.forEach(v=>{ + v.data.sysMessage.sendDate = this.service.correctTime(v.data.sysMessage.sendDate,'full') + }) + } } }) } -- libgit2 0.21.4