heartNumber.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <view class="common_page adffc" :style="{'height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title="我的爱心值" bgColor="transparent"></cus-header>
  4. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/24/19f555c2-ee0a-437b-8871-42b5605f8a8b.png" class="top_bg_img" mode="widthFix"></image>
  5. <div class="top">
  6. <div class="num">{{800}}</div>
  7. <div class="text">我的爱心值</div>
  8. </div>
  9. <div class="list">
  10. <div class="list-item" v-for="(item,index) in list" :key="index">
  11. <div class="time">{{'2025-07-30 14:00:32'}}</div>
  12. <div class="content adfacjb">
  13. <div class="left adfac">
  14. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/24/d5b79c0e-bcda-49ff-8cc5-5f6275b6bac1.png"></image>
  15. <div class="texts">
  16. <div class="p">{{'参与献爱心'}}</div>
  17. <div class="p tip">{{'报名参与公益实践活动'}}</div>
  18. </div>
  19. </div>
  20. <div class="right adfac">
  21. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/24/9d038c9c-268c-44ae-a396-949039c77f47.png" v-if="index%2===0"></image>
  22. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/24/b6cbd075-f008-448a-ac9f-074787d08924.png" v-else></image>
  23. <text :class="{'black':index%2===0,'red':index%2===1}">{{index%2===0?'-':'+'}}</text>
  24. <text :class="{'black':index%2===0,'red':index%2===1}">{{800}}</text>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </view>
  30. </template>
  31. <script setup name="">
  32. import CusHeader from '@/components/CusHeader/index.vue'
  33. import { ref } from 'vue'
  34. const list = ref([1,1,1,1,1])
  35. </script>
  36. <style scoped lang="scss">
  37. .common_page{
  38. padding-bottom: 20rpx;
  39. box-sizing: border-box;
  40. .top{
  41. padding: 93rpx 64rpx 0;
  42. height: 296rpx;
  43. box-sizing: border-box;
  44. position: relative;
  45. .num{
  46. font-family: DINAlternate, DINAlternate;
  47. font-weight: bold;
  48. font-size: 88rpx;
  49. color: #151B29;
  50. line-height: 103rpx;
  51. }
  52. .text{
  53. font-family: PingFangSC, PingFang SC;
  54. font-weight: 400;
  55. font-size: 28rpx;
  56. color: #151B29;
  57. line-height: 30rpx;
  58. margin-top: 11rpx;
  59. }
  60. }
  61. .list{
  62. position: relative;
  63. flex: 1;
  64. overflow-y: auto;
  65. width: calc(100% - 48rpx);
  66. margin: 0 auto;
  67. background: #FFFFFF;
  68. border-radius: 24rpx;
  69. padding: 6rpx 24rpx;
  70. box-sizing: border-box;
  71. &-item{
  72. padding: 36rpx 0;
  73. border-bottom: 1rpx solid #E7E7E7;
  74. .time{
  75. font-family: PingFangSC, PingFang SC;
  76. font-weight: 400;
  77. font-size: 24rpx;
  78. color: #989998;
  79. line-height: 24rpx;
  80. }
  81. .content{
  82. margin-top: 36rpx;
  83. .left{
  84. flex: 1;
  85. image{
  86. width: 64rpx;
  87. height: 64rpx;
  88. }
  89. .texts{
  90. margin-left: 20rpx;
  91. .p{
  92. font-family: PingFangSC, PingFang SC;
  93. font-weight: 400;
  94. font-size: 32rpx;
  95. color: #151B29;
  96. line-height: 32rpx;
  97. &.tip{
  98. font-size: 24rpx;
  99. color: #676775;
  100. line-height: 24rpx;
  101. margin-top: 20rpx;
  102. }
  103. }
  104. }
  105. }
  106. .right{
  107. width: 200rpx;
  108. justify-content: flex-end;
  109. image{
  110. width: 24rpx;
  111. height: 22rpx;
  112. margin-right: 10rpx;
  113. }
  114. text{
  115. font-family: DINAlternate, DINAlternate;
  116. font-weight: bold;
  117. font-size: 36rpx;
  118. line-height: 42rpx;
  119. &.black{
  120. color: #151B29;
  121. }
  122. &.red{
  123. color: #F4657A;
  124. }
  125. }
  126. }
  127. }
  128. }
  129. }
  130. }
  131. </style>