hookehuyr

fix: 更新活动链接以使用模拟链接

将活动卡片和首页中的活动链接更新为使用模拟链接,以确保在开发和测试环境中能够正确跳转。同时,更新了模拟数据中的活动链接字段。
1 <!-- 1 <!--
2 * @Date: 2025-03-20 20:36:36 2 * @Date: 2025-03-20 20:36:36
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-03-24 14:32:02 4 + * @LastEditTime: 2025-05-21 16:42:40
5 * @FilePath: /mlaj/src/components/ui/ActivityCard.vue 5 * @FilePath: /mlaj/src/components/ui/ActivityCard.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -85,7 +85,8 @@ const props = defineProps({ ...@@ -85,7 +85,8 @@ const props = defineProps({
85 }) 85 })
86 86
87 const navigateToActivity = () => { 87 const navigateToActivity = () => {
88 - window.open(`https://example.com/activities/${props.activity.id}`, '_blank') 88 + // window.open(`https://example.com/activities/${props.activity.id}`, '_blank')
89 + window.open(`${props.activity.mock_link}`, '_blank')
89 } 90 }
90 91
91 const getStatusClass = (status) => { 92 const getStatusClass = (status) => {
......
...@@ -115,7 +115,8 @@ export const activities = [ ...@@ -115,7 +115,8 @@ export const activities = [
115 isHot: true, 115 isHot: true,
116 isFree: false, 116 isFree: false,
117 participantsCount: 18, 117 participantsCount: 18,
118 - maxParticipants: 30 118 + maxParticipants: 30,
119 + mock_link: 'https://wxm.behalo.cc/pages/activity/info?type=2&id=10075&title=%E6%B4%BB%E5%8A%A8%E6%8A%A5%E5%90%8D'
119 }, 120 },
120 { 121 {
121 id: 'activity-2', 122 id: 'activity-2',
...@@ -130,7 +131,8 @@ export const activities = [ ...@@ -130,7 +131,8 @@ export const activities = [
130 isHot: false, 131 isHot: false,
131 isFree: false, 132 isFree: false,
132 participantsCount: 25, 133 participantsCount: 25,
133 - maxParticipants: 50 134 + maxParticipants: 50,
135 + mock_link: 'https://wxm.behalo.cc/pages/activity/info?type=2&id=10098&title=%E6%B4%BB%E5%8A%A8%E6%8A%A5%E5%90%8D'
134 }, 136 },
135 { 137 {
136 id: 'activity-3', 138 id: 'activity-3',
...@@ -145,7 +147,8 @@ export const activities = [ ...@@ -145,7 +147,8 @@ export const activities = [
145 isHot: true, 147 isHot: true,
146 isFree: false, 148 isFree: false,
147 participantsCount: 12, 149 participantsCount: 12,
148 - maxParticipants: 20 150 + maxParticipants: 20,
151 + mock_link: 'https://wxm.behalo.cc/pages/activity/info?type=2&id=10085&title=%E6%B4%BB%E5%8A%A8%E6%8A%A5%E5%90%8D'
149 }, 152 },
150 { 153 {
151 id: 'activity-4', 154 id: 'activity-4',
......
1 <!-- 1 <!--
2 * @Date: 2025-03-20 19:55:21 2 * @Date: 2025-03-20 19:55:21
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-05-16 17:40:55 4 + * @LastEditTime: 2025-05-21 16:44:26
5 * @FilePath: /mlaj/src/views/HomePage.vue 5 * @FilePath: /mlaj/src/views/HomePage.vue
6 * @Description: 美乐爱觉教育首页组件 6 * @Description: 美乐爱觉教育首页组件
7 * 7 *
...@@ -329,7 +329,7 @@ ...@@ -329,7 +329,7 @@
329 <section class="mb-7"> 329 <section class="mb-7">
330 <div class="flex justify-between items-center mb-3"> 330 <div class="flex justify-between items-center mb-3">
331 <h3 class="font-medium">最新活动</h3> 331 <h3 class="font-medium">最新活动</h3>
332 - <a href="https://www.mlaj.com/activities" target="_blank" class="text-xs text-gray-500 flex items-center"> 332 + <a href="https://wxm.behalo.cc/pages/activity/activity" target="_blank" class="text-xs text-gray-500 flex items-center">
333 更多 333 更多
334 <svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3 ml-1" fill="none" viewBox="0 0 24 24" stroke="currentColor"> 334 <svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3 ml-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
335 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" /> 335 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
......