index.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <template>
  2. <view class="user">
  3. <header>
  4. <view class="title">个人中心</view>
  5. </header>
  6. <view class="card-info">
  7. <view class="top-info">
  8. <view class="img-box">
  9. <img src="../../../static/new-images/user/header.jpg" alt="">
  10. </view>
  11. <view class="text">
  12. <view class="name">韦忠林</view>
  13. <view class="label">
  14. <p>商家</p>
  15. <span>18811639900</span>
  16. </view>
  17. </view>
  18. <view class="bg-box">
  19. 个人管理
  20. </view>
  21. </view>
  22. <view class="perfect">
  23. <view class="bg"></view>
  24. <button class="btn">去完善</button>
  25. </view>
  26. </view>
  27. <main>
  28. <view class="info-list">
  29. <view class="info-item" v-for="(item, index) in infoList" :key="index">
  30. <view class="left">{{ item }}</view>
  31. <p>
  32. <template v-if="index < 2">
  33. <span>去认证</span>
  34. </template>
  35. <span><tui-icon name="arrowright" size="27" color="#B9B9B9"></tui-icon></span>
  36. </p>
  37. </view>
  38. </view>
  39. <view class="setUp">
  40. <view class="left">设置</view>
  41. <p>
  42. <span><tui-icon name="arrowright" size="27" color="#B9B9B9"></tui-icon></span>
  43. </p>
  44. </view>
  45. </main>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. infoList: ['个人认证信息', '企业认证信息', '商品管理', '订单管理', '会员管理', '信息管理']
  53. }
  54. }
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. page {
  59. background-color: #F5F5F5;
  60. }
  61. .user {
  62. header {
  63. padding: 30rpx 30rpx 25rpx;
  64. .title {
  65. font-size: 42rpx;
  66. font-weight: 700;
  67. }
  68. }
  69. .card-info {
  70. background-color: #fff;
  71. padding: 30rpx 0rpx 40rpx 40rpx;
  72. box-sizing: border-box;
  73. .top-info {
  74. display: flex;
  75. align-items: center;
  76. position: relative;
  77. margin-bottom: 40rpx;
  78. .img-box {
  79. width: 112rpx;
  80. height: 112rpx;
  81. margin-right: 25rpx;
  82. img {
  83. width: 100%;
  84. height: 100%;
  85. display: block;
  86. border-radius: 50%;
  87. }
  88. }
  89. .text {
  90. .name {
  91. font-size: 36rpx;
  92. font-weight: 600;
  93. margin-bottom: 15rpx;
  94. }
  95. .label {
  96. display: flex;
  97. align-items: center;
  98. gap: 10rpx;
  99. p {
  100. padding: 5rpx 20rpx;
  101. color: #fff;
  102. background-color: #FF6619;
  103. font-size: 20rpx;
  104. border-radius: 10rpx;
  105. }
  106. span {
  107. color: #969699;
  108. font-size: 22rpx;
  109. }
  110. }
  111. }
  112. .bg-box {
  113. background: url("../../../static/new-images/user/bg.png") no-repeat center;
  114. background-size: 100% 100%;
  115. width: 160rpx;
  116. height: 64rpx;
  117. text-align: center;
  118. line-height: 64rpx;
  119. color: #fff;
  120. position: absolute;
  121. top: 0;
  122. right: 0rpx;
  123. }
  124. }
  125. .perfect {
  126. padding-right: 30rpx;
  127. width: 100%;
  128. height: 130rpx;
  129. box-sizing: border-box;
  130. position: relative;
  131. .bg {
  132. width: 100%;
  133. height: 100%;
  134. background: url("../../../static/new-images/user/go.png") no-repeat center;
  135. background-size: 100% 100%;
  136. }
  137. .btn {
  138. position: absolute;
  139. top: 32rpx;
  140. right: 45rpx;
  141. background: linear-gradient(to right, #DCC5AD, #CDAC8D);
  142. color: #373535;
  143. text-align: center;
  144. width: 145rpx;
  145. height: 55rpx;
  146. line-height: 55rpx;
  147. font-size: 24rpx;
  148. }
  149. }
  150. }
  151. .info-list {
  152. margin-top: 30rpx;
  153. padding: 0 20rpx;
  154. box-sizing: border-box;
  155. background-color: #fff;
  156. }
  157. .info-item,
  158. .setUp {
  159. display: flex;
  160. justify-content: space-between;
  161. align-items: center;
  162. border-bottom: 1rpx solid #E8E8E9;
  163. padding: 25rpx 10rpx;
  164. font-size: 30rpx;
  165. &:last-of-type{
  166. border-bottom: 0rpx;
  167. }
  168. p {
  169. display: flex;
  170. align-items: center;
  171. color: #B9B9B9;
  172. }
  173. }
  174. .setUp {
  175. background-color: #fff;
  176. margin-top: 24rpx;
  177. border-bottom: 0rpx;
  178. padding: 25rpx 30rpx
  179. }
  180. }</style>