You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
1.9 KiB

  1. <template>
  2. <view class="main">
  3. <view :style="{height:iSMT+'px'}"></view>
  4. <view class="top">
  5. <view class="top-list">
  6. <text style="width:180rpx;">公共消息</text>
  7. <text class="public">重大咨询财经要闻等系统提醒</text>
  8. <switch class="arrow switch-btn" />
  9. </view>
  10. <view class="top-list">
  11. <text>字体大小</text>
  12. <switch class="arrow switch-btn" />
  13. </view>
  14. </view>
  15. <view class="bottom">
  16. <view class="bottom-list">
  17. <text>盯盘预警</text>
  18. <uni-icons type="arrowright" size="16" class="arrow" />
  19. </view>
  20. <view class="bottom-list">
  21. <text>订阅服务</text>
  22. <text class="cache">45.5M</text>
  23. <uni-icons type="arrowright" size="16" class="arrow" />
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script setup>
  29. import {
  30. ref,
  31. onMounted
  32. } from 'vue'
  33. const iSMT = ref(0)
  34. onMounted(() => {
  35. // 状态栏高度
  36. iSMT.value = uni.getSystemInfoSync().statusBarHeight;
  37. console.log('看看高度', iSMT.value)
  38. })
  39. </script>
  40. <style>
  41. .top {
  42. margin-top: 1.5vh;
  43. height: 14vh;
  44. background-color: white;
  45. }
  46. .top-list {
  47. width: 630rpx;
  48. height: 7vh;
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. margin: 0 40rpx;
  53. padding: 0 10rpx;
  54. border-bottom: 1rpx solid #eee;
  55. }
  56. .top-list:last-child {
  57. border-bottom: none;
  58. }
  59. .switch-btn {
  60. width: 100rpx;
  61. transform: scale(0.6);
  62. transform-origin: center right;
  63. }
  64. .public {
  65. width: 450rpx;
  66. margin-left: auto;
  67. font-size: 10px;
  68. color: rgb(203, 203, 203);
  69. }
  70. .arrow {
  71. margin-left: auto;
  72. }
  73. .bottom {
  74. height: 13.5vh;
  75. background-color: white;
  76. margin-top: 1vh;
  77. }
  78. .bottom-list {
  79. width: 630rpx;
  80. height: 7vh;
  81. display: flex;
  82. align-items: center;
  83. margin: 0 40rpx;
  84. padding: 0 10rpx;
  85. border-bottom: 1rpx solid #eee;
  86. }
  87. .cache {
  88. margin-left: 55%;
  89. font-size: 14px;
  90. color: rgb(203, 203, 203);
  91. }
  92. .bottom-list:last-child {
  93. border-bottom: none;
  94. }
  95. </style>