index.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <view class="member">
  3. <search></search>
  4. <scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltolower="lower">
  5. <view class="li" v-for="item in 6">
  6. <h2>张三</h2>
  7. <p>手机号码:13602712680</p>
  8. <p>会员卡号:287777798315649815984</p>
  9. <view class="footer">
  10. <view>总消费:<text class="money">¥3214.59</text></view>
  11. <view>剩余积分:<text class="integer">343545</text></view>
  12. </view>
  13. </view>
  14. </scroll-view>
  15. </view>
  16. </template>
  17. <script>
  18. import search from "@/pagesA/components/search/index.vue"
  19. export default {
  20. components: {
  21. search
  22. },
  23. data() {
  24. return {
  25. scrollTop: 0,
  26. };
  27. },
  28. methods: {
  29. //触底
  30. lower: function(e) {
  31. console.log(e)
  32. },
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .scroll-Y {
  38. height: calc(100vh - 100rpx);
  39. .li {
  40. border-bottom: 2rpx solid #e9e9e9;
  41. padding: 40rpx 32rpx;
  42. h2 {
  43. font-size: 32rpx;
  44. font-weight: 500;
  45. color: #222222;
  46. margin-bottom: 24rpx;
  47. }
  48. p {
  49. font-size: 24rpx;
  50. font-weight: 400;
  51. color: #767A80;
  52. padding-bottom: 12rpx;
  53. }
  54. .footer {
  55. margin-top: 20rpx;
  56. display: flex;
  57. align-items: center;
  58. justify-content: space-between;
  59. &>view {
  60. width:48%;
  61. background: #F9F9F9;
  62. border-radius: 8rpx;
  63. padding: 20rpx;
  64. font-size: 24rpx;
  65. font-weight: 400;
  66. color: #767A80;
  67. &>.money {
  68. font-size: 28rpx;
  69. font-weight: bold;
  70. color: #EB5757;
  71. }
  72. &>.integer {
  73. font-size: 28rpx;
  74. font-weight: bold;
  75. color: #F57737;
  76. }
  77. }
  78. }
  79. }
  80. }
  81. </style>