volunteerHours.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <view class="common_page" :style="{'height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title="义工时长" bgColor="#FFFFFF"></cus-header>
  4. <div class="hours">义工时长:{{88}}<text>小时</text></div>
  5. <div class="list">
  6. <up-list @scrolltolower="scrolltolower" style="height: 100%;">
  7. <up-list-item class="list-item" v-for="(item, index) in list" :key="index">
  8. <div class="time">{{'2025-07-30 14:00:32'}}</div>
  9. <div class="content adfacjb">
  10. <div class="left adfac">
  11. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/24/d5b79c0e-bcda-49ff-8cc5-5f6275b6bac1.png"></image>
  12. <div class="texts">
  13. <div class="p">{{'《环保知识知多少?让孩子成为大自然的守护者'}}</div>
  14. <div class="p tip">{{'报名参与公益实践活动'}}</div>
  15. </div>
  16. </div>
  17. <div class="right adfac">
  18. <text>+{{4}}</text>
  19. </div>
  20. </div>
  21. </up-list-item>
  22. </up-list>
  23. </div>
  24. </view>
  25. </template>
  26. <script setup name="">
  27. import CusHeader from '@/components/CusHeader/index.vue'
  28. import { ref } from 'vue'
  29. const list = ref([1,1,1,1,1,1,1,1,1])
  30. const scrolltolower = () => {
  31. console.log(1);
  32. }
  33. </script>
  34. <style scoped lang="scss">
  35. .common_page{
  36. .hours{
  37. padding: 0 24rpx;
  38. height: 120rpx;
  39. background: #FFFFFF;
  40. border-radius: 24rpx;
  41. margin-top: 20rpx;
  42. font-family: PingFang-SC, PingFang-SC;
  43. font-weight: bold;
  44. font-size: 32rpx;
  45. color: #151B29;
  46. line-height: 120rpx;
  47. text{
  48. font-family: PingFangSC, PingFang SC;
  49. font-weight: 400;
  50. font-size: 24rpx;
  51. color: #989998;
  52. line-height: 120rpx;
  53. margin-left: 5rpx;
  54. }
  55. }
  56. .list{
  57. height: calc(100% - 160rpx);
  58. background: #FFFFFF;
  59. border-radius: 24rpx;
  60. margin-top: 20rpx;
  61. padding: 0 21rpx;
  62. &-item{
  63. padding: 36rpx 0;
  64. border-bottom: 1rpx solid #E7E7E7;
  65. .time{
  66. font-family: PingFangSC, PingFang SC;
  67. font-weight: 400;
  68. font-size: 24rpx;
  69. color: #989998;
  70. line-height: 24rpx;
  71. }
  72. .content{
  73. margin-top: 36rpx;
  74. .left{
  75. width: calc(100% - 200rpx);
  76. image{
  77. width: 64rpx;
  78. height: 64rpx;
  79. display: table;
  80. }
  81. .texts{
  82. width: 100%;
  83. margin-left: 20rpx;
  84. .p{
  85. font-family: PingFangSC, PingFang SC;
  86. font-weight: 400;
  87. font-size: 32rpx;
  88. color: #151B29;
  89. line-height: 32rpx;
  90. overflow: hidden;
  91. text-overflow: ellipsis;
  92. white-space: nowrap;
  93. &.tip{
  94. font-size: 24rpx;
  95. color: #989998;
  96. line-height: 24rpx;
  97. margin-top: 18rpx;
  98. }
  99. }
  100. }
  101. }
  102. .right{
  103. width: 200rpx;
  104. justify-content: flex-end;
  105. text{
  106. font-family: DINAlternate, DINAlternate;
  107. font-weight: bold;
  108. font-size: 36rpx;
  109. color: #252525;
  110. line-height: 42rpx;
  111. text-align: right;
  112. }
  113. }
  114. }
  115. }
  116. }
  117. }
  118. </style>