Sfoglia il codice sorgente

公益活动详情静态页完成

htc 2 settimane fa
parent
commit
8892d6ef33
3 ha cambiato i file con 434 aggiunte e 2 eliminazioni
  1. 8 2
      components/pages/nonprofitActivety/index.vue
  2. 6 0
      pages.json
  3. 420 0
      pagesHome/activityDetail.vue

+ 8 - 2
components/pages/nonprofitActivety/index.vue

@@ -1,5 +1,5 @@
 <template>
-	<view class="nonprofit-activety">
+	<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>
@@ -24,7 +24,7 @@
 		</div>
 		<div class="na-bottom adfacjb">
 			<div class="na-bottom-left adf">已报名&nbsp;&nbsp;<strong>{{234}}</strong>/{{300}}&nbsp;&nbsp;人</div>
-			<div class="na-bottom-right" @tap="toApply">立即报名</div>
+			<!-- <div class="na-bottom-right" @tap.stop="toApply">立即报名</div> -->
 		</div>
 		<login-register></login-register>
 	</view>
@@ -35,6 +35,12 @@
 	import { useUserStore } from '@/common/stores/user';
 	const userStore = useUserStore();
 	
+	const handleDetail = item => {
+		uni.navigateTo({
+			url:'/pagesHome/activityDetail'
+		})
+	}
+	
 	const toApply = () => {
 		userStore.openLoginModal();
 	}

+ 6 - 0
pages.json

@@ -34,6 +34,12 @@
 					"style": {
 						"navigationStyle": "custom"
 					}
+				},
+				{
+					"path": "activityDetail",
+					"style": {
+						"navigationStyle": "custom"
+					}
 				}
 			]
 		},

File diff suppressed because it is too large
+ 420 - 0
pagesHome/activityDetail.vue