my.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='我的' bgColor="transparent" :showback="false"></cus-header>
  4. <div class="info">
  5. <div class="i_top adfac">
  6. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/0bdaa978-db1a-4edb-8a41-fc45b096380f.png"></image>
  7. <div class="it_texts">
  8. <p>{{userName||''}}</p>
  9. <p>{{mobile||''}}</p>
  10. </div>
  11. </div>
  12. <div class="i_tips">
  13. <p>所属公司:{{'甜梦巧克力公司甜梦巧克力公司'}}</p>
  14. <p>所属团队:{{'甜梦巧克力团队'}}</p>
  15. </div>
  16. </div>
  17. <div class="box">
  18. <div class="b_pre adfacjb">
  19. <div class="bp_l adfac">
  20. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/ecb80887-6d86-420c-b797-7f12c5916871.png"></image>
  21. <text>版本</text>
  22. </div>
  23. <div class="bp_r">1.0.0</div>
  24. </div>
  25. <div class="b_pre adfacjb" @tap="exitLogin">
  26. <div class="bp_l adfac">
  27. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/4d10c9ef-8a13-4502-adfd-d388628446ab.png"></image>
  28. <text>退出登录</text>
  29. </div>
  30. <div class="bp_r">
  31. <u-icon name="arrow-right" color="#D3D2D2" size="32"></u-icon>
  32. </div>
  33. </div>
  34. </div>
  35. <Tabbar :tabbarIndex="1"></Tabbar>
  36. </view>
  37. </template>
  38. <script>
  39. import Tabbar from '@/components/CusTabbar/index.vue'
  40. export default {
  41. components:{ Tabbar },
  42. data(){
  43. return {
  44. userName:'',
  45. mobile:'',
  46. }
  47. },
  48. onLoad() {
  49. if(uni.getStorageSync('userInfo')){
  50. this.userName = JSON.parse(uni.getStorageSync('userInfo')).realName||'';
  51. this.mobile = JSON.parse(uni.getStorageSync('userInfo')).mobile||'';
  52. if(this.mobile) this.mobile = this.mobile.replace(this.mobile.substr(3,4),' **** ')
  53. }
  54. },
  55. methods:{
  56. exitLogin(){
  57. uni.clearStorageSync();
  58. uni.reLaunch({
  59. url:'/pages/login'
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style scoped lang="less">
  66. .tabPage{
  67. background: linear-gradient( 270deg, #EEEFF8 0%, #F6ECF4 100%, #F6ECF4 100%);
  68. padding: 0 0 172rpx;
  69. box-sizing: border-box;
  70. display: flex;
  71. flex-direction: column;
  72. .info{
  73. padding: 54rpx 40rpx;
  74. .i_top{
  75. image{
  76. width: 188rpx;
  77. height: 188rpx;
  78. }
  79. .it_texts{
  80. padding-left: 30rpx;
  81. p{
  82. font-family: PingFang-SC, PingFang-SC;
  83. font-weight: bold;
  84. font-size: 40rpx;
  85. color: #252525;
  86. line-height: 40rpx;
  87. &:last-child{
  88. font-family: PingFang-SC, PingFang-SC;
  89. font-weight: bold;
  90. font-size: 32rpx;
  91. color: #646464;
  92. line-height: 32rpx;
  93. margin-top: 36rpx;
  94. }
  95. }
  96. }
  97. }
  98. .i_tips{
  99. margin-top: 48rpx;
  100. overflow: hidden;
  101. p{
  102. margin-top: 40rpx;
  103. font-family: PingFangSC, PingFang SC;
  104. font-weight: 400;
  105. font-size: 28rpx;
  106. color: #6B7280;
  107. line-height: 28rpx;
  108. }
  109. }
  110. }
  111. .box{
  112. padding: 30rpx;
  113. background: #FFFFFF;
  114. flex: 1;
  115. .b_pre{
  116. background: #FFFFFF;
  117. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #ECECEC;
  118. border-radius: 16rpx 16rpx 0rpx 0rpx;
  119. padding: 39rpx 0;
  120. .bp_l{
  121. image{
  122. width: 36rpx;
  123. height: 36rpx;
  124. }
  125. text{
  126. font-family: PingFangSC, PingFang SC;
  127. font-weight: 400;
  128. font-size: 30rpx;
  129. color: #111111;
  130. line-height: 32rpx;
  131. margin-left: 30rpx;
  132. }
  133. }
  134. .bp_r{
  135. font-family: PingFang-SC, PingFang-SC;
  136. font-weight: bold;
  137. font-size: 30rpx;
  138. color: #111111;
  139. line-height: 32rpx;
  140. text-align: right;
  141. }
  142. }
  143. }
  144. }
  145. </style>