index.vue 3.3 KB

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