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