hookehuyr

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

将活动卡片和首页中的活动链接更新为使用模拟链接,以确保在开发和测试环境中能够正确跳转。同时,更新了模拟数据中的活动链接字段。
<!--
* @Date: 2025-03-20 20:36:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-24 14:32:02
* @LastEditTime: 2025-05-21 16:42:40
* @FilePath: /mlaj/src/components/ui/ActivityCard.vue
* @Description: 文件描述
-->
......@@ -85,7 +85,8 @@ const props = defineProps({
})
const navigateToActivity = () => {
window.open(`https://example.com/activities/${props.activity.id}`, '_blank')
// window.open(`https://example.com/activities/${props.activity.id}`, '_blank')
window.open(`${props.activity.mock_link}`, '_blank')
}
const getStatusClass = (status) => {
......
......@@ -115,7 +115,8 @@ export const activities = [
isHot: true,
isFree: false,
participantsCount: 18,
maxParticipants: 30
maxParticipants: 30,
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'
},
{
id: 'activity-2',
......@@ -130,7 +131,8 @@ export const activities = [
isHot: false,
isFree: false,
participantsCount: 25,
maxParticipants: 50
maxParticipants: 50,
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'
},
{
id: 'activity-3',
......@@ -145,7 +147,8 @@ export const activities = [
isHot: true,
isFree: false,
participantsCount: 12,
maxParticipants: 20
maxParticipants: 20,
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'
},
{
id: 'activity-4',
......
<!--
* @Date: 2025-03-20 19:55:21
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-05-16 17:40:55
* @LastEditTime: 2025-05-21 16:44:26
* @FilePath: /mlaj/src/views/HomePage.vue
* @Description: 美乐爱觉教育首页组件
*
......@@ -329,7 +329,7 @@
<section class="mb-7">
<div class="flex justify-between items-center mb-3">
<h3 class="font-medium">最新活动</h3>
<a href="https://www.mlaj.com/activities" target="_blank" class="text-xs text-gray-500 flex items-center">
<a href="https://wxm.behalo.cc/pages/activity/activity" target="_blank" class="text-xs text-gray-500 flex items-center">
更多
<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3 ml-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
......