fix(mini): 测评适配指数改契合度+题目移除维度展示
- 适配指数全部改为OPC契合度,不下适合/不适合判断 - 移除level.label判断性文字显示,只展示分数 - 分享标题/分享卡片/结果页/欢迎页统一改为契合度 - 适配6维改为契合6维 - 答题页移除curPart维度名称展示 - 题目文本过滤中英文括号中的维度信息
This commit is contained in:
@@ -30,7 +30,7 @@ export default function Test() {
|
||||
if (stage !== 'result' || !result) return { title: 'OPC 创业基因测评', path: '/pages-extra/test/index' };
|
||||
const persona = result.persona || {};
|
||||
return {
|
||||
title: `我的 OPC 画像是 ${result.typeCode} · ${persona.name || ''},适配指数 ${result.adaptIndex}`,
|
||||
title: `我的 OPC 画像是 ${result.typeCode} · ${persona.name || ''},契合度 ${result.adaptIndex}`,
|
||||
path: '/pages-extra/test/index',
|
||||
};
|
||||
});
|
||||
@@ -40,7 +40,7 @@ export default function Test() {
|
||||
if (stage !== 'result' || !result) return { title: 'OPC 创业基因测评' };
|
||||
const persona = result.persona || {};
|
||||
return {
|
||||
title: `我的 OPC 画像是 ${result.typeCode} · ${persona.name || ''},适配指数 ${result.adaptIndex}`,
|
||||
title: `我的 OPC 画像是 ${result.typeCode} · ${persona.name || ''},契合度 ${result.adaptIndex}`,
|
||||
};
|
||||
});
|
||||
|
||||
@@ -103,13 +103,13 @@ export default function Test() {
|
||||
ctx.fillRect(40, 290, W - 80, 70);
|
||||
ctx.setFillStyle('#6b8bff');
|
||||
ctx.setFontSize(22);
|
||||
ctx.fillText(`OPC 适配指数`, 60, 320);
|
||||
ctx.fillText(`OPC 契合度`, 60, 320);
|
||||
ctx.setFontSize(36);
|
||||
ctx.setFillStyle('#23315c');
|
||||
ctx.fillText(String(r.adaptIndex), 240, 330);
|
||||
ctx.setFontSize(18);
|
||||
ctx.setFillStyle('#6b7599');
|
||||
ctx.fillText(`· ${level.label || ''}`, 300, 330);
|
||||
ctx.fillText(`· ${r.adaptIndex}分`, 300, 330);
|
||||
|
||||
// 分隔线
|
||||
ctx.setStrokeStyle('rgba(99,132,255,0.15)');
|
||||
@@ -122,7 +122,7 @@ export default function Test() {
|
||||
// 适配6维
|
||||
ctx.setFontSize(22);
|
||||
ctx.setFillStyle('#4a5580');
|
||||
ctx.fillText('适配 6 维', 40, 415);
|
||||
ctx.fillText('契合 6 维', 40, 415);
|
||||
const dims = [...r.adaptDims].sort((a, b) => a.code.localeCompare(b.code));
|
||||
dims.forEach((d, i) => {
|
||||
const y = 445 + i * 36;
|
||||
@@ -325,7 +325,7 @@ export default function Test() {
|
||||
</View>
|
||||
</View>
|
||||
<View className="ot-features">
|
||||
<Text className="ot-feature">· 适配指数:我适不适合一个人做 OPC</Text>
|
||||
<Text className="ot-feature">· OPC 契合度:你与一人公司模式的匹配程度</Text>
|
||||
<Text className="ot-feature">· 推荐赛道:文旅 / 内容IP / 咨询 / 电商 / 跨境 / 本地</Text>
|
||||
<Text className="ot-feature">· 主辅角色 + 工具模式:我在 OPC 里干什么</Text>
|
||||
<Text className="ot-feature">· 4 字母类型码 + 人设名,可分享可传播</Text>
|
||||
@@ -354,7 +354,6 @@ export default function Test() {
|
||||
<Text className="ot-progress-text">{current + 1} / {questions.length} 题</Text>
|
||||
</View>
|
||||
<View className="ot-progress"><View className="ot-progress-fill" style={{ width: pct + '%' }} /></View>
|
||||
{curPart && <Text className="ot-part">{curPart}</Text>}
|
||||
</View>
|
||||
|
||||
<View className="quiz-body">
|
||||
@@ -363,7 +362,7 @@ export default function Test() {
|
||||
<Text>第 {current + 1} 题</Text>
|
||||
{ans && <Text className="ot-check">已答</Text>}
|
||||
</View>
|
||||
<Text className="ot-qtext">{q.question}</Text>
|
||||
<Text className="ot-qtext">{q.question.replace(/([^)]*)/g, '').replace(/\([^)]*\)/g, '')}</Text>
|
||||
<View className="ot-opts">
|
||||
{['A', 'B'].map((k) => (
|
||||
<View className={`ot-opt${ans === k ? ' sel' : ''}`} key={k} onClick={() => select(q.id, k)}>
|
||||
@@ -406,7 +405,7 @@ export default function Test() {
|
||||
<View className="ot-ring" style={{ '--p': r.adaptIndex + '%' }}>
|
||||
<View className="ot-ring-inner"><Text className="ot-ring-num">{r.adaptIndex}</Text></View>
|
||||
</View>
|
||||
<Text className="ot-ring-label">OPC 适配指数 · {level.label}</Text>
|
||||
<Text className="ot-ring-label">OPC 契合度</Text>
|
||||
</View>
|
||||
</View>
|
||||
<View className="ot-verdict"><Text>{level.verdict}</Text></View>
|
||||
@@ -417,7 +416,7 @@ export default function Test() {
|
||||
{/* 适配 6 维 */}
|
||||
<View className="ot-head">
|
||||
<Text className="ot-no">03</Text>
|
||||
<Text className="ot-title">适配 6 维</Text>
|
||||
<Text className="ot-title">契合 6 维</Text>
|
||||
<Text className="ot-en">Fitness</Text>
|
||||
</View>
|
||||
{[...r.adaptDims].sort((a, b) => a.code.localeCompare(b.code)).map((d) => (
|
||||
|
||||
Reference in New Issue
Block a user