user-center.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <template>
  2. <view>
  3. <view class="head">
  4. <view class="portrait">
  5. <image class="image" src="../../static/images/login/logo.png" mode="scaleToFill"></image>
  6. </view>
  7. <view>
  8. <view class="nickname">未设置昵称</view>
  9. <view>
  10. <text v-show="user_type===1" class="wddz">网店店主</text>
  11. <text v-show="user_type===2" class="zgcj">直供厂家</text>
  12. </view>
  13. </view>
  14. <view class="invite">
  15. <view class="invite-code">邀请码:H00000164</view>
  16. <view class="invite-progress">
  17. <view class="item active"></view>
  18. <view class="item active"></view>
  19. <view class="item active"></view>
  20. <view class="item"></view>
  21. <view class="item"></view>
  22. </view>
  23. <view class="invite-notes">再邀请3人获得代理会员</view>
  24. </view>
  25. </view>
  26. <view class="body">
  27. <view class="money">
  28. <view class="row">
  29. <view class="col">可提现金额(元):<text class="warning">8.86</text></view>
  30. <view class="col"><button class="btn tixian-btn">立即提现</button></view>
  31. </view>
  32. <view class="row">
  33. <view class="col">保证金(元):<text>0.00</text><text class="tips">(保证金2000元)</text></view>
  34. <view class="col"><button class="btn jiaona-btn">立即缴纳</button></view>
  35. </view>
  36. </view>
  37. <view class="vip-center">
  38. <view class="text">代理会员中心<text class="sub">(特权独享)</text></view>
  39. </view>
  40. <view class="menu">
  41. <view class="menu-item">
  42. <view class="icon">
  43. <image class="image" src="../../static/images/menu/b8.png" mode="scaleToFill"></image>
  44. </view>
  45. <view class="name">账单明细</view>
  46. </view>
  47. <view class="menu-item">
  48. <view class="icon">
  49. <image class="image" src="../../static/images/menu/b7.png" mode=""></image>
  50. </view>
  51. <view class="name">订单管理</view>
  52. </view>
  53. <view>
  54. <view class="icon">
  55. <image class="image" src="../../static/images/menu/b2.png" mode=""></image>
  56. </view>
  57. <view class="name">我的商品</view>
  58. </view>
  59. <view>
  60. <view class="icon">
  61. <image class="image" src="../../static/images/menu/b1.png" mode=""></image>
  62. </view>
  63. <view class="name">新手攻略</view>
  64. </view>
  65. </view>
  66. <view class="menu">
  67. <view>
  68. <view class="icon">
  69. <image class="image" src="../../static/images/menu/b3.png" mode=""></image>
  70. </view>
  71. <view class="name">常见问题</view>
  72. </view>
  73. <view>
  74. <view class="icon">
  75. <image class="image" src="../../static/images/menu/b4.png" mode=""></image>
  76. </view>
  77. <view class="name">联系客服</view>
  78. </view>
  79. <view>
  80. <view class="icon">
  81. <image class="image" src="../../static/images/menu/b5.png" mode=""></image>
  82. </view>
  83. <view class="name">官方公告</view>
  84. </view>
  85. <view>
  86. <view class="icon">
  87. <image class="image" src="../../static/images/menu/b6.png" mode=""></image>
  88. </view>
  89. <view class="name">意见反馈</view>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </template>
  95. <script>
  96. export default {
  97. data() {
  98. return {
  99. nickname:'',
  100. balance:'',
  101. deposit:'',
  102. user_type:1,
  103. };
  104. }
  105. }
  106. </script>
  107. <style lang="scss" scoped>
  108. .head{
  109. background: $primary-color;
  110. display: flex;
  111. align-items:center;
  112. padding-bottom: 140upx;
  113. padding-top: 20upx;
  114. }
  115. .portrait{
  116. margin: 0 20upx;
  117. .image{
  118. width: 128upx;
  119. height: 128upx;
  120. background: white;
  121. border-radius: 128upx;
  122. border: 10upx solid rgba(255, 255, 255, 0.2);
  123. }
  124. }
  125. .nickname{
  126. font-size: 30upx;
  127. color: white;
  128. margin-bottom: 10upx;
  129. }
  130. .wddz,.zgcj{
  131. font-size: 24upx;
  132. color: white;
  133. border: 2upx solid white;
  134. border-radius: 20upx;
  135. width: 140upx;
  136. height: 36upx;
  137. line-height: 36upx;
  138. text-align: center;
  139. text-indent: 20upx;
  140. display: inline-block;
  141. padding: 0;
  142. background: url(../../static/images/do.png) no-repeat;
  143. background-size: 21upx 21upx;
  144. background-position: 10upx;
  145. }
  146. .invite{
  147. text-align: right;
  148. flex-grow: 1;
  149. margin-right: 20upx;
  150. color: white;
  151. .invite-code{
  152. font-size: 30upx;
  153. }
  154. .invite-notes{
  155. font-size: 24upx;
  156. }
  157. .invite-progress{
  158. .item{
  159. border: 2upx solid white;
  160. display: inline-block;
  161. width: 36upx;
  162. transform: scaleX(0.9);
  163. font-size: 0;
  164. border-radius: 2upx;
  165. &.active{
  166. border-color: yellow;
  167. }
  168. }
  169. &::after{
  170. content: "";
  171. background: url(../../static/images/vip.png) no-repeat;
  172. background-size: 42upx 42upx;
  173. width: 42upx;
  174. height: 42upx;
  175. display: inline-block;
  176. position: relative;
  177. top: 16upx;
  178. }
  179. margin-bottom: 20upx;
  180. }
  181. }
  182. .body{
  183. padding: 20upx;
  184. position: relative;
  185. top: -120upx;
  186. .money{
  187. background: white;
  188. border-radius: 20upx;
  189. padding: 20upx;
  190. .row{
  191. color: #333;
  192. display: flex;
  193. align-items: center;
  194. margin-bottom: 20upx;
  195. .warning{
  196. color: $primary-color;
  197. font-weight: bold;
  198. }
  199. .tips{
  200. color: #CCC;
  201. font-size: 24upx;
  202. }
  203. &:last-child{
  204. margin-bottom: 0;
  205. }
  206. & .col:first-child{
  207. flex-grow: 1;
  208. font-size: 28upx;
  209. }
  210. & .col:last-child{
  211. text-align: right;
  212. font-size: 28upx;
  213. }
  214. }
  215. .btn{
  216. background-color: $primary-color;
  217. color: white;
  218. font-size: 26upx;
  219. padding: 5upx 20upx;
  220. border-radius: 40upx;
  221. line-height: normal;
  222. }
  223. }
  224. }
  225. .vip-center{
  226. background: url(../../static/images/center5.png) no-repeat;
  227. background-size: 710upx 78upx;
  228. color: #EEEEEE;
  229. padding: 0 20upx;
  230. margin-top: 20upx;
  231. .text{
  232. margin-left: 50upx;
  233. background-color: #ff5454;
  234. font-weight: bold;
  235. line-height: 76upx;
  236. .sub{
  237. font-size: 24upx;
  238. }
  239. }
  240. }
  241. .menu{
  242. display: flex;
  243. background: white;
  244. border-radius: 20upx;
  245. padding:30upx 20upx;
  246. margin-top: 20upx;
  247. justify-content: space-between;
  248. .name{
  249. font-size: 28upx;
  250. margin-top: 10upx;
  251. }
  252. .icon{
  253. text-align: center;
  254. }
  255. .icon .image{
  256. width: 50upx;
  257. height: 50upx;
  258. }
  259. }
  260. </style>