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.

84 lines
1.5 KiB

  1. <template>
  2. <view class="main">
  3. <view :style="{height:iSMT+'px'}"></view>
  4. <view style="height:1.5vh;" />
  5. <view class="top">
  6. <view class="top-list" @click="goToBindPhone">
  7. <text class="label">手机号</text>
  8. <view class="right">
  9. <text style="font-size: 28rpx;">未绑定</text>
  10. <uni-icons type="arrowright" size="16" />
  11. </view>
  12. </view>
  13. <view class="top-list" @click="goToBindEmail">
  14. <text class="label">邮箱</text>
  15. <view class="right">
  16. <text style="font-size: 28rpx;">analsak@163.com</text>
  17. <uni-icons type="arrowright" size="16" />
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script setup>
  24. import {
  25. ref,
  26. onMounted
  27. } from 'vue'
  28. const iSMT = ref(0)
  29. const goToBindPhone = () =>{
  30. uni.navigateTo({
  31. url:'../setting/phone'
  32. })
  33. }
  34. const goToBindEmail = () =>{
  35. uni.navigateTo({
  36. url:'../setting/email'
  37. })
  38. }
  39. onMounted(() => {
  40. // 状态栏高度
  41. iSMT.value = uni.getSystemInfoSync().statusBarHeight;
  42. console.log('看看高度', iSMT.value)
  43. })
  44. </script>
  45. <style>
  46. .top {
  47. height: 14vh;
  48. background-color: white;
  49. display: flex;
  50. flex-direction: column;
  51. align-items: center;
  52. justify-content: center;
  53. }
  54. .top-list {
  55. width: 630rpx;
  56. height: 7vh;
  57. margin: 0rpx 40rpx;
  58. display: flex;
  59. align-items: center;
  60. border-bottom: 1rpx solid #eee;
  61. }
  62. .top-list:last-child {
  63. border: none;
  64. }
  65. .label {
  66. font-size: 28rpx;
  67. flex: 1;
  68. }
  69. .right{
  70. display: flex;
  71. align-items: center;
  72. justify-content: center;
  73. }
  74. </style>