Bladeren bron

修改样式

DESKTOP-SVI9JE1\muzen 1 jaar geleden
bovenliggende
commit
449abbc7d5
1 gewijzigde bestanden met toevoegingen van 9 en 9 verwijderingen
  1. 9 9
      src/pages/help/index.vue

+ 9 - 9
src/pages/help/index.vue

@@ -54,13 +54,19 @@ export default {
       // 单选
       active: 0,
       // 反馈类型
-      typeOptions: [],
+      typeOptions: []
     }
   },
   onLoad() {
+    this.getList()
+  },
+  onReady() {
     // 背景改色
     document.querySelector('body').setAttribute('style', 'background-color:#FFF;')
-    this.getList()
+    // 全局顶部动态高度
+    this.$nextTick(() => {
+      document.getElementsByClassName('app-container')[0].style = this.$el.clientHeight > uni.getSystemInfoSync().safeArea.height ? '' : 'height: 100%'
+    })
   },
   methods: {
     // 反馈类型
@@ -130,16 +136,10 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-uni-page-body {
-  background-color: #FFF;
-}
-
 .app-container {
-  background-color: #FFF;
   color: #353535;
   position: relative;
 }
-
 .radio-list {
   margin-top: 20px;
 
@@ -212,7 +212,7 @@ textarea {
   width: 100%;
   position: absolute;
   left: 0;
-  bottom: 0;
+  bottom: 20px;
 
   button {
     width: 400rpx;