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.

61 lines
1.1 KiB

  1. <template>
  2. <view class="main">
  3. <view :style="{height:iSMT+'px'}"></view>
  4. <view class="top">
  5. <view class="top-list" @click="goToPush">
  6. <text>语言</text>
  7. <text class="message" v-if="isMessage">通知已开启</text>
  8. <text class="message" v-if="!isMessage">通知未开启</text>
  9. <uni-icons type="arrowright" size="16" class="arrow" />
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script setup>
  15. import {
  16. ref,
  17. onMounted
  18. } from 'vue'
  19. const iSMT = ref(0)
  20. const isMessage = ref(true)
  21. const goToPush = () =>{
  22. uni.navigateTo({
  23. url: '/pages/setting/push'
  24. })
  25. }
  26. onMounted(() => {
  27. // 状态栏高度
  28. iSMT.value = uni.getSystemInfoSync().statusBarHeight;
  29. console.log('看看高度', iSMT.value)
  30. })
  31. </script>
  32. <style>
  33. .top {
  34. margin-top: 1.5vh;
  35. height: 7vh;
  36. background-color: white;
  37. display: flex;
  38. justify-content: center;
  39. }
  40. .top-list {
  41. width: 630rpx;
  42. height: 7vh;
  43. display: flex;
  44. align-items: center;
  45. margin: 0rpx 40rpx;
  46. }
  47. .message {
  48. margin-left: 60%;
  49. font-size: 14px;
  50. color: rgb(203, 203, 203);
  51. }
  52. .arrow {
  53. margin-left: auto;
  54. }
  55. </style>