index.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <template>
  2. <view>
  3. <view class="gradient-header">
  4. <view class="jpback">
  5. </view>
  6. </view>
  7. <view class="body">
  8. <view class="page-top" @click="gotoUrl('pages/information/information')" >
  9. <view class="name">
  10. <view class="photo">
  11. <img class="img" :src="userInfo.headImg" v-if="userInfo.headImg" alt="">
  12. <img class="img" src="@/assets/img/默认头像.png" v-else alt="">
  13. </view>
  14. <view class="text">
  15. <view class="text1">{{userInfo.nickName}}</view>
  16. <view class="text2">{{userInfo.phone}}</view>
  17. </view>
  18. </view>
  19. <view class="value">
  20. <u-icon name="arrow-right" size="24" color="#fff"></u-icon>
  21. </view>
  22. </view>
  23. <view class="page">
  24. <view class="page-main">
  25. <view class="item" @click="gotoUrl('pages/mylock/myLock')"
  26. v-if="userInfoPlus&&userInfoPlus.myAllList" >
  27. <view class="name">{{userInfoPlus.myAllList.length}}</view>
  28. <view class="value">车位</view>
  29. </view>
  30. <view class="item2">
  31. </view>
  32. <view class="item" @click="gotoUrl('pages/mylock/myWhite')" >
  33. <view class="name">{{whiteNum}}</view>
  34. <view class="value">白名单</view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="page">
  39. <view class="page-content">
  40. <view class="item" @click="gotoUrl('pages/mylock/myLock')" >
  41. <view class="title">
  42. <img class="img" src="@/assets/img/myTab/icon1.svg" alt="">
  43. 我的消息
  44. </view>
  45. <view class="goto">
  46. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  47. </view>
  48. </view>
  49. <view class="item" @click="gotoUrl('pages/mylock/myLock')" >
  50. <view class="title">
  51. <img class="img" src="@/assets/img/myTab/icon1.svg" alt="">
  52. 意见反馈
  53. </view>
  54. <view class="goto">
  55. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  56. </view>
  57. </view>
  58. <view class="item" @click="gotoUrl('pages/mylock/myLock')" >
  59. <view class="title">
  60. <img class="img" src="@/assets/img/myTab/icon1.svg" alt="">
  61. 客服热线
  62. </view>
  63. <view class="goto">
  64. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="page">
  70. <view class="page-content">
  71. <view class="item" @click="gotoUrl('pages/mylock/myLock')" >
  72. <view class="title">
  73. <img class="img" src="@/assets/img/myTab/icon1.svg" alt="">
  74. 设置
  75. </view>
  76. <view class="goto">
  77. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. <tabbar :current="3"></tabbar>
  84. </view>
  85. </template>
  86. <script>
  87. import * as API from '@/apis/pagejs/index.js'
  88. import Tabbar from '@/components/Tabbar.vue'
  89. export default {
  90. components: {
  91. Tabbar
  92. },
  93. data() {
  94. return {
  95. isReady:false,
  96. userInfo:{},
  97. userInfoPlus:{
  98. whiteList:[],
  99. myAllList:[]
  100. },
  101. whiteNum:0,
  102. };
  103. }
  104. }
  105. </script>
  106. <style lang="scss">
  107. page {
  108. background-color: rgba(242, 244, 246, 1);
  109. }
  110. .body {
  111. padding: 32rpx;
  112. }
  113. .gradient-header {
  114. height: 0px;
  115. }
  116. .jpback {
  117. height: 268rpx;
  118. background: linear-gradient(180deg, rgba(22, 119, 255, 1) 20%, rgba(121, 177, 255, 1) 100%);
  119. }
  120. .page-top {
  121. color: #fff;
  122. display: flex;
  123. justify-content: space-between;
  124. margin: 48rpx 0;
  125. .name {
  126. display: flex;
  127. align-items: flex-end;
  128. .photo {
  129. border-radius: 50px;
  130. background-color: rgba(229, 229, 229, 1);
  131. height: 100rpx;
  132. width: 100rpx;
  133. overflow: hidden;
  134. .img {
  135. width: 100%;
  136. height: 100%;
  137. }
  138. }
  139. .text {
  140. margin-left: 24rpx;
  141. .text1 {
  142. font-weight: bold;
  143. font-size: 40rpx;
  144. }
  145. .text2 {
  146. font-size: 32rpx;
  147. }
  148. }
  149. }
  150. .value {
  151. margin-top: 24rpx;
  152. font-size: 40rpx;
  153. font-weight: bold;
  154. color: #333333;
  155. }
  156. }
  157. .page {
  158. border-radius: 16rpx;
  159. background-color: rgba(255, 255, 255, 1);
  160. color: rgba(16, 16, 16, 1);
  161. padding:0 32rpx;
  162. margin-bottom: 32rpx;
  163. font-size: 32rpx;
  164. color: rgb(16, 16, 16);
  165. .page-main {
  166. display: flex;
  167. justify-content: space-around;
  168. align-items: center;
  169. padding:24rpx;
  170. .item {
  171. .name {
  172. font-size: 56rpx;
  173. color: #333333;
  174. font-weight: bold;
  175. }
  176. .value {
  177. color: rgba(146, 146, 176, 1);
  178. font-size: 32rpx;
  179. }
  180. display: flex;
  181. flex-direction: column;
  182. align-items: center;
  183. }
  184. .item2 {
  185. border-right: 1px solid rgba(187, 187, 187, 0.43);
  186. height: 70rpx;
  187. }
  188. }
  189. .page-content {
  190. .item:not(:last-child) {
  191. border-bottom:1px solid rgba(232,232,232,1);
  192. }
  193. .item {
  194. padding: 32rpx 0;
  195. display: flex;
  196. justify-content: space-between;
  197. align-items: center;
  198. .title {
  199. display: flex;
  200. justify-content: space-between;
  201. display: flex;
  202. align-items: center;
  203. color: rgba(51,51,51,1);
  204. .img {
  205. width: 32rpx;
  206. height: 32rpx;
  207. margin-right: 16rpx;
  208. }
  209. }
  210. }
  211. }
  212. }
  213. </style>