user.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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" @click="nav('/pages/user/accounts')">
  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. nav(url) {
  109. uni.navigateTo({
  110. url
  111. })
  112. }
  113. }
  114. }
  115. </script>
  116. <style lang="scss">
  117. .container {
  118. background-color: #fff;
  119. }
  120. .user {
  121. image {
  122. width: 750rpx;
  123. height: 480rpx;
  124. position: relative;
  125. }
  126. .infor {
  127. height: 126.5rpx;
  128. width: 100%;
  129. // background-color: pink;
  130. display: flex;
  131. position: absolute;
  132. top: 0;
  133. display: flex;
  134. justify-content: space-around; // 水平平均分布
  135. align-items: center; // 垂直居中
  136. margin-top: 138rpx;
  137. .infor-left {
  138. width: 100%;
  139. height: 126.5rpx;
  140. display: flex;
  141. align-items: center;
  142. padding-left: 23rpx;
  143. image {
  144. width: 126.5rpx;
  145. height: 126.5rpx;
  146. }
  147. .info-box {
  148. margin-left: 21rpx;
  149. }
  150. .username {
  151. font-size: 34rpx;
  152. font-family: PingFang SC;
  153. font-weight: bold;
  154. color: #3F7C1F;
  155. }
  156. .phone {
  157. font-size: 26rpx;
  158. font-family: PingFang SC;
  159. font-weight: 500;
  160. color: #3F7C1F;
  161. }
  162. }
  163. .infor-right {
  164. width: 165rpx;
  165. height: 64rpx;
  166. background: #FFFFFF;
  167. border-radius: 32px 0px 0px 32px;
  168. display: flex;
  169. align-items: center; // 垂直居中
  170. padding-left: 20rpx;
  171. image {
  172. width: 32rpx;
  173. height: 31rpx;
  174. }
  175. .setting {
  176. font-size: 28rpx;
  177. font-family: PingFang SC;
  178. font-weight: 500;
  179. color: #3F7C1F;
  180. padding-left: 10rpx;
  181. }
  182. }
  183. }
  184. // 我的订单
  185. .order-box {
  186. width: 710rpx;
  187. height: 221rpx;
  188. background: #FFFFFF;
  189. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  190. border-radius: 20rpx;
  191. position: absolute;
  192. top: 335rpx;
  193. // display: flex;
  194. // justify-content: center; // 水平居中
  195. margin-left: 20rpx;
  196. .my-order {
  197. height: 73rpx;
  198. width: 100%;
  199. border-bottom: 2rpx solid #F5F5F5;
  200. display: flex;
  201. align-items: center;
  202. justify-content: flex-start;
  203. .order {
  204. font-size: 30rpx;
  205. font-family: PingFang SC;
  206. font-weight: bold;
  207. color: #333333;
  208. margin-left: 36rpx;
  209. margin-right: 520rpx;
  210. }
  211. image {
  212. width: 12rpx;
  213. height: 22rpx;
  214. }
  215. }
  216. .order-section {
  217. display: flex;
  218. align-items: center;
  219. justify-content: space-between;
  220. .order-item {
  221. flex: 1;
  222. display: flex;
  223. flex-direction: column;
  224. align-items: center;
  225. justify-content: center;
  226. margin-top: 30rpx;
  227. image {
  228. width: 42rpx;
  229. height: 42rpx;
  230. }
  231. .text {
  232. margin-top: 20rpx;
  233. font-size: 24rpx;
  234. color: #333333;
  235. }
  236. }
  237. }
  238. }
  239. }
  240. .item-box {
  241. padding-top: 80rpx;
  242. height: 900rpx;
  243. // background-color: #fff;
  244. // background-color: pink;
  245. .order-section {
  246. display: flex;
  247. align-items: center;
  248. justify-content: space-between; // 水平平均分布
  249. .order-item {
  250. flex: 1;
  251. display: flex;
  252. flex-direction: column;
  253. align-items: center;
  254. justify-content: center;
  255. margin-top: 30rpx;
  256. image {
  257. width: 90rpx;
  258. height: 90rpx;
  259. }
  260. .text {
  261. margin-top: 10rpx;
  262. font-size: 26rpx;
  263. color: #3B3B3B;
  264. }
  265. }
  266. }
  267. }
  268. .btm {
  269. margin-top: 40rpx;
  270. padding-bottom: 200rpx;
  271. margin-left: 42rpx;
  272. .ul-btm {
  273. width: 100%;
  274. height: 100rpx;
  275. display: flex;
  276. // justify-content: center; // 水平居中
  277. align-items: center; // 水平居中
  278. // justify-content: center; // 垂直居中
  279. image {
  280. width: 35rpx;
  281. height: 35rpx;
  282. }
  283. .text {
  284. margin-right: 468rpx;
  285. margin-left: 30rpx;
  286. }
  287. .jiantou {
  288. width: 16rpx;
  289. height: 30rpx;
  290. }
  291. }
  292. }
  293. </style>