高考版优化

审核模式优化
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() {

View File

@@ -2,8 +2,7 @@
<view class="container">
<view class="card intro-card">
<text class="intro-title">选择一项详细性格测试</text>
<text class="intro-desc" wx:if="{{auditHideAiFeatures}}">问卷测评与拍照面相分项进入,完成后可获得对应报告</text>
<text class="intro-desc" wx:else>问卷测评、高考志愿规划与 AI 对话 / 拍照面相分项进入,完成后可获得对应报告</text>
<text class="intro-desc">问卷测评、高考志愿规划与 AI 对话 / 拍照面相分项进入,完成后可获得对应报告</text>
</view>
<view class="card entry-card" bindtap="goMBTI" wx:if="{{permMbti}}">
@@ -50,7 +49,7 @@
<text class="entry-arrow">→</text>
</view>
<view class="card entry-card" bindtap="goGaokaoHub" wx:if="{{permGaokao}}">
<view class="card entry-card" bindtap="goGaokaoHub" wx:if="{{permGaokao && showGaokaoHub}}">
<view class="entry-icon-wrap gaokao">
<text class="entry-emoji">🎓</text>
</view>
@@ -61,27 +60,7 @@
<text class="entry-arrow">→</text>
</view>
<view class="card entry-card" bindtap="goAIChatInterpretation" wx:if="{{permAiHub}}">
<view class="entry-icon-wrap ai-chat">
<text class="entry-emoji">💬</text>
</view>
<view class="entry-content">
<text class="entry-name">AI 对话解读</text>
<text class="entry-brief">与神仙 AI 对话 · 结合测评画像的深度解读与建议</text>
</view>
<text class="entry-arrow">→</text>
</view>
<view class="card entry-card" bindtap="goAIFaceAnalysis" wx:if="{{permFace}}">
<view class="entry-icon-wrap ai-face">
<text class="entry-emoji">📷</text>
</view>
<view class="entry-content">
<text class="entry-name">拍照面相分析</text>
<text class="entry-brief">上传正面与侧面照 · 面相 / 骨相与性格报告</text>
</view>
<text class="entry-arrow">→</text>
</view>
<view class="card perm-disabled-hint" wx:if="{{allTestsDisabled}}">
<text class="perm-disabled-text">当前环境下暂未开放问卷测试,请联系管理员或从首页进入。</text>