高考版优化

审核模式优化
This commit is contained in:
Ghost
2026-04-29 18:01:26 +08:00
parent 59419c4ce9
commit a411bf7b21
134 changed files with 19898 additions and 3371 deletions

View File

@@ -9,10 +9,10 @@ Page({
permSbti: true,
permPdp: true,
permDisc: true,
/** 高考志愿任务中心;企业关闭 gaokao 或审核/提审时隐藏 */
/** 高考志愿任务中心;企业关闭 gaokao 时隐藏 */
permGaokao: true,
/** 与 permAiHub 同源:用于简介文案不提及高考/神仙 AI */
auditHideAiFeatures: false,
/** 仅在高考版作用域显示任务中心入口 */
showGaokaoHub: false,
/** AI 对话(神仙 AI企业关闭 aiHub 时隐藏 */
permAiHub: true,
/** 四类问卷入口均被企业权限关闭时提示 */
@@ -41,13 +41,15 @@ Page({
_syncPerms() {
const p = app.globalData.enterprisePermissions
const gd = app.globalData || {}
const isGaokaoScope = (gd.appScope === 'gaokao') || (gd.selectedHomeVersion === 'gaokao')
const hideAi = isAuditHideAiMode(app.globalData)
const permFace = !p || p.face !== false
const permMbti = !p || p.mbti !== false
const permSbti = !p || p.sbti !== false
const permPdp = !p || p.pdp !== false
const permDisc = !p || p.disc !== false
const permGaokao = (!p || p.gaokao !== false) && !hideAi
const permGaokao = !p || p.gaokao !== false
const permAiHub = (!p || p.aiHub !== false) && !hideAi
this.setData({
permFace,
@@ -56,8 +58,8 @@ Page({
permPdp,
permDisc,
permGaokao,
showGaokaoHub: isGaokaoScope,
permAiHub,
auditHideAiFeatures: hideAi,
allTestsDisabled: p && !permMbti && !permSbti && !permPdp && !permDisc && !permGaokao
})
},
@@ -87,10 +89,6 @@ Page({
},
goGaokaoHub() {
if (isAuditHideAiMode(app.globalData)) {
wx.showToast({ title: '版本审核中暂不可用', icon: 'none' })
return
}
if (!this.data.permGaokao) {
wx.showToast({ title: '当前企业未开放高考志愿功能', icon: 'none' })
return
@@ -98,7 +96,13 @@ Page({
try {
require('../../utils/analytics').track('tap_test_select_gaokao', {})
} catch (e) {}
wx.navigateTo({ url: '/pages/gaokao/index' })
wx.navigateTo({
url: '/pages/gaokao/task-center',
fail: () => {
// 兜底回退:避免线上缓存旧包时点击无响应
wx.navigateTo({ url: '/pages/gaokao/index' })
}
})
},
goAIChatInterpretation() {