center.vue 4.4 KB

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