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.

119 lines
2.2 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 class="label">公共消息</text>
  7. <view class="right">
  8. <text class="public">重大咨询财经要闻等系统提醒</text>
  9. <switch class="switch-btn" />
  10. </view>
  11. </view>
  12. <view class="top-list">
  13. <text class="label">指标消息提醒</text>
  14. <view class="right">
  15. <text class="public">所有指标消息的提醒</text>
  16. <switch class="switch-btn" />
  17. </view>
  18. </view>
  19. </view>
  20. <view class="bottom">
  21. <view class="bottom-list">
  22. <text class="label">盯盘预警</text>
  23. <view class="right">
  24. <text class="public">自选股预警和个性化预警设置</text>
  25. <uni-icons type="arrowright" size="16" />
  26. </view>
  27. </view>
  28. <view class="bottom-list">
  29. <text class="label">订阅服务</text>
  30. <view class="right">
  31. <text class="public">订阅你感兴趣的专题服务</text>
  32. <uni-icons type="arrowright" size="16" />
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script setup>
  39. import {
  40. ref,
  41. onMounted
  42. } from 'vue'
  43. const iSMT = ref(0)
  44. onMounted(() => {
  45. // 状态栏高度
  46. iSMT.value = uni.getSystemInfoSync().statusBarHeight;
  47. console.log('看看高度', iSMT.value)
  48. })
  49. </script>
  50. <style>
  51. .top {
  52. margin-top: 1.5vh;
  53. height: 14vh;
  54. background-color: white;
  55. }
  56. .top-list {
  57. width: 630rpx;
  58. height: 7vh;
  59. display: flex;
  60. align-items: center;
  61. margin: 0 40rpx;
  62. padding: 0 10rpx;
  63. border-bottom: 1rpx solid #eee;
  64. }
  65. .top-list:last-child {
  66. border-bottom: none;
  67. }
  68. .right {
  69. display: flex;
  70. align-items: center;
  71. gap: 10rpx;
  72. }
  73. .switch-btn {
  74. transform: scale(0.6);
  75. transform-origin: center right;
  76. }
  77. .public {
  78. font-size: 10px;
  79. color: rgb(203, 203, 203);
  80. }
  81. .bottom {
  82. height: 14vh;
  83. background-color: white;
  84. margin-top: 1vh;
  85. }
  86. .bottom-list {
  87. width: 630rpx;
  88. height: 7vh;
  89. display: flex;
  90. align-items: center;
  91. margin: 0 40rpx;
  92. padding: 0 10rpx;
  93. border-bottom: 1rpx solid #eee;
  94. }
  95. .cache {
  96. margin-left: 55%;
  97. font-size: 14px;
  98. color: rgb(203, 203, 203);
  99. }
  100. .bottom-list:last-child {
  101. border-bottom: none;
  102. }
  103. .label {
  104. flex: 1;
  105. }
  106. </style>