my.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <template>
  2. <view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='我的' :showback="false" bgColor='transparent'></cus-header>
  4. <image class="topbg" src="http://106.54.209.120:8188/static/my_topbg.png"></image>
  5. <div class="info adffcacjc">
  6. <image src="http://106.54.209.120:8188/static/my_avatat_default.png"></image>
  7. <p>{{username}}</p>
  8. </div>
  9. <div class="items">
  10. <div class="item adfacjb" @tap="toTurn('/pagesMy/device')">
  11. <div class="il adfac">
  12. <image src="http://106.54.209.120:8188/static/my_device.png"></image>
  13. <text>我的设备</text>
  14. </div>
  15. <div class="ir">
  16. <u-icon name="arrow-right" color="#D3D2D2" size="34"></u-icon>
  17. </div>
  18. </div>
  19. <div class="item adfacjb" @tap="toTurn('/pagesMy/useBook')">
  20. <div class="il adfac">
  21. <image src="http://106.54.209.120:8188/static/my_book.png"></image>
  22. <text>用户使用手册</text>
  23. </div>
  24. <div class="ir">
  25. <u-icon name="arrow-right" color="#D3D2D2" size="34"></u-icon>
  26. </div>
  27. </div>
  28. <div class="item adfacjb" @tap="toTurn('/pagesMy/feedback')">
  29. <div class="il adfac">
  30. <image src="http://106.54.209.120:8188/static/myu_idea.png"></image>
  31. <text>意见反馈</text>
  32. </div>
  33. <div class="ir">
  34. <u-icon name="arrow-right" color="#D3D2D2" size="34"></u-icon>
  35. </div>
  36. </div>
  37. <div class="item adfacjb">
  38. <div class="il adfac">
  39. <image src="http://106.54.209.120:8188/static/my_version.png"></image>
  40. <text>版本</text>
  41. </div>
  42. <div class="ir">{{'1.0.0'}}</div>
  43. </div>
  44. </div>
  45. <div class="exit">退出登录</div>
  46. <cus-tabbar :tabbarIndex="2"></cus-tabbar>
  47. </view>
  48. </template>
  49. <script>
  50. import cusTabbar from '@/components/CusTabbar/index.vue'
  51. export default {
  52. components:{
  53. cusTabbar
  54. },
  55. data(){
  56. return {
  57. username:''
  58. }
  59. },
  60. onShow() {
  61. if(uni.getStorageSync('userInfo')){
  62. let username = JSON.parse(uni.getStorageSync('userInfo')).username;
  63. this.username = username.replace(/^(.{3})(?:\d+)(.{4})$/, "$1 **** $2");
  64. }
  65. },
  66. methods:{
  67. toTurn(url){
  68. if(!url) return
  69. uni.navigateTo({ url })
  70. }
  71. }
  72. }
  73. </script>
  74. <style scoped lang="less">
  75. .tabPage{
  76. background: #FFFFFF;
  77. padding: 0 30rpx 192rpx;
  78. box-sizing: border-box;
  79. .topbg{
  80. width: 100%;
  81. height: 720rpx;
  82. position: fixed;
  83. top: 0;
  84. left: 0;
  85. }
  86. .info{
  87. position: relative;
  88. margin-top: 68rpx;
  89. &>image{
  90. width: 200rpx;
  91. height: 200rpx;
  92. border-radius: 50%;
  93. }
  94. p{
  95. font-family: PingFang-SC, PingFang-SC;
  96. font-weight: bold;
  97. font-size: 48rpx;
  98. color: #111111;
  99. line-height: 32rpx;
  100. text-align: center;
  101. margin-top: 40rpx;
  102. }
  103. }
  104. .items{
  105. position: relative;
  106. margin-top: 93rpx;
  107. .item{
  108. width: 100%;
  109. padding: 39rpx 20rpx;
  110. box-sizing: border-box;
  111. background: #FFFFFF;
  112. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #ECECEC;
  113. border-radius: 16rpx 16rpx 0rpx 0rpx;
  114. .il{
  115. image{
  116. width: 36rpx;
  117. height: 36rpx;
  118. }
  119. text{
  120. font-family: PingFangSC, PingFang SC;
  121. font-weight: 400;
  122. font-size: 30rpx;
  123. color: #111111;
  124. line-height: 32rpx;
  125. margin-left: 34rpx;
  126. }
  127. }
  128. .ir{
  129. font-family: PingFang-SC, PingFang-SC;
  130. font-weight: bold;
  131. font-size: 30rpx;
  132. color: #111111;
  133. line-height: 32rpx;
  134. text-align: right;
  135. }
  136. }
  137. }
  138. .exit{
  139. width: 100%;
  140. height: 88rpx;
  141. background: #F8F8F7;
  142. border-radius: 24rpx;
  143. margin-top: 190rpx;
  144. font-family: PingFangSC, PingFang SC;
  145. font-weight: 400;
  146. font-size: 30rpx;
  147. color: #111111;
  148. line-height: 88rpx;
  149. text-align: center;
  150. letter-spacing: 2rpx;
  151. }
  152. }
  153. </style>