center.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <template>
  2. <view class="jpmain ">
  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/main/ahtml/information')" >
  9. <view class="name">
  10. <view class="photo">
  11. <img class="img" src="@/assets/img/parkingDetails/item4.png" alt="">
  12. </view>
  13. <view class="text">
  14. <view class="text1">昵称</view>
  15. <view class="text2">13111111111</view>
  16. </view>
  17. </view>
  18. <view class="value">
  19. <u-icon name="arrow-right" size="24" color="#fff"></u-icon>
  20. </view>
  21. </view>
  22. <view class="page">
  23. <view class="page-main">
  24. <view class="item">
  25. <view class="name">1</view>
  26. <view class="value">车位</view>
  27. </view>
  28. <view class="item2">
  29. </view>
  30. <view class="item">
  31. <view class="name">1</view>
  32. <view class="value">白名单</view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="page">
  37. <view class="page-content">
  38. <view class="item" @click="gotoUrl('pages/main/ahtml/mylock/myLock')" >
  39. <view class="title">
  40. <img class="img" src="@/assets/img/center/icon1.png" alt="">
  41. 我的地锁
  42. </view>
  43. <view class="goto">
  44. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  45. </view>
  46. </view>
  47. <view class="item">
  48. <view class="title">
  49. <img class="img" src="@/assets/img/center/icon1.png" alt="">
  50. 我的地锁
  51. </view>
  52. <view class="goto">
  53. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. export default {
  63. data() {
  64. return {
  65. }
  66. },
  67. methods: {
  68. }
  69. }
  70. </script>
  71. <style>
  72. page {
  73. background-color: rgba(242, 244, 246, 1);
  74. }
  75. </style>
  76. <style scoped lang="scss">
  77. /* styles.css */
  78. .body {
  79. padding: 32rpx;
  80. }
  81. .gradient-header {
  82. height: 0px;
  83. }
  84. .jpback {
  85. height: 268rpx;
  86. background: linear-gradient(180deg, rgba(22, 119, 255, 1) 20%, rgba(121, 177, 255, 1) 100%);
  87. }
  88. .page-top {
  89. color: #fff;
  90. display: flex;
  91. justify-content: space-between;
  92. margin: 48rpx 0;
  93. .name {
  94. display: flex;
  95. align-items: flex-end;
  96. .photo {
  97. border-radius: 50px;
  98. background-color: rgba(229, 229, 229, 1);
  99. height: 100rpx;
  100. width: 100rpx;
  101. overflow: hidden;
  102. .img {
  103. width: 100%;
  104. height: 100%;
  105. }
  106. }
  107. .text {
  108. margin-left: 24rpx;
  109. .text1 {
  110. font-weight: bold;
  111. font-size: 40rpx;
  112. }
  113. .text2 {
  114. font-size: 32rpx;
  115. }
  116. }
  117. }
  118. .value {
  119. margin-top: 24rpx;
  120. font-size: 40rpx;
  121. font-weight: bold;
  122. color: #333333;
  123. }
  124. }
  125. .page {
  126. border-radius: 16rpx;
  127. background-color: rgba(255, 255, 255, 1);
  128. color: rgba(16, 16, 16, 1);
  129. padding:0 32rpx;
  130. margin-bottom: 32rpx;
  131. font-size: 32rpx;
  132. color: rgb(16, 16, 16);
  133. .page-main {
  134. display: flex;
  135. justify-content: space-around;
  136. align-items: center;
  137. padding:24rpx;
  138. .item {
  139. .name {
  140. font-size: 56rpx;
  141. color: #333333;
  142. font-weight: bold;
  143. }
  144. .value {
  145. color: rgba(146, 146, 176, 1);
  146. font-size: 32rpx;
  147. }
  148. display: flex;
  149. flex-direction: column;
  150. align-items: center;
  151. }
  152. .item2 {
  153. border-right: 1px solid rgba(187, 187, 187, 0.43);
  154. height: 70rpx;
  155. }
  156. }
  157. .page-content {
  158. .item:not(:last-child) {
  159. border-bottom:1px solid rgba(232,232,232,1);
  160. }
  161. .item {
  162. padding: 32rpx 0;
  163. display: flex;
  164. justify-content: space-between;
  165. align-items: center;
  166. .title {
  167. display: flex;
  168. justify-content: space-between;
  169. display: flex;
  170. align-items: center;
  171. color: rgba(51,51,51,1);
  172. .img {
  173. width: 32rpx;
  174. height: 32rpx;
  175. margin-right: 16rpx;
  176. }
  177. }
  178. }
  179. }
  180. }
  181. </style>