index.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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/myTab/dataUser')" >
  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.realName}}</view>
  16. <view class="text2">{{userInfo.userName}}</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" v-if="0">
  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/myTab/myMessage')" >
  41. <view class="title">
  42. <!-- <img class="img" src="@/assets/img/myTab/icon1.svg" alt=""> -->
  43. <u-icon size="40" :marginLeft="12" label-size="32" name="chat" label="我的消息" ></u-icon>
  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/myTab/feedbackList')" >
  50. <view class="title">
  51. <u-icon name="email" size="40" label-size="32" :marginLeft="12" label="意见反馈"></u-icon>
  52. </view>
  53. <view class="goto">
  54. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  55. </view>
  56. </view>
  57. <view class="item" @click="gotoUrl('/pages/myTab/customerService')" >
  58. <view class="title">
  59. <u-icon name="server-fill" size="40" label-size="32" :marginLeft="12" label="客服热线"></u-icon>
  60. </view>
  61. <view class="goto">
  62. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  63. </view>
  64. </view>
  65. <view class="item" @click="gotoUrl('/pages/myTab/abnormalList')" >
  66. <view class="title">
  67. <u-icon name="error-circle" size="40" label-size="32" :marginLeft="12" label="异常告警"></u-icon>
  68. </view>
  69. <view class="goto">
  70. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="page">
  76. <view class="page-content">
  77. <view class="item" @click="gotoUrl('/pages/myTab/setting')" >
  78. <view class="title">
  79. <u-icon name="setting" size="40" label-size="32" label="设置"></u-icon>
  80. </view>
  81. <view class="goto">
  82. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <tabbar :current="3"></tabbar>
  89. </view>
  90. </template>
  91. <script>
  92. import * as API from '@/apis/pagejs/index.js'
  93. import Tabbar from '@/components/Tabbar.vue'
  94. export default {
  95. components: {
  96. Tabbar
  97. },
  98. data() {
  99. return {
  100. isReady:false,
  101. userInfo:{},
  102. userInfoPlus:{
  103. whiteList:[],
  104. myAllList:[]
  105. },
  106. whiteNum:0,
  107. };
  108. },
  109. onLoad() {
  110. this.userInfo=this.jphelp.getPersonInfo()
  111. console.log(this.userInfo)
  112. },
  113. methods:{
  114. }
  115. }
  116. </script>
  117. <style lang="scss">
  118. page {
  119. background-color: rgba(242, 244, 246, 1);
  120. }
  121. .body {
  122. padding: 32rpx;
  123. }
  124. .gradient-header {
  125. height: 0px;
  126. }
  127. .jpback {
  128. height: 268rpx;
  129. background: linear-gradient(180deg, rgba(22, 119, 255, 1) 20%, rgba(121, 177, 255, 1) 100%);
  130. }
  131. .page-top {
  132. color: #fff;
  133. display: flex;
  134. justify-content: space-between;
  135. margin: 48rpx 0;
  136. .name {
  137. display: flex;
  138. align-items: flex-end;
  139. .photo {
  140. border-radius: 50px;
  141. background-color: rgba(229, 229, 229, 1);
  142. height: 100rpx;
  143. width: 100rpx;
  144. overflow: hidden;
  145. .img {
  146. width: 100%;
  147. height: 100%;
  148. }
  149. }
  150. .text {
  151. margin-left: 24rpx;
  152. .text1 {
  153. font-weight: bold;
  154. font-size: 40rpx;
  155. }
  156. .text2 {
  157. font-size: 32rpx;
  158. }
  159. }
  160. }
  161. .value {
  162. margin-top: 24rpx;
  163. font-size: 40rpx;
  164. font-weight: bold;
  165. color: #333333;
  166. }
  167. }
  168. .page {
  169. border-radius: 16rpx;
  170. background-color: rgba(255, 255, 255, 1);
  171. color: rgba(16, 16, 16, 1);
  172. padding:0 32rpx;
  173. margin-bottom: 32rpx;
  174. font-size: 32rpx;
  175. color: rgb(16, 16, 16);
  176. .page-main {
  177. display: flex;
  178. justify-content: space-around;
  179. align-items: center;
  180. padding:24rpx;
  181. .item {
  182. .name {
  183. font-size: 56rpx;
  184. color: #333333;
  185. font-weight: bold;
  186. }
  187. .value {
  188. color: rgba(146, 146, 176, 1);
  189. font-size: 32rpx;
  190. }
  191. display: flex;
  192. flex-direction: column;
  193. align-items: center;
  194. }
  195. .item2 {
  196. border-right: 1px solid rgba(187, 187, 187, 0.43);
  197. height: 70rpx;
  198. }
  199. }
  200. .page-content {
  201. .item:not(:last-child) {
  202. border-bottom:1px solid rgba(232,232,232,1);
  203. }
  204. .item {
  205. padding: 46rpx 0;
  206. display: flex;
  207. justify-content: space-between;
  208. align-items: center;
  209. .title {
  210. display: flex;
  211. justify-content: space-between;
  212. display: flex;
  213. align-items: center;
  214. color: rgba(51,51,51,1);
  215. .img {
  216. width: 32rpx;
  217. height: 32rpx;
  218. margin-right: 16rpx;
  219. }
  220. }
  221. }
  222. }
  223. }
  224. </style>