userInfo.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <main-layout>
  3. <template>
  4. <view class="header">
  5. <view class="avatar">
  6. <uni-icons type="person" size="70"></uni-icons>
  7. </view>
  8. <span class="nickname">昵称</span>
  9. </view>
  10. <view class="func-wrap">
  11. <view class="func">
  12. <uni-icons type="person" size="30"></uni-icons>
  13. <span class="name">头像</span>
  14. <span class="right-icon">
  15. <uni-icons type="right" size="30"></uni-icons>
  16. </span>
  17. </view>
  18. <view class="func">
  19. <uni-icons type="person" size="30"></uni-icons>
  20. <span class="name">昵称</span>
  21. <span class="right-icon">
  22. <uni-icons type="right" size="30"></uni-icons>
  23. </span>
  24. </view>
  25. </view>
  26. <view class="func-wrap">
  27. <view class="func">
  28. <uni-icons type="person" size="30"></uni-icons>
  29. <span class="name">奖励结算记录</span>
  30. <span class="right-icon">
  31. <uni-icons type="right" size="30"></uni-icons>
  32. </span>
  33. </view>
  34. <view class="func">
  35. <uni-icons type="person" size="30"></uni-icons>
  36. <span class="name">奖励领取记录</span>
  37. <span class="right-icon">
  38. <uni-icons type="right" size="30"></uni-icons>
  39. </span>
  40. </view>
  41. <view class="func">
  42. <uni-icons type="person" size="30"></uni-icons>
  43. <span class="name">刮刮乐投入与中奖记录</span>
  44. <span class="right-icon">
  45. <uni-icons type="right" size="30"></uni-icons>
  46. </span>
  47. </view>
  48. </view>
  49. <view class="cancel-btn">注销</view>
  50. </template>
  51. </main-layout>
  52. </template>
  53. <script setup>
  54. import { ref } from 'vue';
  55. import { onLoad } from "@dcloudio/uni-app";
  56. import { getSafeArea } from '@/utils/system.js';
  57. /**
  58. * 安全区
  59. */
  60. const safeArea = ref({});
  61. onLoad(() => {
  62. safeArea.value = getSafeArea();
  63. });
  64. const logout = () => {
  65. uni.removeStorageSync("token");
  66. uni.reLaunch({
  67. url: "/pages/index/index"
  68. });
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .header {
  73. display: flex;
  74. justify-content: center;
  75. align-items: center;
  76. flex-direction: column;
  77. margin-top: 100rpx;
  78. .avatar {
  79. width: 180rpx;
  80. height: 180rpx;
  81. opacity: 1;
  82. background: #FFFFFF;
  83. border-radius: 50%;
  84. display: flex;
  85. justify-content: center;
  86. align-items: center;
  87. }
  88. .nickname {
  89. margin-top: 16rpx;
  90. font-size: 36rpx;
  91. font-weight: 400;
  92. letter-spacing: 0px;
  93. line-height: 52.13rpx;
  94. color: #000000;
  95. }
  96. }
  97. .func-wrap {
  98. border-radius: 24rpx;
  99. background: #FFFFFF;
  100. padding: 16rpx 24rpx;
  101. margin-top: 24rpx;
  102. position: relative;
  103. .func {
  104. display: flex;
  105. justify-content: left;
  106. align-items: center;
  107. .name {
  108. font-size: 26rpx;
  109. font-weight: 400;
  110. letter-spacing: 0rpx;
  111. line-height: 37.65rpx;
  112. color: #000000;
  113. }
  114. .right-icon {
  115. position: absolute;
  116. right: 0rpx;
  117. }
  118. }
  119. }
  120. .cancel-btn {
  121. margin-top: 24rpx;
  122. height: 54rpx;
  123. opacity: 1;
  124. border-radius: 24rpx;
  125. background: #F2607A;
  126. /** 文本1 */
  127. font-size: 26rpx;
  128. font-weight: 400;
  129. letter-spacing: 0rpx;
  130. line-height: 37.65rpx;
  131. color: #FFFFFF;
  132. display: flex;
  133. justify-content: center;
  134. align-content: center;
  135. }
  136. </style>