index.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <view>
  3. <view class="header-box"></view>
  4. <view class="header-title">
  5. <text style="margin-top: 4%;">累计积分</text>
  6. <text style="margin-top: 2%;font-size: 36rpx;">66261</text>
  7. </view>
  8. <view class="count-deatil-box">
  9. <view class="count-detail-title">
  10. 积分明细
  11. </view>
  12. <view class="leader-info" v-for="item in teamList" :key='item.id'>
  13. <image src="/static/bed2-bg.png"></image>
  14. <view class="leader-column">
  15. <view>
  16. <text>{{item.name}}</text>
  17. <text style="visibility: hidden;">A</text>
  18. <text>购买了产品</text>
  19. </view>
  20. <view>
  21. <text style="color:#ccc;font-size: 28rpx;">{{item.time}}</text>
  22. </view>
  23. </view>
  24. <view class="count-sum">
  25. {{item.count}}
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. title: 'selfCenter',
  36. teamList: [
  37. {
  38. name: '晚霞',
  39. count: '+12999',
  40. time: '2019-02-14 00:00',
  41. id: 1
  42. },
  43. {
  44. name: '午霞',
  45. count: '+5112',
  46. time: '2019-02-15 00:00',
  47. id: 2
  48. },
  49. {
  50. name: '午霞A',
  51. count: '+8999',
  52. time: '2019-02-15 01:00',
  53. id:3
  54. },
  55. {
  56. name: '午霞2',
  57. count: '+13999',
  58. time: '2019-02-16 00:00',
  59. id: 4
  60. }
  61. ]
  62. };
  63. },
  64. onLoad() {
  65. },
  66. methods: {
  67. }
  68. };
  69. </script>
  70. <style>
  71. .header-box {
  72. width: 100%;
  73. height: 180rpx;
  74. background: #1a9ed3;
  75. }
  76. .header-title {
  77. width: 93%;
  78. height: 150rpx;
  79. display: flex;
  80. flex-direction: column;
  81. align-items: center;
  82. background: #fff;
  83. z-index: 99;
  84. border-radius: 10rpx;
  85. font-size: 30rpx;
  86. margin: -13% auto;
  87. margin-bottom: 3%;
  88. }
  89. .count-sum {
  90. color: red;
  91. font-size: 32rpx;
  92. }
  93. .count-deatil-box {
  94. width: 93%;
  95. border-radius: 10rpx;
  96. display: flex;
  97. flex-direction: column;
  98. align-items: center;
  99. background: #fff;
  100. margin: 0 auto;
  101. }
  102. .count-detail-title {
  103. width: 89%;
  104. border-bottom: 1px solid #dbdbdb;
  105. padding: 10px;
  106. font-size: 32rpx;
  107. }
  108. .leader-info {
  109. width: 90%;
  110. display: flex;
  111. align-items: center;
  112. background: #fff;
  113. padding: 20rpx;
  114. border-bottom: 1px solid #ccc;
  115. }
  116. .leader-column {
  117. display: flex;
  118. flex-direction: column;
  119. justify-content: space-between;
  120. height: 90rpx;
  121. font-size: 28rpx;
  122. margin-right: 2%;
  123. width: 400rpx;
  124. }
  125. .leader-info image {
  126. height: 75rpx;
  127. width: 75rpx;
  128. border-radius: 50%;
  129. border: 1px solid #eee;
  130. margin-right: 3%;
  131. }
  132. </style>