user-info.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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" @click="goSettleListPage">
  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" @click="goClaimRewardListPage">
  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" @click="goScratchListPage">
  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" @click="logout">注销</view>
  50. </template>
  51. </main-layout>
  52. </template>
  53. <script setup>
  54. import { ref } from 'vue';
  55. import router from '@/common/constants/router.js';
  56. const logout = () => {
  57. uni.removeStorageSync("token");
  58. uni.reLaunch({
  59. url: router.INDEX_URL
  60. });
  61. }
  62. /**
  63. * 跳转结算列表页
  64. */
  65. const goSettleListPage = () => {
  66. uni.navigateTo({
  67. url: router.SETTLE_LIST_URL
  68. });
  69. }
  70. /**
  71. * 跳转奖励领取记录列表页
  72. */
  73. const goClaimRewardListPage = () => {
  74. uni.navigateTo({
  75. url: router.CLAIM_REWARD_LIST_URL
  76. });
  77. }
  78. /**
  79. * 跳转刮刮乐记录列表页
  80. */
  81. const goScratchListPage = () => {
  82. uni.navigateTo({
  83. url: router.SCRATCH_LIST_URL
  84. });
  85. }
  86. </script>
  87. <style lang="scss" scoped>
  88. .header {
  89. display: flex;
  90. justify-content: center;
  91. align-items: center;
  92. flex-direction: column;
  93. margin-top: 100rpx;
  94. .avatar {
  95. width: 180rpx;
  96. height: 180rpx;
  97. opacity: 1;
  98. background: #FFFFFF;
  99. border-radius: 50%;
  100. display: flex;
  101. justify-content: center;
  102. align-items: center;
  103. }
  104. .nickname {
  105. margin-top: 16rpx;
  106. font-size: 36rpx;
  107. font-weight: 400;
  108. letter-spacing: 0px;
  109. line-height: 52.13rpx;
  110. color: #000000;
  111. }
  112. }
  113. .func-wrap {
  114. border-radius: 24rpx;
  115. background: #FFFFFF;
  116. padding: 16rpx 24rpx;
  117. margin-top: 24rpx;
  118. position: relative;
  119. .func {
  120. display: flex;
  121. justify-content: left;
  122. align-items: center;
  123. .name {
  124. font-size: 26rpx;
  125. font-weight: 400;
  126. letter-spacing: 0rpx;
  127. line-height: 37.65rpx;
  128. color: #000000;
  129. }
  130. .right-icon {
  131. position: absolute;
  132. right: 0rpx;
  133. }
  134. }
  135. }
  136. .cancel-btn {
  137. margin-top: 24rpx;
  138. height: 54rpx;
  139. opacity: 1;
  140. border-radius: 24rpx;
  141. background: #F2607A;
  142. /** 文本1 */
  143. font-size: 26rpx;
  144. font-weight: 400;
  145. letter-spacing: 0rpx;
  146. // line-height: 37.65rpx;
  147. color: #FFFFFF;
  148. display: flex;
  149. justify-content: center;
  150. align-content: center;
  151. align-items: center;
  152. }
  153. </style>