移动端页面缩放

This commit is contained in:
2026-05-26 10:26:46 +08:00
parent 5b00d02d72
commit 67dd441502
10 changed files with 242 additions and 6 deletions
+26
View File
@@ -157,6 +157,9 @@
</div>
</div>
</div>
<!-- 求职目标设置弹窗AI 对话 editPreference 工具触发 -->
<JobGoalDialog v-model="showJobGoalDialog" />
</div>
</template>
@@ -177,6 +180,7 @@ import type { JobListItem } from '@/api/jobs'
import { fetchResumeList } from '@/api/resume'
import { getIntentionCategoryNames, getIntentionRegionNames, getIntentionIndustryNames } from '@/utils/intention'
import AiThinkingIndicator from '@/components/tools/AiThinkingIndicator.vue'
import JobGoalDialog from '@/components/JobGoalDialog.vue'
/** 页面初始加载状态 */
const pageLoading = ref(true)
@@ -228,6 +232,9 @@ const isSending = ref(false)
/** 是否正在投递流程中(防止重复点击开始按钮) */
const isApplying = ref(false)
/** 是否显示求职目标设置弹窗(由 AI 对话 editPreference 工具触发) */
const showJobGoalDialog = ref(false)
/** 是否暂停投递 */
const isPaused = ref(false)
@@ -1170,6 +1177,25 @@ async function handleSendMessage() {
} catch {
console.error('[Agent] 推荐岗位请求失败')
}
} else if (tool === 'editPreference') {
/* AI 要求打开偏好设置弹窗 — 先插入 AI 回复消息,再弹出求职目标设置弹窗 */
const aiNow = Math.floor(Date.now() / 1000)
chatMessages.value.push({
id: Date.now() + 1,
type: 'assistant',
content: aiContent,
extra: '',
createTime: { seconds: aiNow, nanos: 0 },
})
try {
await addAgentChatMessage({ type: 'assistant', content: aiContent })
} catch { /* 静默 */ }
await nextTick()
scrollChatToBottom()
/* 打开求职目标设置弹窗 */
showJobGoalDialog.value = true
} else {
/* 普通 AI 回复 — 直接插入 assistant 消息 */
const aiNow = Math.floor(Date.now() / 1000)
+5 -4
View File
@@ -421,10 +421,11 @@
<div class="home-footer__col">
<h5>求职资源</h5>
<ul>
<li>求职指南</li>
<li>面试技巧</li>
<li>简历模版</li>
<li>行业分析</li>
<li><a href="https://www.jianshixingqiu.com/tutoring" target="_blank">一站式求职辅导</a></li>
<li><a href="https://www.jianshixingqiu.com/internship" target="_blank">名企实习</a></li>
<li><a href="https://www.jianshixingqiu.com/biunique" target="_blank">名企导师1V1</a></li>
<li><a href="https://www.jianshixingqiu.com/directTrain" target="_blank">Offer直通车</a></li>
<li><a href="https://www.jianshixingqiu.com/mentor" target="_blank">名企导师</a></li>
</ul>
</div>
<div class="home-footer__col">
+1 -1
View File
@@ -251,7 +251,7 @@
<div v-else-if="noMore && jobList.length > 0" class="jobs-page__loading-more">没有更多符合的职位了</div>
</div>
</div>
<AiChat :job-id="currentAskJobId" />
<AiChat :jobId="currentAskJobId" />
<!-- 职位不感兴趣反馈弹窗 -->
<JobDislikeDialog ref="dislikeDialogRef" v-model="showDislikeDialog" :job-id="dislikeJobId" @disliked="removeDislikedJob" />