bill.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <div class="point-bill">
  3. <div class="top">
  4. <span class="icon"></span>
  5. <span class="num">136</span>
  6. <span class="text">我的积分</span>
  7. </div>
  8. <div class="bottom">
  9. <div class="item">
  10. <div class="content">
  11. <span class="text">加油</span>
  12. <span class="amount add">+ 10</span>
  13. </div>
  14. <div class="time">2018/09/20 18:00:00</div>
  15. </div>
  16. <div class="item">
  17. <div class="content">
  18. <span class="text">兑换商品</span>
  19. <span class="amount">- 10</span>
  20. </div>
  21. <div class="time">2018/09/20 18:00:00</div>
  22. </div>
  23. </div>
  24. </div>
  25. </template>
  26. <script>
  27. import ProductList from "../../components/ProductList";
  28. export default {
  29. head() {
  30. return {
  31. title: "积分明细",
  32. };
  33. },
  34. data() {
  35. return {
  36. images: [],
  37. list: [],
  38. loading: false, // 加载状态
  39. finished: false, // 是否完成加载
  40. refreshing: false, // 是否正在上拉刷新
  41. img: "/test/pro.png",
  42. };
  43. },
  44. components: {
  45. ProductList,
  46. },
  47. beforeCreate() {},
  48. created() {},
  49. beforeMount() {},
  50. mounted() {
  51. console.log(this);
  52. },
  53. beforeUpdate() {},
  54. updated() {},
  55. beforeDestroy() {},
  56. destroyed() {},
  57. methods: {},
  58. };
  59. </script>
  60. <style>
  61. .point-bill {
  62. width: 100%;
  63. }
  64. .point-bill .top {
  65. width: 100%;
  66. height: 3.98rem;
  67. background: url("../../static/point/bj@2x.png") no-repeat 0 0;
  68. background-size: 100% 100%;
  69. position: relative;
  70. z-index: -1;
  71. }
  72. .point-bill .top .icon {
  73. background: url("../../static/point/chengzhnagzhi@2x.png") no-repeat 0 0;
  74. background-size: 100% 100%;
  75. width: 0.35rem;
  76. height: 0.35rem;
  77. position: absolute;
  78. right: 0.3rem;
  79. top: 0.3rem;
  80. }
  81. .point-bill .top .num {
  82. width: 2.12rem;
  83. height: 0.98rem;
  84. font-size: 0.7rem;
  85. font-family: PingFangSC-Regular, PingFang SC;
  86. font-weight: 400;
  87. color: #ffffff;
  88. line-height: 0.98rem;
  89. text-align: center;
  90. position: absolute;
  91. left: calc(50% - 1.06rem);
  92. top: 0.6rem;
  93. }
  94. .point-bill .top .text {
  95. width: 1.12rem;
  96. height: 0.4rem;
  97. font-size: 0.28rem;
  98. font-family: PingFangSC-Regular, PingFang SC;
  99. font-weight: 400;
  100. color: #ffffff;
  101. line-height: 0.4rem;
  102. position: absolute;
  103. left: calc(50% - 0.56rem);
  104. top: 1.68rem;
  105. }
  106. .point-bill .bottom {
  107. width: 100%;
  108. min-height:2rem;
  109. background: #ffffff;
  110. box-shadow: 0rem 0.02rem 0.1rem 0.05rem rgba(227, 227, 227, 0.5);
  111. border-radius: 0.25rem;
  112. margin-top: -1.3rem;
  113. padding: 0.4rem 0.3rem;
  114. box-sizing: border-box;
  115. }
  116. .point-bill .bottom .item {
  117. width: 100%;
  118. height: 1.56rem;
  119. padding: 0.3rem 0;
  120. border-bottom: 0.01rem solid #e0e0e0;
  121. box-sizing: border-box;
  122. }
  123. .point-bill .bottom .item:nth-last-child(1){
  124. border-bottom:none;
  125. }
  126. .point-bill .bottom .item .content {
  127. font-family: PingFangSC-Regular, PingFang SC;
  128. display: flex;
  129. justify-content: space-between;
  130. }
  131. .point-bill .bottom .item .content .text {
  132. display: inline-block;
  133. height: 0.45rem;
  134. font-size: 0.32rem;
  135. font-weight: 400;
  136. color: #111111;
  137. line-height: 0.45rem;
  138. }
  139. .point-bill .bottom .item .content .amount {
  140. display: inline-block;
  141. height: 0.45rem;
  142. font-size: 0.32rem;
  143. font-weight: 500;
  144. color: #111111;
  145. line-height: 0.45rem;
  146. }
  147. .point-bill .bottom .item .content .add {
  148. color: #f3b235;
  149. }
  150. .point-bill .bottom .item .time {
  151. width: 2.77rem;
  152. height: 0.4rem;
  153. font-size: 0.28rem;
  154. font-family: PingFangSC-Regular, PingFang SC;
  155. font-weight: 400;
  156. color: #aaaaaa;
  157. line-height: 0.4rem;
  158. }
  159. </style>