hookehuyr

fix(profile): 替换社区链接为未开放提示

修复活动页面加载完成后文本显示问题
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
11 <van-list 11 <van-list
12 v-model:loading="loading" 12 v-model:loading="loading"
13 :finished="finished" 13 :finished="finished"
14 - finished-text="没有更多了" 14 + :finished-text="finishText"
15 @load="onLoad" 15 @load="onLoad"
16 class="px-4 py-3" 16 class="px-4 py-3"
17 > 17 >
...@@ -47,6 +47,7 @@ const loading = ref(false) ...@@ -47,6 +47,7 @@ const loading = ref(false)
47 const finished = ref(false) 47 const finished = ref(false)
48 const page = ref(0) 48 const page = ref(0)
49 const pageSize = 10 49 const pageSize = 10
50 +const finishText = ref('没有更多了');
50 51
51 // 加载活动数据 52 // 加载活动数据
52 const onLoad = async () => { 53 const onLoad = async () => {
...@@ -66,6 +67,7 @@ const onLoad = async () => { ...@@ -66,6 +67,7 @@ const onLoad = async () => {
66 } else { 67 } else {
67 page.value += 1 68 page.value += 1
68 } 69 }
70 + finishText.value = '';
69 } catch (error) { 71 } catch (error) {
70 console.error('加载活动数据失败:', error) 72 console.error('加载活动数据失败:', error)
71 } finally { 73 } finally {
......
...@@ -179,7 +179,10 @@ const handleLogout = () => { ...@@ -179,7 +179,10 @@ const handleLogout = () => {
179 // Handle menu item click 179 // Handle menu item click
180 const handleMenuClick = (path) => { 180 const handleMenuClick = (path) => {
181 if (path === '/profile/community') { 181 if (path === '/profile/community') {
182 - window.location.href = 'https://community.mlaj.com'; 182 + // window.location.href = 'https://community.mlaj.com';
183 + showToast('功能暂未开放')
184 + } else if(path === '/profile/activities') {
185 + showToast('功能暂未开放')
183 } else { 186 } else {
184 router.push(path); 187 router.push(path);
185 } 188 }
......