feat(ECR-012–016): 合规、题库、时辰刷新、头像、MBTI OEJTS 与埋点

落地输入合规、探索题库、报告日/时辰刷新、账号头像、OEJTS 量表,并补齐 H5 埋点与 Admin 漏斗;同步 ESS 工件、切至自建 Git、清理 GitHub Actions。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-13 01:27:58 +08:00
co-authored by Cursor
parent 13860bf1ef
commit 89756f65b4
227 changed files with 7405 additions and 1407 deletions
+69 -14
View File
@@ -2,8 +2,12 @@
<PageShell :sheet="false">
<template #hero>
<div class="ask-hero">
<div class="ask-top">
<BackButton />
<div class="head">
<HomeToolIcon name="ask" :size="48" />
<div class="head-text">
<h1 class="title">问答</h1>
<p class="sub">AI 成长助手 · 结合档案聊聊</p>
</div>
<button
v-if="messages.length"
type="button"
@@ -11,19 +15,21 @@
:disabled="sending"
@click="clearChat"
>
清空聊天
清空
</button>
</div>
<AskRails v-model="rail" />
<AskRails v-if="!activeAdvisor" :model-value="rail" @update:model-value="setRail" />
<p v-else class="adv-title">{{ activeAdvisor.name }}的专属对话</p>
</div>
</template>
<AskAiPane
v-show="rail === 'ai'"
v-show="rail === 'ai' && !activeAdvisor"
:boot-loading="bootLoading"
:boot-error="bootError"
:profiles="profiles"
:profile-id="profileId"
:self-label="selfLabel"
:messages="messages"
:draft="draft"
:sending="sending"
@@ -32,7 +38,7 @@
:quota="quota"
@boot="boot"
@pick-scene="pickScene"
@switch-advisor="rail = 'advisor'"
@switch-advisor="setRail('advisor')"
@update:profile-id="profileId = $event"
@profile-change="onProfileChange"
@navigate="router.push($event)"
@@ -41,25 +47,55 @@
@quota-refreshed="refreshQuota"
/>
<AskAdvisorPane v-show="rail === 'advisor'" @ask="askAdvisor" />
<AskAdvisorPane
v-show="rail === 'advisor' && !activeAdvisor"
@ask="openAdvisor"
/>
<AskAdvisorChat
v-if="activeAdvisor"
:advisor="activeAdvisor"
:boot-loading="bootLoading"
:boot-error="bootError"
:profiles="profiles"
:profile-id="profileId"
:self-label="selfLabel"
:messages="messages"
:draft="draft"
:sending="sending"
:send-error="sendError"
:quota-exhausted="quotaExhausted"
:quota="quota"
@boot="boot"
@update:profile-id="profileId = $event"
@profile-change="onProfileChange"
@navigate="router.push($event)"
@update:draft="draft = $event"
@send="send"
@quota-refreshed="refreshQuota"
/>
</PageShell>
</template>
<script setup lang="ts">
import AskAdvisorChat from '../components/ask/AskAdvisorChat.vue'
import AskAdvisorPane from '../components/ask/AskAdvisorPane.vue'
import AskAiPane from '../components/ask/AskAiPane.vue'
import AskRails from '../components/ask/AskRails.vue'
import BackButton from '../components/BackButton.vue'
import HomeToolIcon from '../components/HomeToolIcon.vue'
import PageShell from '../components/PageShell.vue'
import { useAskPage } from '../composables/useAskPage'
const {
router,
rail,
setRail,
activeAdvisor,
bootLoading,
bootError,
profiles,
profileId,
selfLabel,
messages,
draft,
sending,
@@ -68,7 +104,7 @@ const {
quota,
onProfileChange,
pickScene,
askAdvisor,
openAdvisor,
send,
boot,
refreshQuota,
@@ -83,15 +119,28 @@ const {
gap: 10px;
padding-bottom: 4px;
}
.ask-top {
.head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 8px;
}
.ask-hero :deep(.back) {
margin-bottom: 0;
align-self: flex-start;
.head-text {
flex: 1;
min-width: 0;
}
.title {
font-family: var(--font-display);
font-size: 22px;
font-weight: 700;
letter-spacing: 0.06em;
color: var(--color-text-primary);
}
.sub {
margin-top: 2px;
font-size: 12px;
color: rgba(0, 0, 0, 0.38);
letter-spacing: 0.04em;
}
.clear-btn {
border: none;
@@ -104,4 +153,10 @@ const {
.clear-btn:disabled {
opacity: 0.4;
}
.adv-title {
margin: 0;
font-size: 14px;
font-weight: 600;
color: #666;
}
</style>