my.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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" v-if="logined">
  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 class="b_pre adfacjb" @tap="toLogin" v-else>
  35. <div class="bp_l adfac">
  36. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/4d10c9ef-8a13-4502-adfd-d388628446ab.png"></image>
  37. <text>立即登录</text>
  38. </div>
  39. <div class="bp_r">
  40. <u-icon name="arrow-right" color="#D3D2D2" size="32"></u-icon>
  41. </div>
  42. </div>
  43. </div>
  44. <Tabbar :tabbarIndex="1"></Tabbar>
  45. </view>
  46. </template>
  47. <script>
  48. import Tabbar from '@/components/CusTabbar/index.vue'
  49. export default {
  50. components:{ Tabbar },
  51. data(){
  52. return {
  53. userName:'',
  54. mobile:'',
  55. enterpriseName:'',
  56. teamName:'',
  57. logined:false
  58. }
  59. },
  60. onLoad() {
  61. if(uni.getStorageSync('userInfo')){
  62. this.logined = true;
  63. this.userName = JSON.parse(uni.getStorageSync('userInfo')).realName||'';
  64. this.mobile = JSON.parse(uni.getStorageSync('userInfo')).mobile||'';
  65. this.enterpriseName = JSON.parse(uni.getStorageSync('userInfo')).enterpriseName||'';
  66. this.teamName = JSON.parse(uni.getStorageSync('userInfo')).teamName||'';
  67. if(this.mobile) this.mobile = this.mobile.replace(this.mobile.substr(3,4),' **** ')
  68. }
  69. },
  70. methods:{
  71. exitLogin(){
  72. uni.clearStorageSync();
  73. uni.reLaunch({
  74. url:'/pages/login'
  75. })
  76. },
  77. toLogin(){
  78. uni.reLaunch({
  79. url:'/pages/login'
  80. })
  81. }
  82. }
  83. }
  84. </script>
  85. <style scoped lang="less">
  86. .tabPage{
  87. background: linear-gradient( 270deg, #EEEFF8 0%, #F6ECF4 100%, #F6ECF4 100%);
  88. padding: 0 0 172rpx;
  89. box-sizing: border-box;
  90. display: flex;
  91. flex-direction: column;
  92. .info{
  93. padding: 54rpx 40rpx;
  94. .i_top{
  95. image{
  96. width: 188rpx;
  97. height: 188rpx;
  98. }
  99. .it_texts{
  100. padding-left: 30rpx;
  101. p{
  102. font-family: PingFang-SC, PingFang-SC;
  103. font-weight: bold;
  104. font-size: 40rpx;
  105. color: #252525;
  106. line-height: 40rpx;
  107. &:last-child{
  108. font-family: PingFang-SC, PingFang-SC;
  109. font-weight: bold;
  110. font-size: 32rpx;
  111. color: #646464;
  112. line-height: 32rpx;
  113. margin-top: 36rpx;
  114. }
  115. }
  116. }
  117. }
  118. .i_tips{
  119. margin-top: 48rpx;
  120. overflow: hidden;
  121. p{
  122. margin-top: 40rpx;
  123. font-family: PingFangSC, PingFang SC;
  124. font-weight: 400;
  125. font-size: 28rpx;
  126. color: #6B7280;
  127. line-height: 28rpx;
  128. }
  129. }
  130. }
  131. .box{
  132. padding: 30rpx;
  133. background: #FFFFFF;
  134. flex: 1;
  135. .b_pre{
  136. background: #FFFFFF;
  137. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #ECECEC;
  138. border-radius: 16rpx 16rpx 0rpx 0rpx;
  139. padding: 39rpx 0;
  140. .bp_l{
  141. image{
  142. width: 36rpx;
  143. height: 36rpx;
  144. }
  145. text{
  146. font-family: PingFangSC, PingFang SC;
  147. font-weight: 400;
  148. font-size: 30rpx;
  149. color: #111111;
  150. line-height: 32rpx;
  151. margin-left: 30rpx;
  152. }
  153. }
  154. .bp_r{
  155. font-family: PingFang-SC, PingFang-SC;
  156. font-weight: bold;
  157. font-size: 30rpx;
  158. color: #111111;
  159. line-height: 32rpx;
  160. text-align: right;
  161. }
  162. }
  163. }
  164. }
  165. </style>