index.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view class="nonprofit-activety">
  3. <div class="na-top adf">
  4. <div class="na-top-left">
  5. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/d3c53597-a848-4a33-8deb-ab256f028baa.png"></image>
  6. </div>
  7. <div class="na-top-right">
  8. <p>{{'《环保知识知多少》让孩子成为大自然的守护者!'}}</p>
  9. <div class="tip adf">
  10. <div class="tip-left adfac">
  11. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/201a4250-24a4-412d-9ec9-fc58071d10ea.png"></image>
  12. <text>截止报名:</text>
  13. </div>
  14. <div class="tip-right">{{"还有5天12小时34分钟"}}</div>
  15. </div>
  16. <div class="tip adf">
  17. <div class="tip-left adfac">
  18. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/e9025f86-a59e-4f82-92f0-9d22e846193c.png"></image>
  19. <text>活动地点:</text>
  20. </div>
  21. <div class="tip-right">{{"广东省深圳市南山区"}}</div>
  22. </div>
  23. </div>
  24. </div>
  25. <div class="na-bottom adfacjb">
  26. <div class="na-bottom-left adf">已报名&nbsp;&nbsp;<strong>{{234}}</strong>/{{300}}&nbsp;&nbsp;人</div>
  27. <div class="na-bottom-right">立即报名</div>
  28. </div>
  29. </view>
  30. </template>
  31. <script setup name="nonprofitActivety">
  32. import { ref } from 'vue'
  33. </script>
  34. <style scoped lang="scss">
  35. .nonprofit-activety{
  36. background: linear-gradient( 45deg, #FFFFFF 80%, #F2FFE8 100%);
  37. border-radius: 24rpx;
  38. padding: 36rpx 24rpx 32rpx;
  39. margin-top: 20rpx;
  40. .na-top{
  41. &-left{
  42. width: 158rpx;
  43. height: 214rpx;
  44. image{
  45. width: 100%;
  46. height: 100%;
  47. }
  48. }
  49. &-right{
  50. width: calc(100% - 158rpx);
  51. padding-left: 20rpx;
  52. box-sizing: border-box;
  53. &>p{
  54. font-family: PingFang-SC, PingFang-SC;
  55. font-weight: bold;
  56. font-size: 32rpx;
  57. color: #151B29;
  58. line-height: 40rpx;
  59. margin-bottom: 5rpx;
  60. }
  61. .tip{
  62. margin-top: 25rpx;
  63. &-left{
  64. width: 160rpx;
  65. image{
  66. width: 24rpx;
  67. height: 24rpx;
  68. }
  69. text{
  70. font-family: PingFangSC, PingFang SC;
  71. font-weight: 400;
  72. font-size: 24rpx;
  73. color: #676775;
  74. line-height: 24rpx;
  75. margin-left: 10rpx;
  76. }
  77. }
  78. &-right{
  79. width: calc(100% - 160rpx);
  80. font-family: PingFangSC, PingFang SC;
  81. font-weight: 400;
  82. font-size: 24rpx;
  83. color: #676775;
  84. line-height: 24rpx;
  85. margin-left: 10rpx;
  86. }
  87. }
  88. }
  89. }
  90. .na-bottom{
  91. margin-top: 24rpx;
  92. &-left{
  93. font-family: PingFangSC, PingFang SC;
  94. font-weight: 400;
  95. font-size: 24rpx;
  96. color: #676775;
  97. line-height: 24rpx;
  98. }
  99. &-right{
  100. background: #B7F358;
  101. border-radius: 27rpx;
  102. padding: 12rpx 30rpx;
  103. font-family: PingFang-SC, PingFang-SC;
  104. font-weight: bold;
  105. font-size: 24rpx;
  106. color: #151B29;
  107. line-height: 30rpx;
  108. }
  109. }
  110. }
  111. </style>