高考版优化

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

@@ -2,7 +2,6 @@
* 超管审核相关:隐藏神仙 AI Tab/入口;提审模式下另由后端/各页关闭虚拟商品与「了解自己」深度套餐。
* - miniprogramAuditMode提审专用含虚拟支付合规
* - maintenanceMode / reviewMode面相审核用户口语「审核模式」常指其一
* - 高考志愿:与 isAuditHideAiMode 一致时在 test-select 隐藏入口,高考各页跳转回首页;后端见 audit_mode_blocks_gaokao_api
*/
/** 临时:为 true 时在客户端忽略审核/提审隐藏逻辑。平时必须为 false由 runtime 与后端 miniprogramAuditMode 等决定展示 */

View File

@@ -129,12 +129,15 @@ function wxPay(options) {
testResultId: testResultId || 0,
// 深度服务使用的具体套餐ID/产品Key用于从 categories 中选择价格)
deepProductId: deepProductId || '',
// 高考:与 Tab appScope 一致,后端按个人/企业档刷新 paidAmount
pricingScope:
productType === 'gaokao'
? pricingScope ||
((app.globalData && app.globalData.appScope) || 'personal')
: pricingScope || ''
// 高考志愿单GaokaoService 仍用 personal|enterprise高考 Tab 下其它测评单传 gaokao与 runtime scope 一致
pricingScope: (() => {
if (pricingScope) return pricingScope
const tabScope = (app.globalData && app.globalData.appScope) || 'personal'
if (productType === 'gaokao') {
return tabScope === 'enterprise' ? 'enterprise' : 'personal'
}
return tabScope === 'gaokao' ? 'gaokao' : ''
})()
},
success: (res) => {
wx.hideLoading()

View File

@@ -69,12 +69,16 @@ function getResultSharePath(resultPagePath, opts) {
return getSharePathByScope('/pages/index/index')
}
// fs=1分享落地结果页用于区分访客隐藏「去完善资料」、展示「我也要测试」
// vscope=gaokao好友打开 share-detail 时按高考档展示应付金额(与库内旧 personal 记录兼容)
const app = getApp_()
const asp = (app && app.globalData && app.globalData.appScope) || 'personal'
const q =
'id=' +
encodeURIComponent(String(id)) +
'&type=' +
encodeURIComponent(String(type)) +
'&fs=1'
'&fs=1' +
(asp === 'gaokao' ? '&vscope=gaokao' : '')
const inv = buildShareQuery()
return inv ? resultPagePath + '?' + q + '&' + inv : resultPagePath + '?' + q
}
@@ -88,12 +92,15 @@ function getResultShareTimelineQuery(opts) {
if (!id || !type) {
return buildShareQuery()
}
const app = getApp_()
const asp = (app && app.globalData && app.globalData.appScope) || 'personal'
const base =
'id=' +
encodeURIComponent(String(id)) +
'&type=' +
encodeURIComponent(String(type)) +
'&fs=1'
'&fs=1' +
(asp === 'gaokao' ? '&vscope=gaokao' : '')
const inv = buildShareQuery()
return inv ? base + '&' + inv : base
}