index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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" @tap="toApply">立即报名</div>
  28. </div>
  29. <login-register></login-register>
  30. </view>
  31. </template>
  32. <script setup name="nonprofitActivety">
  33. import { ref } from 'vue'
  34. import { useUserStore } from '@/common/stores/user';
  35. const userStore = useUserStore();
  36. const toApply = () => {
  37. userStore.openLoginModal();
  38. }
  39. </script>
  40. <style scoped lang="scss">
  41. .nonprofit-activety{
  42. background: linear-gradient( 45deg, #FFFFFF 80%, #F2FFE8 100%);
  43. border-radius: 24rpx;
  44. padding: 36rpx 24rpx 32rpx;
  45. margin-top: 20rpx;
  46. .na-top{
  47. &-left{
  48. width: 158rpx;
  49. height: 214rpx;
  50. image{
  51. width: 100%;
  52. height: 100%;
  53. }
  54. }
  55. &-right{
  56. width: calc(100% - 158rpx);
  57. padding-left: 20rpx;
  58. box-sizing: border-box;
  59. &>p{
  60. font-family: PingFang-SC, PingFang-SC;
  61. font-weight: bold;
  62. font-size: 32rpx;
  63. color: #151B29;
  64. line-height: 40rpx;
  65. margin-bottom: 5rpx;
  66. }
  67. .tip{
  68. margin-top: 25rpx;
  69. &-left{
  70. width: 160rpx;
  71. image{
  72. width: 24rpx;
  73. height: 24rpx;
  74. }
  75. text{
  76. font-family: PingFangSC, PingFang SC;
  77. font-weight: 400;
  78. font-size: 24rpx;
  79. color: #676775;
  80. line-height: 24rpx;
  81. margin-left: 10rpx;
  82. }
  83. }
  84. &-right{
  85. width: calc(100% - 160rpx);
  86. font-family: PingFangSC, PingFang SC;
  87. font-weight: 400;
  88. font-size: 24rpx;
  89. color: #676775;
  90. line-height: 24rpx;
  91. margin-left: 10rpx;
  92. }
  93. }
  94. }
  95. }
  96. .na-bottom{
  97. margin-top: 24rpx;
  98. &-left{
  99. font-family: PingFangSC, PingFang SC;
  100. font-weight: 400;
  101. font-size: 24rpx;
  102. color: #676775;
  103. line-height: 24rpx;
  104. }
  105. &-right{
  106. background: #B7F358;
  107. border-radius: 27rpx;
  108. padding: 12rpx 30rpx;
  109. font-family: PingFang-SC, PingFang-SC;
  110. font-weight: bold;
  111. font-size: 24rpx;
  112. color: #151B29;
  113. line-height: 30rpx;
  114. }
  115. }
  116. }
  117. </style>