feat: 品牌更新 + 每日一题公开随机 + 面试计时器修复 + 反馈功能 + 营销文案
- 品牌名统一:职引 → 宇之然AI磁场,SEO 双名策略保留搜索关键词 - 每日一题:放开未登录访问,后端改用 \ 随机取题,灌入 23 题覆盖 8 个岗位 - 面试计时器:timerSeconds 改为 ref 修复 UI 不更新,完成自动停止,增加轮次提示 - 反馈功能:FeedbackModule 前后端完整实现 + admin 面板 + Playwright 测试 - 管理后台:所有列表分页改为 limit=10 + 加载更多按钮 - 录音 UX:修复异步竞态 + 点击开始/停止 + 空语音友好提示 + 发送按钮录音中禁用 - 营销文案:三端平台(公众号/知乎/小红书)推广方案 + 可复制 HTML 文件
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# 生产环境变量
|
||||
VITE_API_BASE_URL=https://zhiyinwx.yzrcloud.cn/api
|
||||
VITE_APP_NAME=职引·宇之然AI磁场
|
||||
VITE_APP_NAME=宇之然AI磁场
|
||||
VITE_APP_DESC=AI模拟面试·简历优化·面经题库·校招求职一站式平台
|
||||
VITE_PROD_API_HOST=https://zhiyinwx.yzrcloud.cn
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
|
||||
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" />
|
||||
<title>职引 - AI模拟面试 | 宇之然AI磁场 · 智能面试练习 · 简历优化 · 面经题库</title>
|
||||
<meta name="description" content="职引是宇之然AI磁场旗下的AI模拟面试平台,提供AI面试官模拟练习、简历智能诊断优化、大厂面经题库、实习推荐等一站式求职服务,帮助你在真实面试前充分准备。" />
|
||||
<meta name="keywords" content="职引,宇之然AI磁场,AI面试,模拟面试,面试练习,简历优化,求职辅导,AI模拟面试官,面试题库,面经,校招面试,实习面试,简历诊断,面试技巧,AI模拟面试官,大模型面试,校招准备" />
|
||||
<meta property="og:title" content="职引 - AI模拟面试平台 | 宇之然AI磁场" />
|
||||
<title>宇之然AI磁场(职引)- AI模拟面试 | 智能面试练习 · 简历优化 · 面经题库</title>
|
||||
<meta name="description" content="宇之然AI磁场(原职引)专注校招AI模拟面试,提供AI面试官模拟练习、简历智能诊断优化、大厂面经题库、面试复盘等一站式求职服务,帮助应届生在真实面试前充分准备。" />
|
||||
<meta name="keywords" content="宇之然AI磁场,职引,AI面试,模拟面试,面试练习,简历优化,求职辅导,AI模拟面试官,面试题库,面经,校招面试,实习面试,简历诊断,面试技巧,AI模拟面试官,大模型面试,校招准备" />
|
||||
<meta property="og:title" content="宇之然AI磁场(职引)- AI模拟面试平台 | 智能面试练习" />
|
||||
<meta property="og:description" content="AI驱动的一站式求职准备平台,涵盖AI模拟面试、简历优化、面经分享、实习推荐等核心功能。" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://zhiyin.yzrcloud.cn" />
|
||||
@@ -20,7 +20,7 @@
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebApplication",
|
||||
"name": "职引 - AI模拟面试",
|
||||
"name": "宇之然AI磁场 - AI模拟面试",
|
||||
"description": "AI驱动的校招求职准备平台,涵盖AI模拟面试、简历智能优化、大厂面经题库、面试复盘、AI择业顾问等一站式功能。",
|
||||
"applicationCategory": "EducationalApplication",
|
||||
"operatingSystem": "Web, WeChat Mini Program",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "职引 - AI模拟面试",
|
||||
"name": "宇之然AI磁场 - AI模拟面试",
|
||||
"appid": "__UNI__DEV__",
|
||||
"versionName": "1.0.16",
|
||||
"versionCode": "116",
|
||||
"description": "职引 - 宇之然AI磁场旗下AI模拟面试平台。AI面试官模拟练习、简历智能优化、大厂面经题库、面试复盘分析、AI择业顾问,一站式校招求职准备平台。",
|
||||
"description": "宇之然AI磁场(原职引)专注校招AI模拟面试。AI面试官模拟练习、简历智能优化、大厂面经题库、面试复盘分析、AI择业顾问,一站式校招求职准备平台。",
|
||||
"h5": {
|
||||
"title": "职引 - AI模拟面试 | 宇之然AI磁场",
|
||||
"title": "宇之然AI磁场(职引)- AI模拟面试 | 智能面试练习 · 简历优化 · 面经题库",
|
||||
"router": {
|
||||
"mode": "hash"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"pages": [
|
||||
{ "path": "pages/index/index", "style": { "navigationBarTitleText": "AI模拟面试 - 职引" } },
|
||||
{ "path": "pages/index/index", "style": { "navigationBarTitleText": "AI模拟面试" } },
|
||||
{ "path": "pages/interview/interview", "style": { "navigationBarTitleText": "AI模拟面试练习" } },
|
||||
{ "path": "pages/report/report", "style": { "navigationBarTitleText": "面试报告与评分" } },
|
||||
{ "path": "pages/member/member", "style": { "navigationBarTitleText": "引力值购买" } },
|
||||
@@ -12,7 +12,7 @@
|
||||
{ "path": "pages/user/user", "style": { "navigationBarTitleText": "个人中心" } },
|
||||
{ "path": "pages/resume/resume", "style": { "navigationBarTitleText": "简历诊断与优化" } },
|
||||
{ "path": "pages/internship/internship", "style": { "navigationBarTitleText": "热门岗位" } },
|
||||
{ "path": "pages/about/about", "style": { "navigationBarTitleText": "关于职引" } },
|
||||
{ "path": "pages/about/about", "style": { "navigationBarTitleText": "关于宇之然AI磁场" } },
|
||||
{ "path": "pages/admin/admin", "style": { "navigationBarTitleText": "管理后台" } },
|
||||
{ "path": "pages/result/result", "style": { "navigationBarTitleText": "优化结果" } },
|
||||
{ "path": "pages/agreement/agreement", "style": { "navigationBarTitleText": "用户协议" } },
|
||||
@@ -35,7 +35,7 @@
|
||||
},
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "职引 - AI模拟面试",
|
||||
"navigationBarTitleText": "宇之然AI磁场 - AI模拟面试",
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"backgroundColor": "#f5f6f7"
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="logo-area">
|
||||
<text class="logo">职引</text>
|
||||
<text class="logo">宇之然AI磁场</text>
|
||||
<text class="version">v{{ appVersion }}</text>
|
||||
</view>
|
||||
<view class="info-section">
|
||||
<text class="info-label">产品名称</text>
|
||||
<text class="info-value">职引 · 宇之然AI磁场</text>
|
||||
<text class="info-value">宇之然AI磁场(职引)</text>
|
||||
</view>
|
||||
<view class="info-section">
|
||||
<text class="info-label">开发团队</text>
|
||||
@@ -43,8 +43,8 @@ const goAgreement = () => uni.navigateTo({ url: '/pages/agreement/agreement' })
|
||||
const goPrivacy = () => uni.navigateTo({ url: '/pages/privacy/privacy' })
|
||||
// #ifdef MP-WEIXIN
|
||||
import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||
onShareAppMessage(() => ({ title: '职引 - AI模拟面试平台 | 宇之然AI磁场', path: '/pages/about/about' }))
|
||||
onShareTimeline(() => ({ title: '职引 - AI模拟面试平台 | 宇之然AI磁场' }))
|
||||
onShareAppMessage(() => ({ title: '宇之然AI磁场 - AI模拟面试平台 | 面试练习·简历优化·面经题库', path: '/pages/about/about' }))
|
||||
onShareTimeline(() => ({ title: '宇之然AI磁场 - AI模拟面试平台 | 面试练习·简历优化·面经题库' }))
|
||||
// #endif
|
||||
</script>
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<text class="tab" :class="{ active: tab === 'share' }" @click="switchTab('share')">分享</text>
|
||||
<text class="tab" :class="{ active: tab === 'positions' }" @click="switchTab('positions')">岗位</text>
|
||||
<text class="tab" :class="{ active: tab === 'analysis' }" @click="switchTab('analysis')">诊断</text>
|
||||
<text class="tab" :class="{ active: tab === 'feedback' }" @click="switchTab('feedback')">反馈</text>
|
||||
<text class="tab" :class="{ active: tab === 'admins' }" @click="switchTab('admins')">管理员</text>
|
||||
</view>
|
||||
|
||||
@@ -175,13 +176,12 @@
|
||||
<text class="admin-action-btn del" @click="deleteResume(r._id, r.title)">删除</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="load-more" v-if="resumeTotal > resumes.length" @click="loadMoreResumes">加载更多</text>
|
||||
</view>
|
||||
<text class="loading-text" v-if="resumeLoading">加载中...</text>
|
||||
<text class="empty-text" v-if="!resumeLoading && resumes.length === 0">暂无简历</text>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<!-- 订单 -->
|
||||
<view v-if="tab === 'orders'" class="section">
|
||||
<view class="tabs in-tab">
|
||||
@@ -490,6 +490,29 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 反馈 -->
|
||||
<view v-if="tab === 'feedback'" class="section">
|
||||
<view class="feedback-list" v-if="!feedbackLoading">
|
||||
<view class="feedback-row" v-for="f in feedbacks" :key="f._id">
|
||||
<view class="feedback-top">
|
||||
<text class="feedback-type" :class="f.type">{{ f.type === 'bug' ? '🐛问题' : f.type === 'praise' ? '👍点赞' : '💡建议' }}</text>
|
||||
<text class="feedback-status" :class="f.status">{{ f.status === 'resolved' ? '已处理' : '待处理' }}</text>
|
||||
<text class="time-label">{{ toBeijing(f.createdAt) }}</text>
|
||||
</view>
|
||||
<text class="feedback-content">{{ f.content }}</text>
|
||||
<view class="feedback-meta" v-if="f.contact">
|
||||
<text class="meta-tag">联系方式:{{ f.contact }}</text>
|
||||
</view>
|
||||
<view class="feedback-actions" v-if="f.status === 'pending'">
|
||||
<text class="resolve-btn" @click="resolveFeedback(f._id)">标记已处理</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="load-more" v-if="feedbackTotal > feedbacks.length" @click="loadMoreFeedback">加载更多</text>
|
||||
<text class="empty-text" v-if="feedbacks.length === 0 && !feedbackLoading">暂无反馈</text>
|
||||
</view>
|
||||
<text class="loading-text" v-if="feedbackLoading">加载中...</text>
|
||||
</view>
|
||||
|
||||
<!-- 管理员 -->
|
||||
<view v-if="tab === 'admins'" class="section">
|
||||
<view class="search-bar">
|
||||
@@ -625,6 +648,11 @@ const sprintPriceDisplay = computed(() => sprintPriceTemp.value.toFixed(1))
|
||||
const calcInterviewPrice = () => {
|
||||
// Handled in savePricing via growthPriceTemp / sprintPriceTemp
|
||||
}
|
||||
const feedbacks = ref([])
|
||||
const feedbackTotal = ref(0)
|
||||
const feedbackPage = ref(1)
|
||||
const feedbackLoading = ref(false)
|
||||
|
||||
const orders = ref([])
|
||||
const ordersTotal = ref(0)
|
||||
const ordersPage = ref(1)
|
||||
@@ -746,13 +774,14 @@ const switchTab = (t) => {
|
||||
if (t === 'orders') loadOrders()
|
||||
if (t === 'analysis') loadAnalysis()
|
||||
if (t === 'share') loadShareRecords()
|
||||
if (t === 'feedback') loadFeedback()
|
||||
}
|
||||
|
||||
const loadUsers = async () => {
|
||||
usersLoading.value = true
|
||||
usersPage.value = 1
|
||||
try {
|
||||
const res = await apiAdmin('/users?keyword=' + encodeURIComponent(userKeyword.value) + '&page=1&limit=20')
|
||||
const res = await apiAdmin('/users?keyword=' + encodeURIComponent(userKeyword.value) + '&page=1&limit=10')
|
||||
if (res.statusCode === 200) { users.value = res.data.users || []; usersTotal.value = res.data.total || 0 }
|
||||
} catch (e) { console.error(e) }
|
||||
finally { usersLoading.value = false }
|
||||
@@ -761,7 +790,7 @@ const loadUsers = async () => {
|
||||
const loadMoreUsers = async () => {
|
||||
usersPage.value++
|
||||
try {
|
||||
const res = await apiAdmin('/users?keyword=' + encodeURIComponent(userKeyword.value) + '&page=' + usersPage.value + '&limit=20')
|
||||
const res = await apiAdmin('/users?keyword=' + encodeURIComponent(userKeyword.value) + '&page=' + usersPage.value + '&limit=10')
|
||||
if (res.statusCode === 200) users.value = [...users.value, ...(res.data.users || [])]
|
||||
} catch (e) { console.error(e) }
|
||||
}
|
||||
@@ -770,7 +799,7 @@ const loadInterviews = async () => {
|
||||
ivLoading.value = true
|
||||
ivPage.value = 1
|
||||
try {
|
||||
let url = '/interviews?page=1&limit=20&keyword=' + encodeURIComponent(ivKeyword.value)
|
||||
let url = '/interviews?page=1&limit=10&keyword=' + encodeURIComponent(ivKeyword.value)
|
||||
const statusMap = ['', 'in_progress', 'completed']
|
||||
if (ivStatusFilter.value > 0) url += '&status=' + statusMap[ivStatusFilter.value]
|
||||
const res = await apiAdmin(url)
|
||||
@@ -782,7 +811,7 @@ const loadInterviews = async () => {
|
||||
const loadMoreInterviews = async () => {
|
||||
ivPage.value++
|
||||
try {
|
||||
let url = '/interviews?page=' + ivPage.value + '&limit=20&keyword=' + encodeURIComponent(ivKeyword.value)
|
||||
let url = '/interviews?page=' + ivPage.value + '&limit=10&keyword=' + encodeURIComponent(ivKeyword.value)
|
||||
const statusMap = ['', 'in_progress', 'completed']
|
||||
if (ivStatusFilter.value > 0) url += '&status=' + statusMap[ivStatusFilter.value]
|
||||
const res = await apiAdmin(url)
|
||||
@@ -790,17 +819,31 @@ const loadMoreInterviews = async () => {
|
||||
} catch (e) { console.error(e) }
|
||||
}
|
||||
|
||||
const resumePage = ref(1)
|
||||
const resumeTotal = ref(0)
|
||||
|
||||
const loadResumes = async () => {
|
||||
resumeLoading.value = true
|
||||
resumePage.value = 1
|
||||
try {
|
||||
let url = '/resumes?page=1&limit=20'
|
||||
let url = '/resumes?page=1&limit=10'
|
||||
if (resumeKeyword.value) url += '&keyword=' + encodeURIComponent(resumeKeyword.value)
|
||||
const res = await apiAdmin(url)
|
||||
if (res.statusCode === 200) resumes.value = res.data.list || []
|
||||
if (res.statusCode === 200) { resumes.value = res.data.list || []; resumeTotal.value = res.data.total || 0 }
|
||||
} catch (e) { console.error(e) }
|
||||
finally { resumeLoading.value = false }
|
||||
}
|
||||
|
||||
const loadMoreResumes = async () => {
|
||||
resumePage.value++
|
||||
try {
|
||||
let url = '/resumes?page=' + resumePage.value + '&limit=10'
|
||||
if (resumeKeyword.value) url += '&keyword=' + encodeURIComponent(resumeKeyword.value)
|
||||
const res = await apiAdmin(url)
|
||||
if (res.statusCode === 200) resumes.value = [...resumes.value, ...(res.data.list || [])]
|
||||
} catch (e) { console.error(e) }
|
||||
}
|
||||
|
||||
const deleteResume = (id, title) => {
|
||||
uni.showModal({
|
||||
title: '删除简历', content: `确定删除"${title}"?`,
|
||||
@@ -1048,6 +1091,39 @@ const loadShareVisitors = async () => {
|
||||
finally { shareLoading.value = false }
|
||||
}
|
||||
|
||||
const loadFeedback = async () => {
|
||||
feedbackLoading.value = true
|
||||
feedbackPage.value = 1
|
||||
try {
|
||||
const res = await apiAdmin('/feedback?page=1&limit=10')
|
||||
if (res.statusCode === 200) { feedbacks.value = res.data.list || []; feedbackTotal.value = res.data.total || 0 }
|
||||
} catch(e) { console.error(e) }
|
||||
finally { feedbackLoading.value = false }
|
||||
}
|
||||
|
||||
const loadMoreFeedback = async () => {
|
||||
feedbackPage.value++
|
||||
try {
|
||||
const res = await apiAdmin('/feedback?page=' + feedbackPage.value + '&limit=10')
|
||||
if (res.statusCode === 200) feedbacks.value = [...feedbacks.value, ...(res.data.list || [])]
|
||||
} catch(e) { console.error(e) }
|
||||
}
|
||||
|
||||
const resolveFeedback = async (id) => {
|
||||
try {
|
||||
const res = await uni.request({
|
||||
url: api('/feedback/' + id + '/resolve'),
|
||||
method: 'PATCH',
|
||||
header: { 'Authorization': 'Bearer ' + token(), 'Content-Type': 'application/json' },
|
||||
})
|
||||
if (res.statusCode === 200) {
|
||||
const f = feedbacks.value.find(x => x._id === id)
|
||||
if (f) f.status = 'resolved'
|
||||
uni.showToast({ title: '已标记处理', icon: 'success' })
|
||||
}
|
||||
} catch {}
|
||||
}
|
||||
|
||||
const openCreditModal = (user) => {
|
||||
creditGravity.value = user.gravity ?? 0
|
||||
creditModal.value = { show: true, user }
|
||||
@@ -1227,4 +1303,19 @@ onMounted(() => { doVerify() })
|
||||
.order-actions-bar { display: flex; gap: 8rpx; margin-top: 6rpx; }
|
||||
.admin-email { font-size: 20rpx; color: #6B7280; }
|
||||
.resume-user.email { font-size: 18rpx; color: #6B7280; }
|
||||
|
||||
.feedback-list { display: flex; flex-direction: column; gap: 8rpx; }
|
||||
.feedback-row { background: #FFF; padding: 20rpx; border-radius: var(--radius-sm); }
|
||||
.feedback-top { display: flex; align-items: center; gap: 8rpx; margin-bottom: 8rpx; }
|
||||
.feedback-type { font-size: 20rpx; font-weight: 600; }
|
||||
.feedback-type.bug { color: #EF4444; }
|
||||
.feedback-type.suggestion { color: var(--color-primary); }
|
||||
.feedback-type.praise { color: #059669; }
|
||||
.feedback-status { font-size: 18rpx; padding: 2rpx 10rpx; border-radius: var(--radius-round); }
|
||||
.feedback-status.pending { background: #FEF3C7; color: #D97706; }
|
||||
.feedback-status.resolved { background: #ECFDF5; color: #059669; }
|
||||
.feedback-content { font-size: 24rpx; color: var(--color-text); line-height: 1.6; display: block; margin-bottom: 6rpx; }
|
||||
.feedback-meta { display: flex; gap: 6rpx; }
|
||||
.feedback-actions { margin-top: 8rpx; }
|
||||
.resolve-btn { font-size: 22rpx; color: var(--color-primary); padding: 6rpx 16rpx; border: 2rpx solid var(--color-primary); border-radius: var(--radius-sm); }
|
||||
</style>
|
||||
|
||||
@@ -111,8 +111,8 @@ import { onShow } from '@dcloudio/uni-app'
|
||||
import { api } from '../../config'
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
onShareAppMessage(() => ({ title: '职引 - AI择业顾问 | 专业分析+岗位推荐', path: '/pages/career/career' }))
|
||||
onShareTimeline(() => ({ title: '职引 - AI择业顾问 | 专业分析+岗位推荐' }))
|
||||
onShareAppMessage(() => ({ title: '宇之然AI磁场 - AI择业顾问 | 专业分析+岗位推荐', path: '/pages/career/career' }))
|
||||
onShareTimeline(() => ({ title: '宇之然AI磁场 - AI择业顾问 | 专业分析+岗位推荐' }))
|
||||
// #endif
|
||||
|
||||
const grades = ['大一', '大二', '大三', '大四', '研一', '研二', '研三', '已毕业']
|
||||
|
||||
@@ -85,8 +85,8 @@ import { onLoad } from '@dcloudio/uni-app'
|
||||
import { api } from '../../config'
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
onShareAppMessage(() => ({ title: '职引 - 分享面经 | 共建大厂面试题库', path: '/pages/contribute/contribute' }))
|
||||
onShareTimeline(() => ({ title: '职引 - 分享面经 | 共建大厂面试题库' }))
|
||||
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 分享面经 | 共建大厂面试题库', path: '/pages/contribute/contribute' }))
|
||||
onShareTimeline(() => ({ title: '宇之然AI磁场 - 分享面经 | 共建大厂面试题库' }))
|
||||
// #endif
|
||||
|
||||
const interviewId = ref('')
|
||||
|
||||
@@ -75,8 +75,8 @@ const submitFeedback = async () => {
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||
onShareAppMessage(() => ({ title: '意见反馈 - 职引', path: '/pages/feedback/feedback' }))
|
||||
onShareTimeline(() => ({ title: '意见反馈 - 职引' }))
|
||||
onShareAppMessage(() => ({ title: '意见反馈 - 宇之然AI磁场', path: '/pages/feedback/feedback' }))
|
||||
onShareTimeline(() => ({ title: '意见反馈 - 宇之然AI磁场' }))
|
||||
// #endif
|
||||
</script>
|
||||
|
||||
|
||||
@@ -67,8 +67,8 @@ import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||
import { api } from '../../config'
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
onShareAppMessage(() => ({ title: '职引 - 面经与面试记录 | 大厂面经题库', path: '/pages/history/history' }))
|
||||
onShareTimeline(() => ({ title: '职引 - 面经与面试记录 | 大厂面经题库' }))
|
||||
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 面经与面试记录 | 大厂面经题库', path: '/pages/history/history' }))
|
||||
onShareTimeline(() => ({ title: '宇之然AI磁场 - 面经与面试记录 | 大厂面经题库' }))
|
||||
// #endif
|
||||
|
||||
const filter = ref('all')
|
||||
|
||||
@@ -100,15 +100,14 @@
|
||||
<text class="daily-action primary" @click="goInterview">模拟练习 →</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="daily-guest card" v-else-if="!userInfo" @click="goLogin">
|
||||
<view class="daily-guest card" v-else @click="refreshDaily">
|
||||
<view class="daily-guest-top">
|
||||
<text class="daily-guest-icon">🔒</text>
|
||||
<view class="daily-guest-body">
|
||||
<text class="daily-guest-title">登录后获取今日面试题</text>
|
||||
<text class="daily-guest-title">点击加载面试题目</text>
|
||||
<text class="daily-guest-desc">每日一道校招真题,持续积累面试经验</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="daily-action primary">立即登录 →</text>
|
||||
<text class="daily-action primary">换一题 →</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -194,8 +193,8 @@ import { onShow } from '@dcloudio/uni-app'
|
||||
import { api } from '../../config'
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
onShareAppMessage(() => ({ title: '职引 - AI模拟面试 | 校招求职一站式平台', path: '/pages/index/index' }))
|
||||
onShareTimeline(() => ({ title: '职引 - AI模拟面试 | 校招求职一站式平台' }))
|
||||
onShareAppMessage(() => ({ title: '宇之然AI磁场 - AI模拟面试 | 校招求职一站式平台', path: '/pages/index/index' }))
|
||||
onShareTimeline(() => ({ title: '宇之然AI磁场 - AI模拟面试 | 校招求职一站式平台' }))
|
||||
// #endif
|
||||
|
||||
const userInfo = ref(null)
|
||||
@@ -241,14 +240,12 @@ onMounted(async () => {
|
||||
// 每日一题
|
||||
try {
|
||||
const t = uni.getStorageSync('token')
|
||||
if (t) {
|
||||
const qres = await uni.request({
|
||||
url: api('/daily-question'), method: 'GET',
|
||||
header: { 'Authorization': `Bearer ${t}` }
|
||||
})
|
||||
if (qres.statusCode === 200 && qres.data) {
|
||||
dailyQuestion.value = qres.data
|
||||
}
|
||||
const qres = await uni.request({
|
||||
url: api('/daily-question'), method: 'GET',
|
||||
header: t ? { 'Authorization': `Bearer ${t}` } : {}
|
||||
})
|
||||
if (qres.statusCode === 200 && qres.data) {
|
||||
dailyQuestion.value = qres.data
|
||||
}
|
||||
} catch (e) { /* silent */ }
|
||||
|
||||
@@ -266,13 +263,11 @@ const refreshDaily = async () => {
|
||||
showAnswer.value = false
|
||||
try {
|
||||
const t = uni.getStorageSync('token')
|
||||
if (t) {
|
||||
const qres = await uni.request({
|
||||
url: api('/daily-question'), method: 'GET',
|
||||
header: { 'Authorization': `Bearer ${t}` }
|
||||
})
|
||||
if (qres.statusCode === 200 && qres.data) dailyQuestion.value = qres.data
|
||||
}
|
||||
const qres = await uni.request({
|
||||
url: api('/daily-question'), method: 'GET',
|
||||
header: t ? { 'Authorization': `Bearer ${t}` } : {}
|
||||
})
|
||||
if (qres.statusCode === 200 && qres.data) dailyQuestion.value = qres.data
|
||||
} catch (e) { /* silent */ }
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<view class="progress-fill" :style="{ width: progressPercent + '%' }"></view>
|
||||
</view>
|
||||
<text class="topbar-timer">⏱ {{ formatTime }}</text>
|
||||
<text class="topbar-round" v-if="answeredCount > 0">第 {{ answeredCount }} 题</text>
|
||||
</view>
|
||||
<view class="topbar-right">
|
||||
<text class="avatar-toggle" @click="avatarMode = !avatarMode">
|
||||
@@ -68,7 +69,7 @@
|
||||
<text class="mic-hint" v-if="isRecording">点击结束</text>
|
||||
</view>
|
||||
<view class="input-box">
|
||||
<textarea class="input-area" v-model="inputText" placeholder="点击🎤开始录音或输入回答..." :auto-height="true" :maxlength="2000" :disabled="aiLoading || isRecording" @confirm="sendAnswer" />
|
||||
<textarea class="input-area" v-model="inputText" placeholder="点击🎤开始语音面试或直接输入文字回答" :auto-height="true" :maxlength="2000" :disabled="aiLoading || isRecording" @confirm="sendAnswer" />
|
||||
</view>
|
||||
<view class="send-btn" :class="{ disabled: !inputText.trim() || isRecording || aiLoading }" @click="sendAnswer">
|
||||
<text class="send-icon">➤</text>
|
||||
@@ -121,7 +122,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, onMounted, onBeforeUnmount, nextTick } from 'vue'
|
||||
import { ref, computed, watch, onMounted, onBeforeUnmount, nextTick } from 'vue'
|
||||
// #ifdef MP-WEIXIN
|
||||
import { onLoad, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||
// #endif
|
||||
@@ -132,8 +133,8 @@ import { api, API_ENDPOINTS } from '../../config'
|
||||
import { checkAuth } from '../../utils/auth'
|
||||
import DigitalHuman from '../../components/digital-human.vue'
|
||||
// #ifdef MP-WEIXIN
|
||||
onShareAppMessage(() => ({ title: '职引 - AI模拟面试 | 数字人面试官实战练习', path: '/pages/interview/interview' }))
|
||||
onShareTimeline(() => ({ title: '职引 - AI模拟面试 | 数字人面试官实战练习' }))
|
||||
onShareAppMessage(() => ({ title: '宇之然AI磁场 - AI模拟面试 | 数字人面试官实战练习', path: '/pages/interview/interview' }))
|
||||
onShareTimeline(() => ({ title: '宇之然AI磁场 - AI模拟面试 | 数字人面试官实战练习' }))
|
||||
// #endif
|
||||
const messages = ref([{ role: 'ai', content: '你好!我是 AI 面试官,请选择岗位开始模拟面试!' }])
|
||||
const inputText = ref('')
|
||||
@@ -206,12 +207,12 @@ function initRecorder() {
|
||||
// #endif
|
||||
}
|
||||
|
||||
let timerSeconds = 0
|
||||
const timerSeconds = ref(0)
|
||||
let timerInterval = null
|
||||
let MAX_QUESTIONS = 10
|
||||
const progressPercent = computed(() => Math.min((answeredCount.value / MAX_QUESTIONS) * 100, 100))
|
||||
const formatTime = computed(() => {
|
||||
const m = Math.floor(timerSeconds / 60); const s = timerSeconds % 60
|
||||
const m = Math.floor(timerSeconds.value / 60); const s = timerSeconds.value % 60
|
||||
return `${String(m).padStart(2, '0')}:${String(s).padStart(2, '0')}`
|
||||
})
|
||||
const token = () => uni.getStorageSync('token') || ''
|
||||
@@ -247,13 +248,17 @@ const selectPosition = (pos) => {
|
||||
|
||||
onMounted(() => {
|
||||
initRecorder()
|
||||
timerInterval = setInterval(() => timerSeconds++, 1000)
|
||||
timerInterval = setInterval(() => timerSeconds.value++, 1000)
|
||||
if (!position.value) {
|
||||
loadPositions()
|
||||
showPositionPicker.value = true
|
||||
}
|
||||
})
|
||||
|
||||
watch(isComplete, (val) => {
|
||||
if (val) clearInterval(timerInterval)
|
||||
})
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
clearInterval(timerInterval)
|
||||
})
|
||||
@@ -463,6 +468,7 @@ function toggleRecord() {
|
||||
.progress-track { height: 6rpx; background: rgba(255,255,255,0.2); border-radius: 3rpx; overflow: hidden; }
|
||||
.progress-fill { height: 100%; background: #FFFFFF; border-radius: 3rpx; transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
|
||||
.topbar-timer { font-size: 20rpx; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; }
|
||||
.topbar-round { font-size: 18rpx; color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.15); padding: 2rpx 10rpx; border-radius: 16rpx; margin-left: 8rpx; }
|
||||
.topbar-right { width: 60rpx; flex-shrink: 0; text-align: center; }
|
||||
.avatar-toggle { font-size: 36rpx; cursor: pointer; }
|
||||
|
||||
|
||||
@@ -131,8 +131,8 @@ import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||
import { api } from '../../config'
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
onShareAppMessage(() => ({ title: '职引 - 登录注册 | AI模拟面试', path: '/pages/login/login' }))
|
||||
onShareTimeline(() => ({ title: '职引 - 登录注册 | AI模拟面试' }))
|
||||
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 登录注册 | AI模拟面试', path: '/pages/login/login' }))
|
||||
onShareTimeline(() => ({ title: '宇之然AI磁场 - 登录注册 | AI模拟面试' }))
|
||||
// #endif
|
||||
|
||||
const agreed = ref(false)
|
||||
|
||||
@@ -143,8 +143,8 @@ import { onShow } from '@dcloudio/uni-app'
|
||||
import { api } from '../../config'
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
onShareAppMessage(() => ({ title: '职引 - 进步轨迹 | 能力雷达+打卡日历', path: '/pages/progress/progress' }))
|
||||
onShareTimeline(() => ({ title: '职引 - 进步轨迹 | 能力雷达+打卡日历' }))
|
||||
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 进步轨迹 | 能力雷达+打卡日历', path: '/pages/progress/progress' }))
|
||||
onShareTimeline(() => ({ title: '宇之然AI磁场 - 进步轨迹 | 能力雷达+打卡日历' }))
|
||||
// #endif
|
||||
|
||||
const stats = ref({ completedInterviews: 0, avgScore: 0, streak: 0 })
|
||||
|
||||
@@ -79,8 +79,8 @@ import { onLoad } from '@dcloudio/uni-app'
|
||||
import { api } from '../../config'
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
onShareAppMessage(() => ({ title: '职引 - 面试报告与评分 | AI多维评分', path: '/pages/report/report' }))
|
||||
onShareTimeline(() => ({ title: '职引 - 面试报告与评分 | AI多维评分' }))
|
||||
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 面试报告与评分 | AI多维评分', path: '/pages/report/report' }))
|
||||
onShareTimeline(() => ({ title: '宇之然AI磁场 - 面试报告与评分 | AI多维评分' }))
|
||||
// #endif
|
||||
|
||||
const loading = ref(true)
|
||||
@@ -295,16 +295,16 @@ async function generateCard() {
|
||||
ctx.setFontSize(20)
|
||||
ctx.setFillStyle('#A5B4FC')
|
||||
ctx.setTextAlign('center')
|
||||
ctx.fillText('「职引」- AI 模拟面试助手', w / 2, 650)
|
||||
ctx.fillText('「宇之然AI磁场」- AI 模拟面试助手', w / 2, 650)
|
||||
ctx.setFontSize(16)
|
||||
ctx.setFillStyle('rgba(165,180,252,0.5)')
|
||||
ctx.fillText('扫码开始你的模拟面试 → 在微信搜索"职引"小程序', w / 2, 690)
|
||||
ctx.fillText('扫码开始你的模拟面试 → 在微信搜索"宇之然AI磁场"小程序', w / 2, 690)
|
||||
|
||||
// QR text hint
|
||||
ctx.setFillStyle('#FFFFFF')
|
||||
ctx.setFontSize(16)
|
||||
ctx.setTextAlign('center')
|
||||
ctx.fillText('在微信搜索「职引」小程序', w / 2, 760)
|
||||
ctx.fillText('在微信搜索「宇之然AI磁场」小程序', w / 2, 760)
|
||||
ctx.fillText('查看完整面试报告', w / 2, 790)
|
||||
|
||||
ctx.draw(false, async () => {
|
||||
|
||||
@@ -157,8 +157,8 @@ import { onLoad } from '@dcloudio/uni-app'
|
||||
import { api } from '../../config'
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
onShareAppMessage(() => ({ title: '职引 - 简历诊断与优化 | AI智能优化', path: '/pages/resume/resume' }))
|
||||
onShareTimeline(() => ({ title: '职引 - 简历诊断与优化 | AI智能优化' }))
|
||||
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 简历诊断与优化 | AI智能优化', path: '/pages/resume/resume' }))
|
||||
onShareTimeline(() => ({ title: '宇之然AI磁场 - 简历诊断与优化 | AI智能优化' }))
|
||||
// #endif
|
||||
|
||||
const currentTab = ref('list')
|
||||
@@ -296,7 +296,7 @@ const onFileSelected = async (e) => {
|
||||
const downloadResult = (format) => {
|
||||
if (!result.value) return
|
||||
const content = format === 'html'
|
||||
? `<!DOCTYPE html><html><meta charset="utf-8"><title>职引 - ${resultType.value === 'diagnosis' ? '诊断报告' : '优化结果'}</title><body>${JSON.stringify(result.value)}</body></html>`
|
||||
? `<!DOCTYPE html><html><meta charset="utf-8"><title>宇之然AI磁场 - ${resultType.value === 'diagnosis' ? '诊断报告' : '优化结果'}</title><body>${JSON.stringify(result.value)}</body></html>`
|
||||
: `${resultType.value === 'diagnosis' ? '=== 简历诊断报告 ===\n\n' : '=== 简历优化结果 ===\n\n'}${JSON.stringify(result.value, null, 2)}`
|
||||
const fileName = `简历${resultType.value === 'diagnosis' ? '诊断报告' : '优化结果'}.${format}`
|
||||
|
||||
|
||||
@@ -290,8 +290,8 @@ import { onShow } from '@dcloudio/uni-app'
|
||||
import { api } from '../../config'
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
onShareAppMessage(() => ({ title: '职引 - 面试复盘分析 | AI评析+口语分析', path: '/pages/review/review' }))
|
||||
onShareTimeline(() => ({ title: '职引 - 面试复盘分析 | AI评析+口语分析' }))
|
||||
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 面试复盘分析 | AI评析+口语分析', path: '/pages/review/review' }))
|
||||
onShareTimeline(() => ({ title: '宇之然AI磁场 - 面试复盘分析 | AI评析+口语分析' }))
|
||||
// #endif
|
||||
|
||||
const mode = ref('list')
|
||||
|
||||
@@ -156,12 +156,12 @@ const isWechat = ref(false)
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
onShareAppMessage(() => ({
|
||||
title: 'AI磁场·职引 — AI模拟面试+简历优化',
|
||||
title: '宇之然AI磁场 — AI模拟面试+简历优化',
|
||||
path: '/pages/share/share',
|
||||
imageUrl: 'https://zhiyinwx.yzrcloud.cn/static/share-card.png',
|
||||
}))
|
||||
onShareTimeline(() => ({
|
||||
title: 'AI磁场·职引 — AI模拟面试+简历优化',
|
||||
title: '宇之然AI磁场 — AI模拟面试+简历优化',
|
||||
imageUrl: 'https://zhiyinwx.yzrcloud.cn/static/share-card.png',
|
||||
}))
|
||||
// #endif
|
||||
@@ -183,7 +183,7 @@ async function loadData() {
|
||||
try {
|
||||
const res = await uni.request({
|
||||
url: api('/share/create'), method: 'POST',
|
||||
data: { type: 'app', title: '我在AI磁场·职引练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
||||
data: { type: 'app', title: '我在宇之然AI磁场练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
||||
header,
|
||||
})
|
||||
if (res.statusCode >= 200 && res.statusCode < 300) {
|
||||
@@ -215,7 +215,7 @@ async function shareToWechat() {
|
||||
const res = await uni.request({
|
||||
url: api('/share/create'),
|
||||
method: 'POST',
|
||||
data: { type: 'app', title: '我在AI磁场·职引练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
||||
data: { type: 'app', title: '我在宇之然AI磁场练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
||||
header: { Authorization: `Bearer ${token}` },
|
||||
})
|
||||
if (res.statusCode < 200 || res.statusCode >= 300) return
|
||||
@@ -225,7 +225,7 @@ async function shareToWechat() {
|
||||
|
||||
uni.shareAppMessage({
|
||||
provider: 'weixin',
|
||||
title: data.wechatShareInfo?.title || 'AI磁场·职引',
|
||||
title: data.wechatShareInfo?.title || '宇之然AI磁场',
|
||||
description: data.wechatShareInfo?.description || '',
|
||||
path,
|
||||
imageUrl: 'https://zhiyinwx.yzrcloud.cn/static/share-card.png',
|
||||
@@ -253,7 +253,7 @@ async function copyLink() {
|
||||
try {
|
||||
const res = await uni.request({
|
||||
url: api('/share/create'), method: 'POST',
|
||||
data: { type: 'app', title: '我在AI磁场·职引练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
||||
data: { type: 'app', title: '我在宇之然AI磁场练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
||||
header: { Authorization: `Bearer ${token}` },
|
||||
})
|
||||
if (res.statusCode < 200 || res.statusCode >= 300) {
|
||||
|
||||
@@ -213,9 +213,9 @@ onShareAppMessage(() => {
|
||||
const path = shareCodeRef.value
|
||||
? `/pages/user/user?share=${shareCodeRef.value}`
|
||||
: '/pages/user/user'
|
||||
return { title: '职引 - 个人中心 | AI模拟面试', path }
|
||||
return { title: '宇之然AI磁场 - 个人中心 | AI模拟面试', path }
|
||||
})
|
||||
onShareTimeline(() => ({ title: '职引 - 个人中心 | AI模拟面试' }))
|
||||
onShareTimeline(() => ({ title: '宇之然AI磁场 - 个人中心 | AI模拟面试' }))
|
||||
// #endif
|
||||
|
||||
const userInfo = ref({})
|
||||
@@ -249,7 +249,7 @@ async function preCreateShare() {
|
||||
try {
|
||||
const res = await uni.request({
|
||||
url: api('/share/create'), method: 'POST',
|
||||
data: { type: 'app', title: '我在AI磁场·职引练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
||||
data: { type: 'app', title: '我在宇之然AI磁场练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
||||
header: { Authorization: `Bearer ${token.value}` },
|
||||
})
|
||||
if (res.statusCode < 200 || res.statusCode >= 300) {
|
||||
|
||||
Reference in New Issue
Block a user