diff --git a/components/navigation/navigation.vue b/components/navigation/navigation.vue index 3b4905e..338b916 100644 --- a/components/navigation/navigation.vue +++ b/components/navigation/navigation.vue @@ -1,8 +1,11 @@ @@ -12,6 +15,8 @@ data() { return { height: 0, + navHeight: 0, + sumHeight: 0, }; }, props: { @@ -39,7 +44,9 @@ const headerHeight = statusBarHeight + navBarHeightWechat //计算导航内容距离顶部高度= 状态栏高度/2 const topHeight = statusBarHeight / 2 - this.height = headerHeight - (topHeight/2) +"rpx" + this.height = menu.top + "px" + this.navHeight = menu.height + "px" + this.sumHeight = (menu.top + menu.height) + "px" }, back(){ uni.navigateBack({ @@ -51,6 +58,10 @@ \ No newline at end of file diff --git a/subpkg/knowledgeInfo/knowledgeInfo.vue b/subpkg/knowledgeInfo/knowledgeInfo.vue index efe4d70..fffcc8e 100644 --- a/subpkg/knowledgeInfo/knowledgeInfo.vue +++ b/subpkg/knowledgeInfo/knowledgeInfo.vue @@ -3,7 +3,7 @@ - + {{title}} {{createTime}} @@ -54,7 +54,7 @@ diff --git a/subpkg/medal/medal.vue b/subpkg/medal/medal.vue index 2c107d8..e2e1669 100644 --- a/subpkg/medal/medal.vue +++ b/subpkg/medal/medal.vue @@ -5,7 +5,7 @@ 我的勋章 --> - + {{name}} 的勋章墙 @@ -148,7 +148,6 @@ @import url("@/static/base_css.css"); .mainwrap2 { - top: 0; height: calc(100% - 90rpx); background: #fff url("/static/images/bg_medal.jpg") no-repeat left top; background-size: 110% auto; diff --git a/subpkg/message/message.vue b/subpkg/message/message.vue index 298425f..4be6f3b 100644 --- a/subpkg/message/message.vue +++ b/subpkg/message/message.vue @@ -5,7 +5,7 @@ 消息 --> - + diff --git a/subpkg/messageInfo/messageInfo.vue b/subpkg/messageInfo/messageInfo.vue index 53a3fb7..22600b7 100644 --- a/subpkg/messageInfo/messageInfo.vue +++ b/subpkg/messageInfo/messageInfo.vue @@ -3,7 +3,7 @@ - + diff --git a/subpkg/practice/practice.vue b/subpkg/practice/practice.vue index 81ce5f4..49d30bb 100644 --- a/subpkg/practice/practice.vue +++ b/subpkg/practice/practice.vue @@ -57,6 +57,7 @@ .secbar { position: absolute; z-index: 999999; + top: 100rpx; background-color: transparent; } diff --git a/subpkg/privacy/privacy.vue b/subpkg/privacy/privacy.vue index 561f204..eeaeab6 100644 --- a/subpkg/privacy/privacy.vue +++ b/subpkg/privacy/privacy.vue @@ -5,7 +5,7 @@ 隐私政策 --> - + diff --git a/subpkg/rechallenge/rechallenge.vue b/subpkg/rechallenge/rechallenge.vue index d4b421c..36bf150 100644 --- a/subpkg/rechallenge/rechallenge.vue +++ b/subpkg/rechallenge/rechallenge.vue @@ -5,7 +5,7 @@ 重新挑战 --> - + 您上次挑战的场景是“{{sceneName}}”,挑战角色是 “{{roleName}}”,共计{{total}}道题目。您可从第1题开始重新挑战,或者任意选择其中一道题重新挑战。 @@ -80,7 +80,7 @@ @import url("@/static/base_css.css"); .background-info, .question-info { - margin: 0 3%; + margin: 2% 3% 0; padding: 3%; width: 88%; height: 240rpx; diff --git a/subpkg/respractice/respractice.vue b/subpkg/respractice/respractice.vue index d0a2f67..52228e9 100644 --- a/subpkg/respractice/respractice.vue +++ b/subpkg/respractice/respractice.vue @@ -45,6 +45,7 @@ .secbar { position: absolute; z-index: 999999; + top: 100rpx; background-color: transparent; } diff --git a/subpkg/review/review.vue b/subpkg/review/review.vue index db134dd..cab80ba 100644 --- a/subpkg/review/review.vue +++ b/subpkg/review/review.vue @@ -5,7 +5,7 @@ 演练回顾 --> - + 您已完成“{{sceneName}}”场景中 “{{roleName}} ”〞角色挑战的共计{{total}}道题目,,每道题目和您选择的答案详情如下: @@ -109,7 +109,7 @@ .background-info, .question-info { - margin: 0 3%; + margin: 2% 3% 0; padding: 3%; width: 88%; height: 13vh; diff --git a/subpkg/role/role.vue b/subpkg/role/role.vue index 5e25366..f0651b2 100644 --- a/subpkg/role/role.vue +++ b/subpkg/role/role.vue @@ -132,18 +132,6 @@ width: 100%; height: 100%; } -.secbar { - top: 0; - z-index: 1; -} -.secbar ._span.back { - top: 50px; -} -.mainwrap3 { - top: 0; - height: 95vh; - overflow: hidden; -} .mainwrap3 > img { width: 100%; @@ -202,7 +190,7 @@ .startbtn { position: relative; z-index: 1; - bottom: 33vh; + bottom: 36vh; width: 100%; height: 30%; background:no-repeat 47.5% center;