index.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <template>
  2. <view>
  3. <u-navbar :is-back="false" :border-bottom="false"><view class="navbar-tit">我的</view></u-navbar>
  4. <view class="userHead">
  5. <view class="userHead-left">
  6. <view class="userHead-name">
  7. <h2>孙祺芮</h2>
  8. <view class="userHead-icon">
  9. <u-icon custom-prefix="custom-icon" name="shield-user-fill" color="#fff"></u-icon>
  10. <span>认证会员</span>
  11. </view>
  12. </view>
  13. <p>查看/编辑个人资料</p>
  14. </view>
  15. <u-avatar src="/static/img/sexMan.png" size="120"></u-avatar>
  16. </view>
  17. <view class="user-data">
  18. <view class="user-data-tit">
  19. <h2>完善个人资料</h2><u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
  20. </view>
  21. <p>添加您的个人资料、相亲简历和择偶条件,可以提高相亲成功率哦~</p>
  22. <u-line-progress active-color="#2979ff" :percent="70" height="8" :show-percent="false"></u-line-progress>
  23. </view>
  24. <view class="user-cell">
  25. <view class="user-cell-item">
  26. <view class="user-cell-l">
  27. <u-icon custom-prefix="custom-icon" name="folder-user-fill" color="#FF695B" size="40"></u-icon>
  28. <h4>公开我的资料</h4>
  29. </view>
  30. <view class="user-cell-r">
  31. <u-switch v-model="checked"></u-switch>
  32. </view>
  33. </view>
  34. <view class="user-cell-item">
  35. <view class="user-cell-l">
  36. <u-icon custom-prefix="custom-icon" name="smartphone-fill" color="#FF695B" size="40"></u-icon>
  37. <h4>更换手机号</h4>
  38. </view>
  39. <view class="user-cell-r">
  40. <span>155****1234</span>
  41. <u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
  42. </view>
  43. </view>
  44. <view class="user-cell-item">
  45. <view class="user-cell-l">
  46. <u-icon custom-prefix="custom-icon" name="customer-service-fill" color="#FF695B" size="40"></u-icon>
  47. <h4>联系客服</h4>
  48. </view>
  49. <view class="user-cell-r">
  50. <span>0716-8123456</span>
  51. <u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
  52. </view>
  53. </view>
  54. <view class="user-cell-item">
  55. <view class="user-cell-l">
  56. <u-icon custom-prefix="custom-icon" name="information-fill" color="#FF695B" size="40"></u-icon>
  57. <h4>服务条款</h4>
  58. </view>
  59. <view class="user-cell-r">
  60. <span></span>
  61. <u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
  62. </view>
  63. </view>
  64. <view class="user-cell-item">
  65. <view class="user-cell-l">
  66. <u-icon custom-prefix="custom-icon" name="spam-3-fill" color="#FF695B" size="40"></u-icon>
  67. <h4>注销账号</h4>
  68. </view>
  69. <view class="user-cell-r">
  70. <p>注销后将无法使用该账号登录小程序</p>
  71. <u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
  72. </view>
  73. </view>
  74. <view class="user-cell-item">
  75. <view class="user-cell-l">
  76. <u-icon custom-prefix="custom-icon" name="logout-box-r-fill" color="#FF695B" size="40"></u-icon>
  77. <h4>退出</h4>
  78. </view>
  79. <view class="user-cell-r">
  80. <span></span>
  81. <u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </template>
  87. <script>
  88. export default {
  89. data() {
  90. return {
  91. checked: false,
  92. }
  93. },
  94. onLoad(){
  95. let personalInfo = this.carhelp.getPersonInfo();
  96. console.log('个人信息'+JSON.stringify(personalInfo));
  97. }
  98. }
  99. </script>
  100. <style lang="scss" scoped>
  101. .navbar-tit{
  102. padding-left:15px;
  103. font-size: 24px;
  104. }
  105. .userHead{
  106. display: flex;
  107. justify-content: space-between;
  108. padding: 20px 15px;
  109. .userHead-left{
  110. .userHead-name{
  111. display: flex;
  112. align-items: center;
  113. h2{
  114. font-size: 20px;
  115. font-weight: normal;
  116. }
  117. .userHead-icon{
  118. display: flex;
  119. align-items: center;
  120. background-color: #4E8DF6;
  121. padding: 2px 6px;
  122. border-radius: 8px;
  123. margin-left: 20px;
  124. span{
  125. color:#fff;
  126. font-size: 12px;
  127. margin-left: 3px;
  128. }
  129. }
  130. }
  131. p{
  132. color:#847777;
  133. margin-top: 8px;
  134. }
  135. }
  136. }
  137. .user-data{
  138. margin: 15px;
  139. box-shadow: 0 0 6px 0 rgba(132,119,119,0.3);
  140. padding: 12px 16px;
  141. .user-data-tit{
  142. display: flex;
  143. justify-content: space-between;
  144. align-items: center;
  145. h2{
  146. font-weight: normal;
  147. font-size: 16px;
  148. }
  149. }
  150. p{
  151. color:#999;
  152. margin: 10px 0;
  153. }
  154. }
  155. .user-cell-item{
  156. display: flex;
  157. align-items: center;
  158. justify-content: space-between;
  159. padding: 14px 16px;
  160. .user-cell-l{
  161. display: flex;
  162. align-items: center;
  163. h4{
  164. font-weight: normal;
  165. margin-left: 8px;
  166. }
  167. }
  168. .user-cell-r{
  169. display: flex;
  170. align-items: center;
  171. span{
  172. color:#978E8E;
  173. margin-right: 4px;
  174. }
  175. p{
  176. font-size: 12px;
  177. color:#978E8E;
  178. margin-right: 4px;
  179. }
  180. }
  181. }
  182. </style>