my.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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>所属公司:{{enterpriseName||''}}</p>
  14. <p>所属团队:{{teamName||''}}</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. enterpriseName:'',
  47. teamName:''
  48. }
  49. },
  50. onLoad() {
  51. if(uni.getStorageSync('userInfo')){
  52. this.userName = JSON.parse(uni.getStorageSync('userInfo')).realName||'';
  53. this.mobile = JSON.parse(uni.getStorageSync('userInfo')).mobile||'';
  54. this.enterpriseName = JSON.parse(uni.getStorageSync('userInfo')).enterpriseName||'';
  55. this.teamName = JSON.parse(uni.getStorageSync('userInfo')).teamName||'';
  56. if(this.mobile) this.mobile = this.mobile.replace(this.mobile.substr(3,4),' **** ')
  57. }
  58. },
  59. methods:{
  60. exitLogin(){
  61. uni.clearStorageSync();
  62. uni.reLaunch({
  63. url:'/pages/login'
  64. })
  65. }
  66. }
  67. }
  68. </script>
  69. <style scoped lang="less">
  70. .tabPage{
  71. background: linear-gradient( 270deg, #EEEFF8 0%, #F6ECF4 100%, #F6ECF4 100%);
  72. padding: 0 0 172rpx;
  73. box-sizing: border-box;
  74. display: flex;
  75. flex-direction: column;
  76. .info{
  77. padding: 54rpx 40rpx;
  78. .i_top{
  79. image{
  80. width: 188rpx;
  81. height: 188rpx;
  82. }
  83. .it_texts{
  84. padding-left: 30rpx;
  85. p{
  86. font-family: PingFang-SC, PingFang-SC;
  87. font-weight: bold;
  88. font-size: 40rpx;
  89. color: #252525;
  90. line-height: 40rpx;
  91. &:last-child{
  92. font-family: PingFang-SC, PingFang-SC;
  93. font-weight: bold;
  94. font-size: 32rpx;
  95. color: #646464;
  96. line-height: 32rpx;
  97. margin-top: 36rpx;
  98. }
  99. }
  100. }
  101. }
  102. .i_tips{
  103. margin-top: 48rpx;
  104. overflow: hidden;
  105. p{
  106. margin-top: 40rpx;
  107. font-family: PingFangSC, PingFang SC;
  108. font-weight: 400;
  109. font-size: 28rpx;
  110. color: #6B7280;
  111. line-height: 28rpx;
  112. }
  113. }
  114. }
  115. .box{
  116. padding: 30rpx;
  117. background: #FFFFFF;
  118. flex: 1;
  119. .b_pre{
  120. background: #FFFFFF;
  121. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #ECECEC;
  122. border-radius: 16rpx 16rpx 0rpx 0rpx;
  123. padding: 39rpx 0;
  124. .bp_l{
  125. image{
  126. width: 36rpx;
  127. height: 36rpx;
  128. }
  129. text{
  130. font-family: PingFangSC, PingFang SC;
  131. font-weight: 400;
  132. font-size: 30rpx;
  133. color: #111111;
  134. line-height: 32rpx;
  135. margin-left: 30rpx;
  136. }
  137. }
  138. .bp_r{
  139. font-family: PingFang-SC, PingFang-SC;
  140. font-weight: bold;
  141. font-size: 30rpx;
  142. color: #111111;
  143. line-height: 32rpx;
  144. text-align: right;
  145. }
  146. }
  147. }
  148. }
  149. </style>