user.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. <template>
  2. <view class="container">
  3. <!-- 用户信息 -->
  4. <view class="user">
  5. <!-- 背景图片 -->
  6. <image src="../../static/img/img17.png" mode="scaleToFill"></image>
  7. <!-- 用户头像和信息 -->
  8. <view class="infor">
  9. <!-- 用户信息 -->
  10. <view class="infor-left">
  11. <image src="../../static/error/missing-face.png" mode=""></image>
  12. <view class="info-box">
  13. <view class="username">李丹丹</view>
  14. <view class="phone">13911111111</view>
  15. </view>
  16. </view>
  17. <!-- 设置 -->
  18. <view class="infor-right">
  19. <image src="../../static/img/img18.png" mode="scaleToFill"></image>
  20. <view class="setting">设置</view>
  21. </view>
  22. </view>
  23. <!-- 我的订单 -->
  24. <view class="order-box">
  25. <view class="my-order">
  26. <view class="order">我的订单</view>
  27. <image src="../../static/img/xiangxia.png" mode="scaleToFill"></image>
  28. </view>
  29. <!-- 订单栏 -->
  30. <view class="order-section">
  31. <view class="order-item">
  32. <image src="../../static/img/img19.png" mode="scaleToFill"></image>
  33. <view class="text">待付款</view>
  34. </view>
  35. <view class="order-item">
  36. <image src="../../static/img/img20.png" mode="scaleToFill"></image>
  37. <view class="text">待发货</view>
  38. </view>
  39. <view class="order-item">
  40. <image src="../../static/img/img21.png" mode="scaleToFill"></image>
  41. <view class="text">待收获</view>
  42. </view>
  43. <view class="order-item">
  44. <image src="../../static/img/img22.png" mode="scaleToFill"></image>
  45. <view class="text">已完成</view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <!-- 下部分 -->
  51. <view class="item-box">
  52. <!-- 我的余额 -->
  53. <view class="order-section">
  54. <view class="order-item">
  55. <image src="../../static/img/img26.png" mode="scaleToFill"></image>
  56. <view class="text">我的余额</view>
  57. </view>
  58. <view class="order-item">
  59. <image src="../../static/img/img23.png" mode="scaleToFill"></image>
  60. <view class="text">我的佣金</view>
  61. </view>
  62. <view class="order-item">
  63. <image src="../../static/img/img24.png" mode="scaleToFill"></image>
  64. <view class="text">我的积分</view>
  65. </view>
  66. <view class="order-item">
  67. <image src="../../static/img/img25.png" mode="scaleToFill"></image>
  68. <view class="text">我的推广</view>
  69. </view>
  70. </view>
  71. <!-- 底部列表 -->
  72. <view class="btm">
  73. <view class="ul-btm">
  74. <image src="../../static/img/img27.png" mode="scaleToFill"></image>
  75. <view class="text">我的接点</view>
  76. <image class="jiantou" src="../../static/img/img32.png" mode="scaleToFill"></image>
  77. </view>
  78. <view class="ul-btm">
  79. <image src="../../static/img/img28.png" mode="scaleToFill"></image>
  80. <view class="text">邀请海报</view>
  81. <image class="jiantou" src="../../static/img/img32.png" mode="scaleToFill"></image>
  82. </view>
  83. <view class="ul-btm">
  84. <image src="../../static/img/img29.png" mode="scaleToFill"></image>
  85. <view class="text">会员注册</view>
  86. <image class="jiantou" src="../../static/img/img32.png" mode="scaleToFill"></image>
  87. </view>
  88. <view class="ul-btm">
  89. <image src="../../static/img/img30.png" mode="scaleToFill"></image>
  90. <view class="text">收货地址</view>
  91. <image class="jiantou" src="../../static/img/img32.png" mode="scaleToFill"></image>
  92. </view>
  93. <view class="ul-btm">
  94. <image src="../../static/img/img31.png" mode="scaleToFill"></image>
  95. <view class="text">联系客服</view>
  96. <image class="jiantou" src="../../static/img/img32.png" mode="scaleToFill"></image>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </template>
  102. <script>
  103. export default {
  104. data () {
  105. return {}
  106. },
  107. methods: {}
  108. }
  109. </script>
  110. <style lang="scss">
  111. .container {
  112. background-color: #fff;
  113. }
  114. .user {
  115. image {
  116. width: 750rpx;
  117. height: 480rpx;
  118. position: relative;
  119. }
  120. .infor {
  121. height: 126.5rpx;
  122. width: 100%;
  123. // background-color: pink;
  124. display: flex;
  125. position: absolute;
  126. top: 0;
  127. display: flex;
  128. justify-content: space-around; // 水平平均分布
  129. align-items: center; // 垂直居中
  130. margin-top: 138rpx;
  131. .infor-left {
  132. width: 100%;
  133. height: 126.5rpx;
  134. display: flex;
  135. align-items: center;
  136. padding-left: 23rpx;
  137. image {
  138. width: 126.5rpx;
  139. height: 126.5rpx;
  140. }
  141. .info-box{
  142. margin-left: 21rpx;
  143. }
  144. .username {
  145. font-size: 34rpx;
  146. font-family: PingFang SC;
  147. font-weight: bold;
  148. color: #3F7C1F;
  149. }
  150. .phone {
  151. font-size: 26rpx;
  152. font-family: PingFang SC;
  153. font-weight: 500;
  154. color: #3F7C1F;
  155. }
  156. }
  157. .infor-right {
  158. width: 165rpx;
  159. height: 64rpx;
  160. background: #FFFFFF;
  161. border-radius: 32px 0px 0px 32px;
  162. display: flex;
  163. align-items: center; // 垂直居中
  164. padding-left: 20rpx;
  165. image {
  166. width: 32rpx;
  167. height: 31rpx;
  168. }
  169. .setting {
  170. font-size: 28rpx;
  171. font-family: PingFang SC;
  172. font-weight: 500;
  173. color: #3F7C1F;
  174. padding-left: 10rpx;
  175. }
  176. }
  177. }
  178. // 我的订单
  179. .order-box {
  180. width: 710rpx;
  181. height: 221rpx;
  182. background: #FFFFFF;
  183. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  184. border-radius: 20rpx;
  185. position: absolute;
  186. top: 335rpx;
  187. // display: flex;
  188. // justify-content: center; // 水平居中
  189. margin-left: 20rpx;
  190. .my-order {
  191. height: 73rpx;
  192. width: 100%;
  193. border-bottom: 2rpx solid #F5F5F5;
  194. display: flex;
  195. align-items: center;
  196. justify-content: flex-start;
  197. .order {
  198. font-size: 30rpx;
  199. font-family: PingFang SC;
  200. font-weight: bold;
  201. color: #333333;
  202. margin-left: 36rpx;
  203. margin-right: 520rpx;
  204. }
  205. image {
  206. width: 12rpx;
  207. height: 22rpx;
  208. }
  209. }
  210. .order-section {
  211. display: flex;
  212. align-items: center;
  213. justify-content: space-between;
  214. .order-item {
  215. flex: 1;
  216. display: flex;
  217. flex-direction: column;
  218. align-items: center;
  219. justify-content: center;
  220. margin-top: 30rpx;
  221. image {
  222. width: 42rpx;
  223. height: 42rpx;
  224. }
  225. .text {
  226. margin-top: 20rpx;
  227. font-size: 24rpx;
  228. color: #333333;
  229. }
  230. }
  231. }
  232. }
  233. }
  234. .item-box {
  235. padding-top: 80rpx;
  236. height: 900rpx;
  237. // background-color: #fff;
  238. // background-color: pink;
  239. .order-section {
  240. display: flex;
  241. align-items: center;
  242. justify-content: space-between; // 水平平均分布
  243. .order-item {
  244. flex: 1;
  245. display: flex;
  246. flex-direction: column;
  247. align-items: center;
  248. justify-content: center;
  249. margin-top: 30rpx;
  250. image {
  251. width: 90rpx;
  252. height: 90rpx;
  253. }
  254. .text {
  255. margin-top: 10rpx;
  256. font-size: 26rpx;
  257. color: #3B3B3B;
  258. }
  259. }
  260. }
  261. }
  262. .btm {
  263. margin-top: 40rpx;
  264. padding-bottom: 200rpx;
  265. margin-left: 42rpx;
  266. .ul-btm {
  267. width: 100%;
  268. height: 100rpx;
  269. display: flex;
  270. // justify-content: center; // 水平居中
  271. align-items: center; // 水平居中
  272. // justify-content: center; // 垂直居中
  273. image {
  274. width: 35rpx;
  275. height: 35rpx;
  276. }
  277. .text {
  278. margin-right: 468rpx;
  279. margin-left: 30rpx;
  280. }
  281. .jiantou {
  282. width: 16rpx;
  283. height: 30rpx;
  284. }
  285. }
  286. }
  287. </style>