index.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <template>
  2. <view>
  3. <view class="userHead">
  4. <view class="userHead-img">
  5. <u-avatar src="../../assets/img/head.png" size="140"></u-avatar>
  6. </view>
  7. <view class="userHead-text">
  8. <h3>张建军</h3>
  9. <view class="userHead-text-position">
  10. <u-icon name="account-pin-box-fill" custom-prefix="custom-icon" color="#fff" size="32"></u-icon>
  11. <p>市场服务</p>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="userData">
  16. <view class="userData-item">
  17. <view class="userData-data">15</view>
  18. <view class="userData-foot">我的充电桩</view>
  19. </view>
  20. <u-line color="#d9e0ec" length="60" direction="col" margin="10px"/>
  21. <view class="userData-item">
  22. <view class="userData-name">微信商家账户</view>
  23. <view class="userData-foot">提现账户</view>
  24. </view>
  25. </view>
  26. <view class="userInfo">
  27. <view class="userInfo-head"><p>可提现金额</p></view>
  28. <view class="userInfo-main">
  29. <h2>19854.14</h2>
  30. <view class="userInfo-btn">帐户提现</view>
  31. </view>
  32. <view class="userInfo-foot">
  33. <view class="userInfo-item">
  34. <p>今日收益</p>
  35. <h4>957.00</h4>
  36. </view>
  37. <view class="userInfo-item">
  38. <p>累计收益</p>
  39. <h4>11957.00</h4>
  40. </view>
  41. <view class="userInfo-item">
  42. <p>已提现</p>
  43. <h4>10000.00</h4>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="userCell">
  48. <view class="userCell-item">
  49. <view class="userCell-title">
  50. <u-icon name="refund-fill" custom-prefix="custom-icon" color="#9EAAC6" size="36"></u-icon>
  51. <p>提现记录</p>
  52. </view>
  53. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
  54. </view>
  55. <view class="userCell-item">
  56. <view class="userCell-title">
  57. <u-icon name="question-fill" custom-prefix="custom-icon" color="#9EAAC6" size="36"></u-icon>
  58. <p>帮助中心</p>
  59. </view>
  60. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
  61. </view>
  62. <view class="userCell-item">
  63. <view class="userCell-title">
  64. <u-icon name="customer-service-fill" custom-prefix="custom-icon" color="#9EAAC6" size="36"></u-icon>
  65. <p>联系客服</p>
  66. </view>
  67. <span>0716-8123456</span>
  68. </view>
  69. <view class="userCell-item">
  70. <view class="userCell-title">
  71. <u-icon name="information-fill" custom-prefix="custom-icon" color="#9EAAC6" size="36"></u-icon>
  72. <p>关于小鹏管家</p>
  73. </view>
  74. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
  75. </view>
  76. <view class="userCell-item">
  77. <view class="userCell-title">
  78. <u-icon name="logout-box-r-fill" custom-prefix="custom-icon" color="#9EAAC6" size="36"></u-icon>
  79. <p>帐号登出</p>
  80. </view>
  81. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
  82. </view>
  83. </view>
  84. <u-tabbar v-model="current" :list="tabbarList" active-color="#185ac6"></u-tabbar>
  85. </view>
  86. </template>
  87. <script>
  88. export default {
  89. data() {
  90. return {
  91. tabbarList: [{
  92. iconPath: "bar-chart-box-fill",
  93. selectedIconPath: "bar-chart-box-fill",
  94. text: '统计',
  95. count: 0,
  96. isDot: true,
  97. customIcon: true,
  98. },
  99. {
  100. iconPath: "article-fill",
  101. selectedIconPath: "article-fill",
  102. text: '明细',
  103. midButton: true,
  104. customIcon: true,
  105. },
  106. {
  107. iconPath: "account-pin-box-fill",
  108. selectedIconPath: "account-pin-box-fill",
  109. text: '我的',
  110. count: 0,
  111. isDot: false,
  112. customIcon: true,
  113. },
  114. ],
  115. current: 0,
  116. background:{
  117. background: 'none'
  118. },
  119. }
  120. },
  121. methods: {
  122. }
  123. }
  124. </script>
  125. <style>
  126. page{
  127. background:url(../../assets/img/index_header_bg.png) no-repeat top center #f7f7f7;
  128. background-size: 100%;
  129. }
  130. </style>
  131. <style lang="scss" scoped>
  132. .userCell{
  133. background-color: #fff;
  134. border-radius: 8px;
  135. margin: 16px;
  136. .userCell-item{
  137. display: flex;
  138. justify-content: space-between;
  139. align-items: center;
  140. padding: 16px;
  141. .userCell-title{
  142. display: flex;
  143. align-items: center;
  144. p{
  145. margin-left: 8px;
  146. }
  147. }
  148. span{
  149. color:#999;
  150. }
  151. }
  152. }
  153. .userInfo{
  154. background-color: #fff;
  155. margin: 16px;
  156. padding: 16px;
  157. border-radius: 8px;
  158. p{
  159. color:#637AA2;
  160. }
  161. .userInfo-main{
  162. display: flex;
  163. justify-content: space-between;
  164. margin-top: 4px;
  165. align-items: center;
  166. h2{
  167. font-size: 32px;
  168. }
  169. }
  170. .userInfo-btn{
  171. padding: 6px 10px;
  172. background-color: #FF8501;
  173. color:#fff;
  174. border-radius: 15px;
  175. }
  176. .userInfo-foot{
  177. display: flex;
  178. justify-content: space-between;
  179. margin-top: 12px;
  180. .userInfo-item{
  181. flex: 1;
  182. h4{
  183. font-size: 16px;
  184. margin-top: 4px;
  185. }
  186. }
  187. }
  188. }
  189. .userHead{
  190. display: flex;
  191. align-items: center;
  192. padding:40px 20px 0;
  193. .userHead-img{
  194. height: 74px;
  195. width: 74px;
  196. background-color: #fff;
  197. border-radius: 50%;
  198. padding: 2px;
  199. }
  200. .userHead-text{
  201. margin-left: 12px;
  202. h3{
  203. font-size: 24px;
  204. color:#fff;
  205. font-weight: normal;
  206. }
  207. .userHead-text-position{
  208. display: flex;
  209. align-items: center;
  210. margin-top: 5px;
  211. p{
  212. color:#fff;
  213. margin-left: 4px;
  214. }
  215. }
  216. }
  217. }
  218. .userData{
  219. background-color: #fff;
  220. margin: 16px;
  221. padding: 16px;
  222. border-radius: 8px;
  223. display: flex;
  224. }
  225. .userData-item{
  226. flex: 1;
  227. display: flex;
  228. flex-direction: column;
  229. align-items: center;
  230. justify-content:space-between;
  231. .userData-data{
  232. font-size: 24px;
  233. font-weight: bold;
  234. }
  235. .userData-name{
  236. font-size: 16px;
  237. }
  238. .userData-foot{
  239. margin-top: 4px;
  240. color:#637AA2;
  241. }
  242. }
  243. </style>