feat: 代表团凭证展示优化

This commit is contained in:
2026-08-29 17:40:45 +08:00
parent b1cd738a53
commit ec54e3fc0d
3 changed files with 372 additions and 249 deletions
@@ -569,6 +569,10 @@ const apps = {
// 导航到菜单
navigateToMenu(menu) {
if (this.isTeacherCongressCardMenu(menu)) {
this.showTeacherCongressCard()
return
}
// 关闭弹框
// this.showMenuPopup = false
if (menu.href) {
@@ -581,6 +585,32 @@ const apps = {
} else {
this.$toast('该功能暂不可用')
}
},
isTeacherCongressCardMenu(menu) {
const href = (menu && menu.href) || ""
return href.indexOf("/platform/teacherCongress/delegate/card/") === 0
},
showTeacherCongressCard() {
this.$axios.post("/platform/teacherCongress/delegate/card/isDb").then((resp) => {
if (resp.code !== 0) {
vant.Dialog.alert({
title: "温馨提示",
message: resp.msg || "暂无教代会代表证"
})
return
}
this.showMenuPopup = false
vant.ImagePreview([
"/platform/teacherCongress/delegate/card/showCard?t=" + Date.now()
])
}).catch(() => {
vant.Dialog.alert({
title: "温馨提示",
message: "代表证加载失败"
})
})
}
},
// 初始加载消除长按收藏