Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
stdj_h5
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2025-11-03 18:29:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e0a113ccf2d09975cfca8c06c25438da1ce02e16
e0a113cc
1 parent
21fec772
fix(Home): 处理法会流程和三师七证链接不存在的情况
当法会流程没有跳转链接时显示提示信息,三师七证没有链接时跳转到默认页面
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
src/views/Home.vue
src/views/Home.vue
View file @
e0a113c
...
...
@@ -157,6 +157,8 @@ import { ref, computed, nextTick, onMounted, watch } from 'vue'
import VideoPlayer from '@/components/VideoPlayer.vue'
import { useTitle } from '@vueuse/core';
import { useRouter } from 'vue-router'
import { showToast } from 'vant'
// 导入接口
import { homePageAPI } from '@/api/index.js'
...
...
@@ -284,12 +286,17 @@ const viewMore = (type, item) => {
switch (type) {
case '法会流程':
// 跳转页面
location.href = item.category_link;
if (item?.category_link) {
location.href = item?.category_link;
} else {
// 提示用户没有详情页
showToast('该法会流程没有跳转链接')
}
break
case '三师七证':
// 跳转到三师七证页面的逻辑
if (item.category_link) {
location.href = item.category_link;
if (item
?
.category_link) {
location.href = item
?
.category_link;
} else {
router.push(`/masters?pid=${item.id}`)
}
...
...
Please
register
or
login
to post a comment