feat: 代表团凭证展示优化
This commit is contained in:
@@ -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: "代表证加载失败"
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
// 初始加载消除长按收藏
|
||||
|
||||
Reference in New Issue
Block a user