member-center.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <view>
  3. <view class="top-menu">
  4. <view class="">
  5. <text>1600</text>
  6. <text>会员数量</text>
  7. </view>
  8. <view class="">
  9. <text>1600.00</text>
  10. <text>积分总价值</text>
  11. </view>
  12. </view>
  13. <view class="padding-20 text-bold text-xl">
  14. <text>会员列表</text>
  15. </view>
  16. <view class="card">
  17. <view class="flex">
  18. <view class="area1 title">
  19. 会员名称
  20. </view>
  21. <view class="area2 title">
  22. 积分数
  23. </view>
  24. <view class="area3 title">
  25. 价值
  26. </view>
  27. </view>
  28. <view class="item" v-for="(item,index) in 4" :key="index">
  29. <view class="area1 flex text-bold">
  30. <image class="img-avatar" src="https://thirdwx.qlogo.cn/mmopen/vi_32/q6EwR5U6zFp8bYbUWb9HmFc5Q3R88x13Q0ZtOcVK5lO8AmtibQDRcuMA2Y7CmyuMCr6icceM3QibIKN2icAAxSvjpA/132"></image>
  31. <view class="center padding-left-10">
  32. <text>会员 123456</text>
  33. </view>
  34. </view>
  35. <view class="area2 center text-bold text-lg" style="justify-content: flex-start;margin-left: 10rpx;color: #F37A1E;">
  36. <image class="img-points" src="../../static/icon/points-value.png"></image>
  37. <text class="margin-left-10">-100</text>
  38. </view>
  39. <view class="area3 center text-lg" >
  40. <text class="text-price text-bold">10</text>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. data() {
  49. return {
  50. }
  51. },
  52. methods: {
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. .top-menu {
  58. border-radius: 20rpx;
  59. margin: 30rpx 20rpx;
  60. padding: 50rpx;
  61. display: flex;
  62. justify-content: space-around;
  63. background-image: linear-gradient(to right, #272A46, #30355D);
  64. view {
  65. display: flex;
  66. flex-direction: column;
  67. text-align: center;
  68. text:first-child {
  69. margin-bottom: 10rpx;
  70. color: #FFFFFF;
  71. font-weight: 800;
  72. font-size: 40rpx;
  73. }
  74. text:last-child {
  75. font-size: 26rpx;
  76. color: #D0D4EE;
  77. }
  78. }
  79. }
  80. .card {
  81. width: 100%;
  82. background-color: #FFFFFF;
  83. padding: 30rpx;
  84. font-size: 26rpx;
  85. .text-area {
  86. display: flex;
  87. justify-content: flex-start;
  88. align-items: center;
  89. }
  90. .title {
  91. padding-left: 20rpx;
  92. color: #666666;
  93. }
  94. .area1 {
  95. width: 50%;
  96. }
  97. .area2 {
  98. width: 30%;
  99. }
  100. .area3 {
  101. width: 20%;
  102. }
  103. .item {
  104. padding: 30rpx 20rpx;
  105. display: flex;
  106. border-bottom: 1rpx solid #DDDDDD;
  107. .img-avatar {
  108. width: 70rpx;
  109. height: 70rpx;
  110. border-radius: 50%;
  111. }
  112. .img-points {
  113. width: 35rpx;
  114. height: 35rpx;
  115. }
  116. }
  117. }
  118. </style>