| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 | 
							- <template>
 
- 	<view class="nonprofit-activety" @tap.self="handleDetail({})">
 
- 		<div class="na-top adf">
 
- 			<div class="na-top-left">
 
- 				<image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/d3c53597-a848-4a33-8deb-ab256f028baa.png"></image>
 
- 			</div>
 
- 			<div class="na-top-right">
 
- 				<p>{{'《环保知识知多少》让孩子成为大自然的守护者!'}}</p>
 
- 				<div class="tip adf">
 
- 					<div class="tip-left adfac">
 
- 						<image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/201a4250-24a4-412d-9ec9-fc58071d10ea.png"></image>
 
- 						<text>截止报名:</text>
 
- 					</div>
 
- 					<div class="tip-right">{{"还有5天12小时34分钟"}}</div>
 
- 				</div>
 
- 				<div class="tip adf">
 
- 					<div class="tip-left adfac">
 
- 						<image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/e9025f86-a59e-4f82-92f0-9d22e846193c.png"></image>
 
- 						<text>活动地点:</text>
 
- 					</div>
 
- 					<div class="tip-right">{{"广东省深圳市南山区"}}</div>
 
- 				</div>
 
- 			</div>
 
- 		</div>
 
- 		<div class="na-bottom adfacjb">
 
- 			<div class="na-bottom-left adf">已报名  <strong>{{234}}</strong>/{{300}}  人</div>
 
- 			<!-- <div class="na-bottom-right" @tap.stop="toApply">立即报名</div> -->
 
- 		</div>
 
- 		<login-register></login-register>
 
- 	</view>
 
- </template>
 
- <script setup name="nonprofitActivety">
 
- 	import { ref } from 'vue'
 
- 	import { useUserStore } from '@/common/stores/user';
 
- 	const userStore = useUserStore();
 
- 	
 
- 	const handleDetail = item => {
 
- 		uni.navigateTo({
 
- 			url:'/pagesHome/activityDetail'
 
- 		})
 
- 	}
 
- 	
 
- 	const toApply = () => {
 
- 		userStore.openLoginModal();
 
- 	}
 
- </script>
 
- <style scoped lang="scss">
 
- 	.nonprofit-activety{
 
- 		background: linear-gradient( 45deg, #FFFFFF 80%, #F2FFE8 100%);
 
- 		border-radius: 24rpx;
 
- 		padding: 36rpx 24rpx 32rpx;
 
- 		margin-top: 20rpx;
 
- 		
 
- 		.na-top{
 
- 			&-left{
 
- 				width: 158rpx;
 
- 				height: 214rpx;
 
- 				image{
 
- 					width: 100%;
 
- 					height: 100%;
 
- 				}
 
- 			}
 
- 			&-right{
 
- 				width: calc(100% - 158rpx);
 
- 				padding-left: 20rpx;
 
- 				box-sizing: border-box;
 
- 				&>p{
 
- 					font-family: PingFang-SC, PingFang-SC;
 
- 					font-weight: bold;
 
- 					font-size: 32rpx;
 
- 					color: #151B29;
 
- 					line-height: 40rpx;
 
- 					margin-bottom: 5rpx;
 
- 				}
 
- 				.tip{
 
- 					margin-top: 25rpx;
 
- 					&-left{
 
- 						width: 160rpx;
 
- 						image{
 
- 							width: 24rpx;
 
- 							height: 24rpx;
 
- 						}
 
- 						text{
 
- 							font-family: PingFangSC, PingFang SC;
 
- 							font-weight: 400;
 
- 							font-size: 24rpx;
 
- 							color: #676775;
 
- 							line-height: 24rpx;
 
- 							margin-left: 10rpx;
 
- 						}
 
- 					}
 
- 					&-right{
 
- 						width: calc(100% - 160rpx);
 
- 						font-family: PingFangSC, PingFang SC;
 
- 						font-weight: 400;
 
- 						font-size: 24rpx;
 
- 						color: #676775;
 
- 						line-height: 24rpx;
 
- 						margin-left: 10rpx;
 
- 					}
 
- 				}
 
- 			}
 
- 		}
 
- 		
 
- 		.na-bottom{
 
- 			margin-top: 24rpx;
 
- 			&-left{
 
- 				font-family: PingFangSC, PingFang SC;
 
- 				font-weight: 400;
 
- 				font-size: 24rpx;
 
- 				color: #676775;
 
- 				line-height: 24rpx;
 
- 			}
 
- 			&-right{
 
- 				background: #B7F358;
 
- 				border-radius: 27rpx;
 
- 				padding: 12rpx 30rpx;
 
- 				font-family: PingFang-SC, PingFang-SC;
 
- 				font-weight: bold;
 
- 				font-size: 24rpx;
 
- 				color: #151B29;
 
- 				line-height: 30rpx;
 
- 			}
 
- 		}
 
- 	}
 
- </style>
 
 
  |