Commit 9dbc6e01 authored by Facius's avatar Facius

fix: 【模考大师-首页】:首次进入首页时的蒙层,没有覆盖整个屏幕且左上角按钮没有重叠。

parent 08c89199
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
<MaskTip <MaskTip
:show.sync="showMask" :show.sync="showMask"
imageName="mengceng1.png" imageName="mengceng1.png"
imageStyle="width:502rpx;margin-top:50rpx" :imageStyle="imageStyle0"
/> />
<MaskTip <MaskTip
:show.sync="showCountTip" :show.sync="showCountTip"
...@@ -147,6 +147,7 @@ export default { ...@@ -147,6 +147,7 @@ export default {
tapCount: 0, // 点击底部logo五次,显示机构id tapCount: 0, // 点击底部logo五次,显示机构id
showOrgId: false, // 显示机构id showOrgId: false, // 显示机构id
tipTop: 410, tipTop: 410,
tipTop0: 50,
} }
}, },
computed: { computed: {
...@@ -272,6 +273,9 @@ export default { ...@@ -272,6 +273,9 @@ export default {
imageStyle() { imageStyle() {
return `width:640rpx;margin-top:${this.tipTop}rpx;margin-left:56rpx;` return `width:640rpx;margin-top:${this.tipTop}rpx;margin-left:56rpx;`
}, },
imageStyle0() {
return `width:502rpx;margin-top:${this.tipTop0}rpx`
},
}, },
watch: { watch: {
'detail.totalCount'(val) { 'detail.totalCount'(val) {
...@@ -601,7 +605,13 @@ export default { ...@@ -601,7 +605,13 @@ export default {
if (this.firstLauch) { if (this.firstLauch) {
this.$u.vuex('firstLauch', false) this.$u.vuex('firstLauch', false)
setTimeout(() => { setTimeout(() => {
this.showMask = true console.log(uni.getSystemInfoSync().statusBarHeight)
uni.getSystemInfo({
success: (res) => {
this.tipTop0 = res.statusBarHeight * 2 + 15
this.showMask = true
},
})
}, 2000) }, 2000)
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment