Compare commits
21 Commits
v1.0.20
...
d3510505d6
| Author | SHA1 | Date | |
|---|---|---|---|
| d3510505d6 | |||
| 7049071b42 | |||
| e9036d2979 | |||
| 4180eae944 | |||
| 4e4e1ca271 | |||
| 50bb3c45ed | |||
| db1b3baa60 | |||
| df7d51d888 | |||
| 462884a321 | |||
| 48354e634b | |||
| 8152278b86 | |||
| b38b38d0c8 | |||
| 07b81f57a6 | |||
| 1422c04b2c | |||
| 656dfabb29 | |||
| fe688096a4 | |||
| 31703af4f2 | |||
| 4023c789b1 | |||
| a9c6b03c67 | |||
| d8e8bcc9a0 | |||
| 2230a95b45 |
@@ -22,3 +22,7 @@ coverage/
|
|||||||
!src/**/*.d.ts
|
!src/**/*.d.ts
|
||||||
/1/
|
/1/
|
||||||
playwright.config.d.ts
|
playwright.config.d.ts
|
||||||
|
|
||||||
|
# Tool artifacts
|
||||||
|
.omo/
|
||||||
|
.playwright-mcp/
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "zhiyin-backend",
|
"name": "zhiyin-backend",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "职引 - AI简历优化后端服务",
|
"description": "宇之然AI磁场 - AI简历优化后端服务",
|
||||||
"main": "dist/src/main.js",
|
"main": "dist/src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "nest start",
|
"start": "nest start",
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import { APP_GUARD } from '@nestjs/core'
|
|||||||
import { JwtStrategy } from './common/strategies/jwt.strategy'
|
import { JwtStrategy } from './common/strategies/jwt.strategy'
|
||||||
import { JwtAuthGuard } from './common/guards/jwt-auth.guard'
|
import { JwtAuthGuard } from './common/guards/jwt-auth.guard'
|
||||||
import { AiModule } from './modules/ai/ai.module'
|
import { AiModule } from './modules/ai/ai.module'
|
||||||
|
import { FeedbackModule } from './modules/feedback/feedback.module'
|
||||||
import { UserModule } from './modules/user/user.module'
|
import { UserModule } from './modules/user/user.module'
|
||||||
import { InterviewModule } from './modules/interview/interview.module'
|
import { InterviewModule } from './modules/interview/interview.module'
|
||||||
import { ResumeModule } from './modules/resume/resume.module'
|
import { ResumeModule } from './modules/resume/resume.module'
|
||||||
@@ -25,6 +26,7 @@ import { DailyQuestionModule } from './modules/daily-question/daily-question.mod
|
|||||||
import { ScheduleModule } from './modules/schedule/schedule.module'
|
import { ScheduleModule } from './modules/schedule/schedule.module'
|
||||||
import { TtsModule } from './modules/tts/tts.module'
|
import { TtsModule } from './modules/tts/tts.module'
|
||||||
import { PricingModule } from './modules/schemas/pricing.module'
|
import { PricingModule } from './modules/schemas/pricing.module'
|
||||||
|
import { GravityTransactionModule } from './modules/schemas/gravity-transaction.module'
|
||||||
import { ShareModule } from './modules/share/share.module'
|
import { ShareModule } from './modules/share/share.module'
|
||||||
import { InterviewReviewModule } from './modules/interview-review/interview-review.module'
|
import { InterviewReviewModule } from './modules/interview-review/interview-review.module'
|
||||||
import { CareerAdviceModule } from './modules/career-advice/career-advice.module'
|
import { CareerAdviceModule } from './modules/career-advice/career-advice.module'
|
||||||
@@ -46,6 +48,7 @@ const MONGODB_URI = process.env.MONGODB_URI || 'mongodb://localhost:27017/zhiyin
|
|||||||
}]),
|
}]),
|
||||||
NestScheduleModule.forRoot(),
|
NestScheduleModule.forRoot(),
|
||||||
UserModule,
|
UserModule,
|
||||||
|
FeedbackModule,
|
||||||
AiModule,
|
AiModule,
|
||||||
InterviewModule,
|
InterviewModule,
|
||||||
AnalyzeModule,
|
AnalyzeModule,
|
||||||
@@ -66,6 +69,7 @@ const MONGODB_URI = process.env.MONGODB_URI || 'mongodb://localhost:27017/zhiyin
|
|||||||
InterviewReviewModule,
|
InterviewReviewModule,
|
||||||
CareerAdviceModule,
|
CareerAdviceModule,
|
||||||
VirtualPaymentModule,
|
VirtualPaymentModule,
|
||||||
|
GravityTransactionModule,
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
JwtStrategy,
|
JwtStrategy,
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import { Resume, ResumeDocument } from '../resume/resume.schema'
|
|||||||
import { PaymentOrder, PaymentOrderDocument } from '../payment/payment-order.schema'
|
import { PaymentOrder, PaymentOrderDocument } from '../payment/payment-order.schema'
|
||||||
import { SiteConfig, SiteConfigDocument } from '../schemas/site-config.schema'
|
import { SiteConfig, SiteConfigDocument } from '../schemas/site-config.schema'
|
||||||
import { ShareRecord, ShareRecordDocument, ShareVisit, ShareVisitDocument } from '../share/share.schema'
|
import { ShareRecord, ShareRecordDocument, ShareVisit, ShareVisitDocument } from '../share/share.schema'
|
||||||
|
import { Feedback, FeedbackDocument } from '../feedback/feedback.schema'
|
||||||
import { QuotaService } from '../user/quota.service'
|
import { QuotaService } from '../user/quota.service'
|
||||||
import { PricingService } from '../schemas/pricing.service'
|
import { PricingService } from '../schemas/pricing.service'
|
||||||
import { WechatPayService } from '../payment/wechat-pay.service'
|
import { WechatPayService } from '../payment/wechat-pay.service'
|
||||||
@@ -27,6 +28,7 @@ export class AdminController {
|
|||||||
@InjectModel(ShareRecord.name) private shareModel: Model<ShareRecordDocument>,
|
@InjectModel(ShareRecord.name) private shareModel: Model<ShareRecordDocument>,
|
||||||
@InjectModel(ShareVisit.name) private shareVisitModel: Model<ShareVisitDocument>,
|
@InjectModel(ShareVisit.name) private shareVisitModel: Model<ShareVisitDocument>,
|
||||||
@InjectModel(Resume.name) private resumeModel: Model<ResumeDocument>,
|
@InjectModel(Resume.name) private resumeModel: Model<ResumeDocument>,
|
||||||
|
@InjectModel(Feedback.name) private feedbackModel: Model<FeedbackDocument>,
|
||||||
private quotaService: QuotaService,
|
private quotaService: QuotaService,
|
||||||
private pricingService: PricingService,
|
private pricingService: PricingService,
|
||||||
private wechatPay: WechatPayService,
|
private wechatPay: WechatPayService,
|
||||||
@@ -223,6 +225,16 @@ export class AdminController {
|
|||||||
return { list, total, page: +page }
|
return { list, total, page: +page }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Get('feedback')
|
||||||
|
async getFeedback(@Query('page') page = '1', @Query('limit') limit = '10') {
|
||||||
|
const skip = (Math.max(1, +page) - 1) * +limit
|
||||||
|
const [list, total] = await Promise.all([
|
||||||
|
this.feedbackModel.find().sort({ createdAt: -1 }).skip(skip).limit(+limit).lean().exec(),
|
||||||
|
this.feedbackModel.countDocuments().exec(),
|
||||||
|
])
|
||||||
|
return { list, total, page: +page }
|
||||||
|
}
|
||||||
|
|
||||||
@Get('resumes')
|
@Get('resumes')
|
||||||
async getResumes(@Query('page') page = '1', @Query('limit') limit = '20') {
|
async getResumes(@Query('page') page = '1', @Query('limit') limit = '20') {
|
||||||
const skip = (Math.max(1, +page) - 1) * +limit
|
const skip = (Math.max(1, +page) - 1) * +limit
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import { AdminGuard } from '../../common/guards/admin.guard'
|
|||||||
import { SiteConfig, SiteConfigSchema } from '../schemas/site-config.schema'
|
import { SiteConfig, SiteConfigSchema } from '../schemas/site-config.schema'
|
||||||
import { ShareRecord, ShareRecordSchema, ShareVisit, ShareVisitSchema } from '../share/share.schema'
|
import { ShareRecord, ShareRecordSchema, ShareVisit, ShareVisitSchema } from '../share/share.schema'
|
||||||
import { Resume, ResumeSchema } from '../resume/resume.schema'
|
import { Resume, ResumeSchema } from '../resume/resume.schema'
|
||||||
|
import { Feedback, FeedbackSchema } from '../feedback/feedback.schema'
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -21,6 +22,7 @@ import { Resume, ResumeSchema } from '../resume/resume.schema'
|
|||||||
{ name: ShareRecord.name, schema: ShareRecordSchema },
|
{ name: ShareRecord.name, schema: ShareRecordSchema },
|
||||||
{ name: ShareVisit.name, schema: ShareVisitSchema },
|
{ name: ShareVisit.name, schema: ShareVisitSchema },
|
||||||
{ name: Resume.name, schema: ResumeSchema },
|
{ name: Resume.name, schema: ResumeSchema },
|
||||||
|
{ name: Feedback.name, schema: FeedbackSchema },
|
||||||
]),
|
]),
|
||||||
UserModule,
|
UserModule,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,30 +1,30 @@
|
|||||||
import { Controller, Get, Param, Query, UseGuards } from '@nestjs/common'
|
import { Controller, Get, Param, Query } from '@nestjs/common'
|
||||||
import { InjectModel } from '@nestjs/mongoose'
|
import { InjectModel } from '@nestjs/mongoose'
|
||||||
import { Model } from 'mongoose'
|
import { Model } from 'mongoose'
|
||||||
import { JwtAuthGuard } from '../../common/guards/jwt-auth.guard'
|
import { Public } from '../../common/decorators/public.decorator'
|
||||||
import { DailyQuestion, DailyQuestionDocument } from '../schemas/daily-question.schema'
|
import { DailyQuestion, DailyQuestionDocument } from '../schemas/daily-question.schema'
|
||||||
|
|
||||||
@Controller('daily-question')
|
@Controller('daily-question')
|
||||||
@UseGuards(JwtAuthGuard)
|
|
||||||
export class DailyQuestionController {
|
export class DailyQuestionController {
|
||||||
constructor(
|
constructor(
|
||||||
@InjectModel(DailyQuestion.name) private dailyQuestionModel: Model<DailyQuestionDocument>,
|
@InjectModel(DailyQuestion.name) private dailyQuestionModel: Model<DailyQuestionDocument>,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
@Get()
|
@Get()
|
||||||
async getToday(@Query('position') position?: string) {
|
@Public()
|
||||||
const filter: any = {}
|
async getRandom(@Query('position') position?: string) {
|
||||||
if (position) filter.position = position
|
const pipeline: any[] = []
|
||||||
|
if (position) pipeline.push({ $match: { position } })
|
||||||
|
pipeline.push({ $sample: { size: 1 } })
|
||||||
|
|
||||||
const question = await this.dailyQuestionModel
|
const results = await this.dailyQuestionModel.aggregate(pipeline).exec()
|
||||||
.findOne(filter)
|
if (results.length > 0) return results[0]
|
||||||
.sort({ date: -1 })
|
|
||||||
.exec()
|
|
||||||
|
|
||||||
if (!question) {
|
// Fallback: try without position filter
|
||||||
// Return a default question if no specific one found
|
if (position) {
|
||||||
const defaultQ = await this.dailyQuestionModel.findOne().sort({ date: -1 }).exec()
|
const fallback = await this.dailyQuestionModel.aggregate([{ $sample: { size: 1 } }]).exec()
|
||||||
if (defaultQ) return defaultQ
|
if (fallback.length > 0) return fallback[0]
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
position: '通用',
|
position: '通用',
|
||||||
@@ -34,9 +34,6 @@ export class DailyQuestionController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return question
|
|
||||||
}
|
|
||||||
|
|
||||||
@Get('position/:position')
|
@Get('position/:position')
|
||||||
async getByPosition(@Param('position') position: string) {
|
async getByPosition(@Param('position') position: string) {
|
||||||
const questions = await this.dailyQuestionModel
|
const questions = await this.dailyQuestionModel
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
import { Controller, Post, Get, Patch, Param, Body, Query, UseGuards, HttpException, HttpStatus } from '@nestjs/common'
|
||||||
|
import { FeedbackService } from './feedback.service'
|
||||||
|
import { JwtAuthGuard } from '../../common/guards/jwt-auth.guard'
|
||||||
|
import { AdminGuard } from '../../common/guards/admin.guard'
|
||||||
|
import { CurrentUser } from '../../common/decorators/current-user.decorator'
|
||||||
|
|
||||||
|
@Controller('feedback')
|
||||||
|
export class FeedbackController {
|
||||||
|
constructor(private service: FeedbackService) {}
|
||||||
|
|
||||||
|
@UseGuards(JwtAuthGuard)
|
||||||
|
@Post()
|
||||||
|
async create(@CurrentUser('userId') userId: string, @Body() body: { type?: string; content: string; contact?: string }) {
|
||||||
|
if (!body.content || body.content.length < 2) {
|
||||||
|
throw new HttpException('请填写反馈内容', HttpStatus.BAD_REQUEST)
|
||||||
|
}
|
||||||
|
return this.service.create({ userId, type: body.type || 'suggestion', content: body.content, contact: body.contact })
|
||||||
|
}
|
||||||
|
|
||||||
|
@UseGuards(JwtAuthGuard, AdminGuard)
|
||||||
|
@Get()
|
||||||
|
async list(@Query('page') page?: string, @Query('limit') limit?: string) {
|
||||||
|
return this.service.findAll(Number(page) || 1, Number(limit) || 20)
|
||||||
|
}
|
||||||
|
|
||||||
|
@UseGuards(JwtAuthGuard, AdminGuard)
|
||||||
|
@Patch(':id/resolve')
|
||||||
|
async resolve(@Param('id') id: string) {
|
||||||
|
return this.service.markResolved(id)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import { Module } from '@nestjs/common'
|
||||||
|
import { MongooseModule } from '@nestjs/mongoose'
|
||||||
|
import { FeedbackController } from './feedback.controller'
|
||||||
|
import { FeedbackService } from './feedback.service'
|
||||||
|
import { Feedback, FeedbackSchema } from './feedback.schema'
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
imports: [MongooseModule.forFeature([{ name: Feedback.name, schema: FeedbackSchema }])],
|
||||||
|
controllers: [FeedbackController],
|
||||||
|
providers: [FeedbackService],
|
||||||
|
exports: [FeedbackService],
|
||||||
|
})
|
||||||
|
export class FeedbackModule {}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
|
||||||
|
import { Document, Types } from 'mongoose'
|
||||||
|
|
||||||
|
export type FeedbackDocument = Feedback & Document
|
||||||
|
|
||||||
|
@Schema({ timestamps: true })
|
||||||
|
export class Feedback {
|
||||||
|
@Prop({ type: Types.ObjectId, ref: 'User', required: true })
|
||||||
|
userId: Types.ObjectId
|
||||||
|
|
||||||
|
@Prop({ default: 'suggestion' })
|
||||||
|
type: string
|
||||||
|
|
||||||
|
@Prop({ required: true })
|
||||||
|
content: string
|
||||||
|
|
||||||
|
@Prop({ default: '' })
|
||||||
|
contact: string
|
||||||
|
|
||||||
|
@Prop({ default: 'pending' })
|
||||||
|
status: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export const FeedbackSchema = SchemaFactory.createForClass(Feedback)
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import { Injectable } from '@nestjs/common'
|
||||||
|
import { InjectModel } from '@nestjs/mongoose'
|
||||||
|
import { Model } from 'mongoose'
|
||||||
|
import { Feedback } from './feedback.schema'
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class FeedbackService {
|
||||||
|
constructor(@InjectModel(Feedback.name) private model: Model<Feedback>) {}
|
||||||
|
|
||||||
|
async create(data: { userId: string; type: string; content: string; contact?: string }) {
|
||||||
|
return this.model.create(data)
|
||||||
|
}
|
||||||
|
|
||||||
|
async findAll(page = 1, limit = 20) {
|
||||||
|
const skip = (page - 1) * limit
|
||||||
|
const items = await this.model.find().sort({ createdAt: -1 }).skip(skip).limit(limit).lean()
|
||||||
|
let populated: any[] = items
|
||||||
|
try {
|
||||||
|
populated = await this.model.populate(items, { path: 'userId', select: 'nickname phone email' })
|
||||||
|
} catch {}
|
||||||
|
const total = await this.model.countDocuments()
|
||||||
|
return { items: populated, total, page, limit }
|
||||||
|
}
|
||||||
|
|
||||||
|
async markResolved(id: string) {
|
||||||
|
return this.model.findByIdAndUpdate(id, { status: 'resolved' }, { new: true })
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -51,6 +51,7 @@ describe('PaymentController', () => {
|
|||||||
providers: [
|
providers: [
|
||||||
{ provide: getModelToken('User'), useValue: mockUserModel },
|
{ provide: getModelToken('User'), useValue: mockUserModel },
|
||||||
{ provide: getModelToken('PaymentOrder'), useValue: mockOrderModel },
|
{ provide: getModelToken('PaymentOrder'), useValue: mockOrderModel },
|
||||||
|
{ provide: getModelToken('GravityTransaction'), useValue: { create: jest.fn() } },
|
||||||
{ provide: WechatPayService, useValue: mockWechatPay },
|
{ provide: WechatPayService, useValue: mockWechatPay },
|
||||||
{ provide: QuotaService, useValue: mockQuotaService },
|
{ provide: QuotaService, useValue: mockQuotaService },
|
||||||
{ provide: PricingService, useValue: mockPricingService },
|
{ provide: PricingService, useValue: mockPricingService },
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import { WechatPayService } from './wechat-pay.service'
|
|||||||
import { QuotaService } from '../user/quota.service'
|
import { QuotaService } from '../user/quota.service'
|
||||||
import { PricingService } from '../schemas/pricing.service'
|
import { PricingService } from '../schemas/pricing.service'
|
||||||
import { Public } from '../../common/decorators/public.decorator'
|
import { Public } from '../../common/decorators/public.decorator'
|
||||||
|
import { GravityTransaction } from '../schemas/gravity-transaction.schema'
|
||||||
|
|
||||||
@Controller('payment')
|
@Controller('payment')
|
||||||
export class PaymentController {
|
export class PaymentController {
|
||||||
@@ -17,6 +18,7 @@ export class PaymentController {
|
|||||||
constructor(
|
constructor(
|
||||||
@InjectModel(User.name) private userModel: Model<UserDocument>,
|
@InjectModel(User.name) private userModel: Model<UserDocument>,
|
||||||
@InjectModel(PaymentOrder.name) private orderModel: Model<PaymentOrderDocument>,
|
@InjectModel(PaymentOrder.name) private orderModel: Model<PaymentOrderDocument>,
|
||||||
|
@InjectModel(GravityTransaction.name) private gravityTxModel: Model<GravityTransaction>,
|
||||||
private wechatPay: WechatPayService,
|
private wechatPay: WechatPayService,
|
||||||
private quotaService: QuotaService,
|
private quotaService: QuotaService,
|
||||||
private pricingService: PricingService,
|
private pricingService: PricingService,
|
||||||
@@ -35,7 +37,7 @@ export class PaymentController {
|
|||||||
const pricing = await this.pricingService.getConfig()
|
const pricing = await this.pricingService.getConfig()
|
||||||
const planCfg = pricing.plans[plan === 'sprint' ? 'sprint' : 'growth']
|
const planCfg = pricing.plans[plan === 'sprint' ? 'sprint' : 'growth']
|
||||||
const amount = planCfg.price
|
const amount = planCfg.price
|
||||||
const title = plan === 'sprint' ? '职引冲刺版月度会员' : '职引成长版月度会员'
|
const title = plan === 'sprint' ? '宇之然AI磁场冲刺版月度会员' : '宇之然AI磁场成长版月度会员'
|
||||||
const outTradeNo = `${plan === 'sprint' ? 'SPR' : 'VIP'}${Date.now()}${userId.slice(-6)}`
|
const outTradeNo = `${plan === 'sprint' ? 'SPR' : 'VIP'}${Date.now()}${userId.slice(-6)}`
|
||||||
const result = await this.wechatPay.nativePay(title, outTradeNo, amount)
|
const result = await this.wechatPay.nativePay(title, outTradeNo, amount)
|
||||||
|
|
||||||
@@ -104,7 +106,7 @@ export class PaymentController {
|
|||||||
this.logger.log(`[jsapi] pricing获取成功`)
|
this.logger.log(`[jsapi] pricing获取成功`)
|
||||||
const planCfg = pricing.plans[plan === 'sprint' ? 'sprint' : 'growth']
|
const planCfg = pricing.plans[plan === 'sprint' ? 'sprint' : 'growth']
|
||||||
const amount = planCfg.price
|
const amount = planCfg.price
|
||||||
const title = plan === 'sprint' ? '职引冲刺版月度会员' : '职引成长版月度会员'
|
const title = plan === 'sprint' ? '宇之然AI磁场冲刺版月度会员' : '宇之然AI磁场成长版月度会员'
|
||||||
const outTradeNo = `${plan === 'sprint' ? 'SPR' : 'VIP'}${Date.now()}${userId.slice(-6)}`
|
const outTradeNo = `${plan === 'sprint' ? 'SPR' : 'VIP'}${Date.now()}${userId.slice(-6)}`
|
||||||
this.logger.log(`[jsapi] 准备调用微信: outTradeNo=${outTradeNo}, amount=${amount}, openid=${openid}`)
|
this.logger.log(`[jsapi] 准备调用微信: outTradeNo=${outTradeNo}, amount=${amount}, openid=${openid}`)
|
||||||
let result: any
|
let result: any
|
||||||
@@ -226,6 +228,14 @@ export class PaymentController {
|
|||||||
user.gravity = planCfg.gravityPerMonth
|
user.gravity = planCfg.gravityPerMonth
|
||||||
user.freeOptimizeUsed = 3
|
user.freeOptimizeUsed = 3
|
||||||
await user.save()
|
await user.save()
|
||||||
|
await this.gravityTxModel.create({
|
||||||
|
userId: order.userId,
|
||||||
|
amount: planCfg.gravityPerMonth,
|
||||||
|
balance: planCfg.gravityPerMonth,
|
||||||
|
type: 'plan_set',
|
||||||
|
description: `开通${isSprint ? '冲刺版' : '成长版'}会员,获得 ${planCfg.gravityPerMonth} 引力值`,
|
||||||
|
refId: order.outTradeNo,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
private async activateProduct(order: PaymentOrderDocument) {
|
private async activateProduct(order: PaymentOrderDocument) {
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ export class ResumePdfService {
|
|||||||
<h1>${this.escapeHtml(params.title)}</h1>
|
<h1>${this.escapeHtml(params.title)}</h1>
|
||||||
<div class="subtitle">${params.targetPosition ? `目标岗位: ${this.escapeHtml(params.targetPosition)}` : ''}</div>
|
<div class="subtitle">${params.targetPosition ? `目标岗位: ${this.escapeHtml(params.targetPosition)}` : ''}</div>
|
||||||
<div class="content">${contentHtml}</div>
|
<div class="content">${contentHtml}</div>
|
||||||
<div class="footer">由 AI磁场·职引 生成</div>
|
<div class="footer">由 AI磁场·宇之然AI磁场 生成</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>`
|
</html>`
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { InjectModel } from '@nestjs/mongoose'
|
|||||||
import { Model } from 'mongoose'
|
import { Model } from 'mongoose'
|
||||||
import { User, UserDocument } from '../user/user.schema'
|
import { User, UserDocument } from '../user/user.schema'
|
||||||
import { PricingService } from '../schemas/pricing.service'
|
import { PricingService } from '../schemas/pricing.service'
|
||||||
|
import { GravityTransaction } from '../schemas/gravity-transaction.schema'
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class GravityTopUpService {
|
export class GravityTopUpService {
|
||||||
@@ -11,9 +12,24 @@ export class GravityTopUpService {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@InjectModel(User.name) private userModel: Model<UserDocument>,
|
@InjectModel(User.name) private userModel: Model<UserDocument>,
|
||||||
|
@InjectModel(GravityTransaction.name) private gravityTxModel: Model<GravityTransaction>,
|
||||||
private pricingService: PricingService,
|
private pricingService: PricingService,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
|
private async logBulkTopUp(userIds: string[], amount: number, type: string) {
|
||||||
|
const users = await this.userModel.find({ _id: { $in: userIds } }).select('gravity').exec()
|
||||||
|
const docs = users.map(u => ({
|
||||||
|
userId: u._id.toString(),
|
||||||
|
amount,
|
||||||
|
balance: u.gravity,
|
||||||
|
type,
|
||||||
|
description: `月度补给 ${amount} 引力值`,
|
||||||
|
}))
|
||||||
|
if (docs.length > 0) {
|
||||||
|
await this.gravityTxModel.insertMany(docs)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Cron(CronExpression.EVERY_DAY_AT_2AM)
|
@Cron(CronExpression.EVERY_DAY_AT_2AM)
|
||||||
async topUpVipGravity() {
|
async topUpVipGravity() {
|
||||||
this.logger.log('Topping up gravity for active VIP members...')
|
this.logger.log('Topping up gravity for active VIP members...')
|
||||||
@@ -22,28 +38,32 @@ export class GravityTopUpService {
|
|||||||
|
|
||||||
// 成长版 —— vipExpireAt 未过期
|
// 成长版 —— vipExpireAt 未过期
|
||||||
const growthPlan = pricing.plans.growth
|
const growthPlan = pricing.plans.growth
|
||||||
const growthResult = await this.userModel.updateMany(
|
const growthUsers = await this.userModel.find(
|
||||||
{
|
{ plan: 'growth', vipExpireAt: { $gt: now } },
|
||||||
plan: 'growth',
|
).select('_id').exec()
|
||||||
vipExpireAt: { $gt: now },
|
const growthIds = growthUsers.map(u => u._id.toString())
|
||||||
},
|
if (growthIds.length > 0) {
|
||||||
|
await this.userModel.updateMany(
|
||||||
|
{ _id: { $in: growthIds } },
|
||||||
{ $inc: { gravity: growthPlan.gravityPerMonth } },
|
{ $inc: { gravity: growthPlan.gravityPerMonth } },
|
||||||
).exec()
|
).exec()
|
||||||
if (growthResult.modifiedCount > 0) {
|
await this.logBulkTopUp(growthIds, growthPlan.gravityPerMonth, 'monthly_topup')
|
||||||
this.logger.log(`Growth plan: topped up ${growthResult.modifiedCount} users with ${growthPlan.gravityPerMonth} gravity each`)
|
this.logger.log(`Growth plan: topped up ${growthIds.length} users with ${growthPlan.gravityPerMonth} gravity each`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 冲刺版 —— sprintExpireAt 未过期
|
// 冲刺版 —— sprintExpireAt 未过期
|
||||||
const sprintPlan = pricing.plans.sprint
|
const sprintPlan = pricing.plans.sprint
|
||||||
const sprintResult = await this.userModel.updateMany(
|
const sprintUsers = await this.userModel.find(
|
||||||
{
|
{ plan: 'sprint', sprintExpireAt: { $gt: now } },
|
||||||
plan: 'sprint',
|
).select('_id').exec()
|
||||||
sprintExpireAt: { $gt: now },
|
const sprintIds = sprintUsers.map(u => u._id.toString())
|
||||||
},
|
if (sprintIds.length > 0) {
|
||||||
|
await this.userModel.updateMany(
|
||||||
|
{ _id: { $in: sprintIds } },
|
||||||
{ $inc: { gravity: sprintPlan.gravityPerMonth } },
|
{ $inc: { gravity: sprintPlan.gravityPerMonth } },
|
||||||
).exec()
|
).exec()
|
||||||
if (sprintResult.modifiedCount > 0) {
|
await this.logBulkTopUp(sprintIds, sprintPlan.gravityPerMonth, 'monthly_topup')
|
||||||
this.logger.log(`Sprint plan: topped up ${sprintResult.modifiedCount} users with ${sprintPlan.gravityPerMonth} gravity each`)
|
this.logger.log(`Sprint plan: topped up ${sprintIds.length} users with ${sprintPlan.gravityPerMonth} gravity each`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { Document } from 'mongoose'
|
|||||||
|
|
||||||
export type DailyQuestionDocument = DailyQuestion & Document
|
export type DailyQuestionDocument = DailyQuestion & Document
|
||||||
|
|
||||||
@Schema({ timestamps: true })
|
@Schema({ timestamps: true, collection: 'dailyquestions' })
|
||||||
export class DailyQuestion {
|
export class DailyQuestion {
|
||||||
@Prop({ required: true })
|
@Prop({ required: true })
|
||||||
position: string // 适用岗位
|
position: string // 适用岗位
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import { Module, Global } from '@nestjs/common'
|
||||||
|
import { MongooseModule } from '@nestjs/mongoose'
|
||||||
|
import { GravityTransaction, GravityTransactionSchema } from './gravity-transaction.schema'
|
||||||
|
|
||||||
|
@Global()
|
||||||
|
@Module({
|
||||||
|
imports: [MongooseModule.forFeature([{ name: GravityTransaction.name, schema: GravityTransactionSchema }])],
|
||||||
|
exports: [MongooseModule],
|
||||||
|
})
|
||||||
|
export class GravityTransactionModule {}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
|
||||||
|
import { Document } from 'mongoose'
|
||||||
|
|
||||||
|
export type GravityTransactionDocument = GravityTransaction & Document
|
||||||
|
|
||||||
|
export type GravityTransactionType =
|
||||||
|
| 'registration' // 注册赠送
|
||||||
|
| 'interview_deduct' // AI 面试消耗
|
||||||
|
| 'optimize_deduct' // 简历优化消耗
|
||||||
|
| 'download_deduct' // 简历下载消耗
|
||||||
|
| 'purchase' // 充值购买
|
||||||
|
| 'monthly_topup' // 月度补给
|
||||||
|
| 'migration' // 旧额度迁移
|
||||||
|
| 'plan_set' // 套餐设置
|
||||||
|
| 'share' // 分享所得
|
||||||
|
| 'contribution' // 面经贡献奖励
|
||||||
|
| 'share_credits_fallback' // 分享币后备抵扣
|
||||||
|
| 'admin_adjust' // 管理员调整
|
||||||
|
|
||||||
|
@Schema({ timestamps: true })
|
||||||
|
export class GravityTransaction {
|
||||||
|
@Prop({ required: true, index: true })
|
||||||
|
userId: string
|
||||||
|
|
||||||
|
@Prop({ required: true })
|
||||||
|
amount: number // 变动数量(正=增加,负=减少)
|
||||||
|
|
||||||
|
@Prop({ required: true })
|
||||||
|
balance: number // 变动后余额
|
||||||
|
|
||||||
|
@Prop({ required: true })
|
||||||
|
type: GravityTransactionType
|
||||||
|
|
||||||
|
@Prop({ default: '' })
|
||||||
|
description: string // 描述(如 "AI 模拟面试消耗")
|
||||||
|
|
||||||
|
@Prop()
|
||||||
|
refId?: string // 关联 ID(订单号、面试ID 等)
|
||||||
|
}
|
||||||
|
|
||||||
|
export const GravityTransactionSchema = SchemaFactory.createForClass(GravityTransaction)
|
||||||
|
|
||||||
|
GravityTransactionSchema.index({ userId: 1, createdAt: -1 })
|
||||||
@@ -27,7 +27,7 @@ export class ShareService {
|
|||||||
shareCode,
|
shareCode,
|
||||||
type: body.type || 'app',
|
type: body.type || 'app',
|
||||||
refId: body.refId || '',
|
refId: body.refId || '',
|
||||||
title: body.title || '我在职引发现了好东西',
|
title: body.title || '我在宇之然AI磁场发现了好东西',
|
||||||
description: body.description || '快来一起体验吧',
|
description: body.description || '快来一起体验吧',
|
||||||
})
|
})
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -46,29 +46,61 @@ export class TtsController {
|
|||||||
const ext = file.originalname ? path.extname(file.originalname) || '.aac' : '.aac'
|
const ext = file.originalname ? path.extname(file.originalname) || '.aac' : '.aac'
|
||||||
const dest = path.join(uploadDir, file.filename + ext)
|
const dest = path.join(uploadDir, file.filename + ext)
|
||||||
fs.renameSync(file.path, dest)
|
fs.renameSync(file.path, dest)
|
||||||
|
|
||||||
|
// 拒绝损坏/空音频文件,避免 whisper 调用 ffmpeg 解码失败刷错误日志
|
||||||
|
const stat = fs.statSync(dest)
|
||||||
|
if (!stat.size || stat.size < 500) {
|
||||||
|
this.logger.warn(`ASR: empty audio upload (size=${stat.size}), ext=${ext}`)
|
||||||
|
try { fs.unlinkSync(dest) } catch {}
|
||||||
|
return { text: '' }
|
||||||
|
}
|
||||||
|
|
||||||
|
let wavPath = dest
|
||||||
|
if (ext.toLowerCase() !== '.wav') {
|
||||||
|
const potentialWav = dest.replace(/\.[^.]+$/, '.wav')
|
||||||
try {
|
try {
|
||||||
|
execSync(`ffmpeg -y -i "${dest}" -ar 16000 -ac 1 -c:a pcm_s16le "${potentialWav}"`, {
|
||||||
|
timeout: 30000, encoding: 'utf8', stdio: 'pipe',
|
||||||
|
})
|
||||||
|
wavPath = potentialWav
|
||||||
|
} catch (e: any) {
|
||||||
|
this.logger.warn(`FFmpeg conversion failed: ${e.message}, using original format`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
let text = ''
|
||||||
if (process.env.OPENAI_API_KEY) {
|
if (process.env.OPENAI_API_KEY) {
|
||||||
|
try {
|
||||||
const result = execSync(
|
const result = execSync(
|
||||||
`curl -s -X POST https://api.openai.com/v1/audio/transcriptions \
|
`curl -s -X POST https://api.openai.com/v1/audio/transcriptions \
|
||||||
-H "Authorization: Bearer ${process.env.OPENAI_API_KEY}" \
|
-H "Authorization: Bearer ${process.env.OPENAI_API_KEY}" \
|
||||||
-H "Content-Type: multipart/form-data" \
|
-H "Content-Type: multipart/form-data" \
|
||||||
-F "file=@${dest}" \
|
-F "file=@${wavPath}" \
|
||||||
-F "model=whisper-1" \
|
-F "model=whisper-1" \
|
||||||
-F "language=zh"`,
|
-F "language=zh"`,
|
||||||
{ encoding: 'utf8', timeout: 30000 },
|
{ encoding: 'utf8', timeout: 30000 },
|
||||||
)
|
)
|
||||||
const parsed = JSON.parse(result)
|
const parsed = JSON.parse(result)
|
||||||
if (parsed.text) return { text: parsed.text.trim() }
|
if (parsed.text) text = parsed.text.trim()
|
||||||
|
} catch (e: any) {
|
||||||
|
this.logger.warn(`OpenAI ASR failed, falling back to local: ${e.message}`)
|
||||||
}
|
}
|
||||||
const whisperResult = execSync(`python3 -c 'import sys, whisper; model = whisper.load_model("tiny"); print(model.transcribe(sys.argv[1], language="zh")["text"].strip())' "${dest}"`, { encoding: 'utf8', timeout: 60000 })
|
|
||||||
if (whisperResult && whisperResult.trim()) {
|
|
||||||
return { text: whisperResult.trim() }
|
|
||||||
}
|
}
|
||||||
|
if (!text) {
|
||||||
|
const whisperResult = execSync(
|
||||||
|
`python3 -c 'import sys, whisper; model = whisper.load_model("tiny"); print(model.transcribe(sys.argv[1], language="zh")["text"].strip())' "${wavPath}"`,
|
||||||
|
{ encoding: 'utf8', timeout: 60000 },
|
||||||
|
)
|
||||||
|
if (whisperResult?.trim()) text = whisperResult.trim()
|
||||||
|
}
|
||||||
|
return { text }
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
this.logger.error(`ASR failed: ${e?.message || e}`)
|
this.logger.error(`ASR failed: ${e?.message || e}`)
|
||||||
}
|
|
||||||
// 清理临时文件
|
|
||||||
try { fs.unlinkSync(dest) } catch {}
|
|
||||||
return { text: '' }
|
return { text: '' }
|
||||||
|
} finally {
|
||||||
|
try { if (dest) fs.unlinkSync(dest) } catch {}
|
||||||
|
try { if (wavPath && wavPath !== dest) fs.unlinkSync(wavPath) } catch {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { InjectModel } from '@nestjs/mongoose'
|
|||||||
import { Model } from 'mongoose'
|
import { Model } from 'mongoose'
|
||||||
import { User, UserDocument } from './user.schema'
|
import { User, UserDocument } from './user.schema'
|
||||||
import { PricingService } from '../schemas/pricing.service'
|
import { PricingService } from '../schemas/pricing.service'
|
||||||
|
import { GravityTransaction, GravityTransactionType } from '../schemas/gravity-transaction.schema'
|
||||||
|
|
||||||
const FREE_OPTIMIZE_LIMIT = 3
|
const FREE_OPTIMIZE_LIMIT = 3
|
||||||
|
|
||||||
@@ -12,9 +13,16 @@ export class QuotaService {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@InjectModel(User.name) private userModel: Model<UserDocument>,
|
@InjectModel(User.name) private userModel: Model<UserDocument>,
|
||||||
|
@InjectModel(GravityTransaction.name) private gravityTxModel: Model<GravityTransaction>,
|
||||||
private pricingService: PricingService,
|
private pricingService: PricingService,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
|
private async logTransaction(userId: string, amount: number, type: GravityTransactionType, description: string, refId?: string) {
|
||||||
|
const u = await this.userModel.findById(userId).select('gravity').exec()
|
||||||
|
const balance = u?.gravity ?? 0
|
||||||
|
await this.gravityTxModel.create({ userId, amount, balance, type, description, refId })
|
||||||
|
}
|
||||||
|
|
||||||
/** 仅检查面试引力值是否充足,不扣除(用于先 AI 后扣款模式) */
|
/** 仅检查面试引力值是否充足,不扣除(用于先 AI 后扣款模式) */
|
||||||
async checkInterview(userId: string): Promise<number> {
|
async checkInterview(userId: string): Promise<number> {
|
||||||
const user = await this.userModel.findById(userId).exec()
|
const user = await this.userModel.findById(userId).exec()
|
||||||
@@ -106,19 +114,23 @@ export class QuotaService {
|
|||||||
|
|
||||||
/** 从 gravity 扣除,后备从 shareCredits 扣除(兼容旧数据) */
|
/** 从 gravity 扣除,后备从 shareCredits 扣除(兼容旧数据) */
|
||||||
private async deductGravityOrFallback(userId: string, cost: number): Promise<boolean> {
|
private async deductGravityOrFallback(userId: string, cost: number): Promise<boolean> {
|
||||||
// 主路径:gravity
|
|
||||||
const gravResult = await this.userModel.findOneAndUpdate(
|
const gravResult = await this.userModel.findOneAndUpdate(
|
||||||
{ _id: userId, gravity: { $gte: cost } },
|
{ _id: userId, gravity: { $gte: cost } },
|
||||||
{ $inc: { gravity: -cost } },
|
{ $inc: { gravity: -cost } },
|
||||||
).exec()
|
).exec()
|
||||||
if (gravResult) return true
|
if (gravResult) {
|
||||||
|
await this.logTransaction(userId, -cost, 'interview_deduct', `AI 模拟面试消耗 ${cost} 引力值`)
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
// 后备:旧 shareCredits
|
|
||||||
const shareResult = await this.userModel.findOneAndUpdate(
|
const shareResult = await this.userModel.findOneAndUpdate(
|
||||||
{ _id: userId, shareCredits: { $gt: 0 } },
|
{ _id: userId, shareCredits: { $gt: 0 } },
|
||||||
{ $inc: { shareCredits: -1 } },
|
{ $inc: { shareCredits: -1 } },
|
||||||
).exec()
|
).exec()
|
||||||
if (shareResult) return true
|
if (shareResult) {
|
||||||
|
await this.logTransaction(userId, 0, 'share_credits_fallback', '分享币后备抵扣 1 次')
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@@ -131,6 +143,7 @@ export class QuotaService {
|
|||||||
{ $inc: { gravity: amount } },
|
{ $inc: { gravity: amount } },
|
||||||
).exec()
|
).exec()
|
||||||
if (!result) throw new HttpException('用户不存在', HttpStatus.NOT_FOUND)
|
if (!result) throw new HttpException('用户不存在', HttpStatus.NOT_FOUND)
|
||||||
|
await this.logTransaction(userId, amount, 'purchase', `充值获得 ${amount} 引力值`)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 设置 VIP 套餐引力值额度 */
|
/** 设置 VIP 套餐引力值额度 */
|
||||||
@@ -142,6 +155,7 @@ export class QuotaService {
|
|||||||
},
|
},
|
||||||
}).exec()
|
}).exec()
|
||||||
if (!result) throw new HttpException('用户不存在', HttpStatus.NOT_FOUND)
|
if (!result) throw new HttpException('用户不存在', HttpStatus.NOT_FOUND)
|
||||||
|
await this.logTransaction(userId, gravityAmount, 'plan_set', `套餐开通,获得 ${gravityAmount} 引力值`)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 是否为非会员用户授予初始引力值 */
|
/** 是否为非会员用户授予初始引力值 */
|
||||||
@@ -149,6 +163,7 @@ export class QuotaService {
|
|||||||
await this.userModel.findByIdAndUpdate(userId, {
|
await this.userModel.findByIdAndUpdate(userId, {
|
||||||
$set: { interviewCredits: 1, gravity: 5 },
|
$set: { interviewCredits: 1, gravity: 5 },
|
||||||
}).exec()
|
}).exec()
|
||||||
|
await this.logTransaction(userId, 5, 'registration', '注册赠送 5 引力值')
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 判断是否有旧额度需要迁移 */
|
/** 判断是否有旧额度需要迁移 */
|
||||||
@@ -180,5 +195,6 @@ export class QuotaService {
|
|||||||
shareCredits: 0,
|
shareCredits: 0,
|
||||||
},
|
},
|
||||||
}).exec()
|
}).exec()
|
||||||
|
await this.logTransaction(userId, total, 'migration', `旧额度迁移,获得 ${total} 引力值`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Controller, Post, Get, Put, Body, Req, HttpCode, HttpStatus, UseGuards } from '@nestjs/common'
|
import { Controller, Post, Get, Put, Query, Body, Req, HttpCode, HttpStatus, UseGuards } from '@nestjs/common'
|
||||||
import { UserService } from './user.service'
|
import { UserService } from './user.service'
|
||||||
import { Public } from '../../common/decorators/public.decorator'
|
import { Public } from '../../common/decorators/public.decorator'
|
||||||
import { CurrentUser } from '../../common/decorators/current-user.decorator'
|
import { CurrentUser } from '../../common/decorators/current-user.decorator'
|
||||||
@@ -88,4 +88,13 @@ export class UserController {
|
|||||||
async setPassword(@CurrentUser('userId') userId: string, @Body('password') password: string) {
|
async setPassword(@CurrentUser('userId') userId: string, @Body('password') password: string) {
|
||||||
return this.userService.setPassword(userId, password)
|
return this.userService.setPassword(userId, password)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Get('gravity-transactions')
|
||||||
|
async getGravityTransactions(
|
||||||
|
@CurrentUser('userId') userId: string,
|
||||||
|
@Query('page') page = '1',
|
||||||
|
@Query('limit') limit = '20',
|
||||||
|
) {
|
||||||
|
return this.userService.getGravityTransactions(userId, parseInt(page), parseInt(limit))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { JwtService } from '@nestjs/jwt'
|
|||||||
import { HttpException } from '@nestjs/common'
|
import { HttpException } from '@nestjs/common'
|
||||||
import { UserService } from './user.service'
|
import { UserService } from './user.service'
|
||||||
import { EmailService } from '../email/email.service'
|
import { EmailService } from '../email/email.service'
|
||||||
|
import { PricingService } from '../schemas/pricing.service'
|
||||||
|
|
||||||
describe('UserService', () => {
|
describe('UserService', () => {
|
||||||
let service: UserService
|
let service: UserService
|
||||||
@@ -44,8 +45,10 @@ describe('UserService', () => {
|
|||||||
providers: [
|
providers: [
|
||||||
UserService,
|
UserService,
|
||||||
{ provide: getModelToken('User'), useValue: mockUserModel },
|
{ provide: getModelToken('User'), useValue: mockUserModel },
|
||||||
|
{ provide: getModelToken('GravityTransaction'), useValue: { create: jest.fn() } },
|
||||||
{ provide: JwtService, useValue: mockJwtService },
|
{ provide: JwtService, useValue: mockJwtService },
|
||||||
{ provide: EmailService, useValue: mockEmailService },
|
{ provide: EmailService, useValue: mockEmailService },
|
||||||
|
{ provide: PricingService, useValue: { getConfig: jest.fn().mockResolvedValue({ registrationGravity: 50, gravityRates: { interviewPerUse: 5, optimizePerUse: 3, downloadPerUse: 2 }, plans: { growth: { gravityPerMonth: 80 }, sprint: { gravityPerMonth: 200 } } }) } },
|
||||||
],
|
],
|
||||||
}).compile()
|
}).compile()
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,11 @@
|
|||||||
import { Injectable, HttpException, HttpStatus, Logger } from '@nestjs/common'
|
import { Injectable, HttpException, HttpStatus, Logger } from '@nestjs/common'
|
||||||
import { InjectModel } from '@nestjs/mongoose'
|
import { InjectModel } from '@nestjs/mongoose'
|
||||||
import { Model } from 'mongoose'
|
import { Model } from 'mongoose'
|
||||||
import { JwtService } from '@nestjs/jwt'
|
|
||||||
import { User, UserDocument } from './user.schema'
|
import { User, UserDocument } from './user.schema'
|
||||||
|
import { JwtService } from '@nestjs/jwt'
|
||||||
import { EmailService } from '../email/email.service'
|
import { EmailService } from '../email/email.service'
|
||||||
import { PricingService } from '../schemas/pricing.service'
|
import { PricingService } from '../schemas/pricing.service'
|
||||||
|
import { GravityTransaction, GravityTransactionType } from '../schemas/gravity-transaction.schema'
|
||||||
|
|
||||||
/** 通过 IP 查询粗略地理位置(ip-api.com 免费接口) */
|
/** 通过 IP 查询粗略地理位置(ip-api.com 免费接口) */
|
||||||
async function lookupIpLocation(ip: string): Promise<string> {
|
async function lookupIpLocation(ip: string): Promise<string> {
|
||||||
@@ -29,11 +30,18 @@ export class UserService {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@InjectModel(User.name) private userModel: Model<UserDocument>,
|
@InjectModel(User.name) private userModel: Model<UserDocument>,
|
||||||
|
@InjectModel(GravityTransaction.name) private gravityTxModel: Model<GravityTransaction>,
|
||||||
private jwtService: JwtService,
|
private jwtService: JwtService,
|
||||||
private emailService: EmailService,
|
private emailService: EmailService,
|
||||||
private pricingService: PricingService,
|
private pricingService: PricingService,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
|
private async logTransaction(userId: string, amount: number, type: GravityTransactionType, description: string) {
|
||||||
|
const u = await this.userModel.findById(userId).select('gravity').exec()
|
||||||
|
const balance = u?.gravity ?? 0
|
||||||
|
await this.gravityTxModel.create({ userId, amount, balance, type, description })
|
||||||
|
}
|
||||||
|
|
||||||
async sendCode(phone: string) {
|
async sendCode(phone: string) {
|
||||||
const code = process.env.NODE_ENV === 'production'
|
const code = process.env.NODE_ENV === 'production'
|
||||||
? String(Math.floor(100000 + Math.random() * 900000))
|
? String(Math.floor(100000 + Math.random() * 900000))
|
||||||
@@ -59,11 +67,17 @@ export class UserService {
|
|||||||
codeStore.delete(phone)
|
codeStore.delete(phone)
|
||||||
|
|
||||||
let user = await this.userModel.findOne({ phone }).exec()
|
let user = await this.userModel.findOne({ phone }).exec()
|
||||||
|
let isNew = false
|
||||||
if (!user) {
|
if (!user) {
|
||||||
|
isNew = true
|
||||||
user = await this.userModel.create({ phone, nickname: `用户${phone.slice(-4)}`, gravity: (await this.pricingService.getConfig()).registrationGravity })
|
user = await this.userModel.create({ phone, nickname: `用户${phone.slice(-4)}`, gravity: (await this.pricingService.getConfig()).registrationGravity })
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.recordLogin(user._id.toString(), ip)
|
await this.recordLogin(user._id.toString(), ip)
|
||||||
|
if (isNew) {
|
||||||
|
const amount = (await this.pricingService.getConfig()).registrationGravity
|
||||||
|
await this.logTransaction(user._id.toString(), amount, 'registration', '注册赠送引力值')
|
||||||
|
}
|
||||||
return this.generateAuthResponse(user)
|
return this.generateAuthResponse(user)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -95,11 +109,17 @@ export class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let user = await this.userModel.findOne({ wxOpenid: openid }).exec()
|
let user = await this.userModel.findOne({ wxOpenid: openid }).exec()
|
||||||
|
let isNew = false
|
||||||
if (!user) {
|
if (!user) {
|
||||||
|
isNew = true
|
||||||
user = await this.userModel.create({ wxOpenid: openid, nickname: '微信用户', gravity: (await this.pricingService.getConfig()).registrationGravity })
|
user = await this.userModel.create({ wxOpenid: openid, nickname: '微信用户', gravity: (await this.pricingService.getConfig()).registrationGravity })
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.recordLogin(user._id.toString(), ip)
|
await this.recordLogin(user._id.toString(), ip)
|
||||||
|
if (isNew) {
|
||||||
|
const amount = (await this.pricingService.getConfig()).registrationGravity
|
||||||
|
await this.logTransaction(user._id.toString(), amount, 'registration', '注册赠送引力值')
|
||||||
|
}
|
||||||
return this.generateAuthResponse(user)
|
return this.generateAuthResponse(user)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -175,6 +195,10 @@ export class UserService {
|
|||||||
user = await this.userModel.create({ email, nickname: nick, remaining: 0, gravity: (await this.pricingService.getConfig()).registrationGravity })
|
user = await this.userModel.create({ email, nickname: nick, remaining: 0, gravity: (await this.pricingService.getConfig()).registrationGravity })
|
||||||
}
|
}
|
||||||
await this.recordLogin(user._id.toString(), ip)
|
await this.recordLogin(user._id.toString(), ip)
|
||||||
|
if (isNew) {
|
||||||
|
const amount = (await this.pricingService.getConfig()).registrationGravity
|
||||||
|
await this.logTransaction(user._id.toString(), amount, 'registration', '注册赠送引力值')
|
||||||
|
}
|
||||||
return { ...this.generateAuthResponse(user), isNew, hasPassword: !!user.password }
|
return { ...this.generateAuthResponse(user), isNew, hasPassword: !!user.password }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -211,6 +235,8 @@ export class UserService {
|
|||||||
const nick = email.split('@')[0]
|
const nick = email.split('@')[0]
|
||||||
const hashed = await bcrypt.hash(password, 10)
|
const hashed = await bcrypt.hash(password, 10)
|
||||||
const user = await this.userModel.create({ email, nickname: nick, password: hashed, remaining: 0, gravity: (await this.pricingService.getConfig()).registrationGravity })
|
const user = await this.userModel.create({ email, nickname: nick, password: hashed, remaining: 0, gravity: (await this.pricingService.getConfig()).registrationGravity })
|
||||||
|
const amount = (await this.pricingService.getConfig()).registrationGravity
|
||||||
|
await this.logTransaction(user._id.toString(), amount, 'registration', '注册赠送引力值')
|
||||||
await this.recordLogin(user._id.toString(), ip)
|
await this.recordLogin(user._id.toString(), ip)
|
||||||
return this.generateAuthResponse(user)
|
return this.generateAuthResponse(user)
|
||||||
}
|
}
|
||||||
@@ -265,6 +291,15 @@ export class UserService {
|
|||||||
await user.save()
|
await user.save()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async getGravityTransactions(userId: string, page = 1, limit = 20) {
|
||||||
|
const skip = (page - 1) * limit
|
||||||
|
const [items, total] = await Promise.all([
|
||||||
|
this.gravityTxModel.find({ userId }).sort({ createdAt: -1 }).skip(skip).limit(limit).exec(),
|
||||||
|
this.gravityTxModel.countDocuments({ userId }),
|
||||||
|
])
|
||||||
|
return { items, total, page, limit, totalPages: Math.ceil(total / limit) }
|
||||||
|
}
|
||||||
|
|
||||||
private generateAuthResponse(user: UserDocument) {
|
private generateAuthResponse(user: UserDocument) {
|
||||||
const payload = { userId: user._id.toString(), phone: user.phone || '', role: user.role || 'user' }
|
const payload = { userId: user._id.toString(), phone: user.phone || '', role: user.role || 'user' }
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,7 +1,26 @@
|
|||||||
import { test, expect } from '@playwright/test'
|
import { test, expect } from '@playwright/test'
|
||||||
|
import * as fs from 'fs'
|
||||||
|
import * as path from 'path'
|
||||||
|
import * as jwt from 'jsonwebtoken'
|
||||||
|
|
||||||
const BASE = 'http://localhost:3006/api'
|
const BASE = 'http://localhost:3006/api'
|
||||||
|
|
||||||
|
function getJwtSecret(): string {
|
||||||
|
const envPath = path.resolve(__dirname, '..', '.env')
|
||||||
|
const envContent = fs.readFileSync(envPath, 'utf8')
|
||||||
|
const match = envContent.match(/^JWT_SECRET=(.+)$/m)
|
||||||
|
return match ? match[1].trim() : 'test-jwt-secret-for-e2e-tests'
|
||||||
|
}
|
||||||
|
|
||||||
|
function signToken(payload: object): string {
|
||||||
|
return jwt.sign(payload, getJwtSecret(), { expiresIn: '1h' })
|
||||||
|
}
|
||||||
|
|
||||||
|
const testUserId = '000000000000000000000001'
|
||||||
|
const testAdminId = '000000000000000000000002'
|
||||||
|
const userToken = signToken({ userId: testUserId, phone: '13800138000', role: 'user' })
|
||||||
|
const adminToken = signToken({ userId: testAdminId, phone: '13800138001', role: 'admin' })
|
||||||
|
|
||||||
test.describe('Backend API (Playwright)', () => {
|
test.describe('Backend API (Playwright)', () => {
|
||||||
test('GET /api/user/info returns 401 without token', async ({ request }) => {
|
test('GET /api/user/info returns 401 without token', async ({ request }) => {
|
||||||
const res = await request.get(`${BASE}/user/info`)
|
const res = await request.get(`${BASE}/user/info`)
|
||||||
@@ -12,7 +31,7 @@ test.describe('Backend API (Playwright)', () => {
|
|||||||
const res = await request.post(`${BASE}/user/send-code`, {
|
const res = await request.post(`${BASE}/user/send-code`, {
|
||||||
data: { phone: '13800138000' },
|
data: { phone: '13800138000' },
|
||||||
})
|
})
|
||||||
expect(res.status()).toBe(201)
|
expect(res.status()).toBe(200)
|
||||||
const body = await res.json()
|
const body = await res.json()
|
||||||
expect(body.message).toBe('验证码已发送')
|
expect(body.message).toBe('验证码已发送')
|
||||||
})
|
})
|
||||||
@@ -45,4 +64,47 @@ test.describe('Backend API (Playwright)', () => {
|
|||||||
const res = await request.get(`${BASE}/admin/check`)
|
const res = await request.get(`${BASE}/admin/check`)
|
||||||
expect(res.status()).toBe(401)
|
expect(res.status()).toBe(401)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// --- Feedback API ---
|
||||||
|
|
||||||
|
test('POST /api/feedback returns 401 without token', async ({ request }) => {
|
||||||
|
const res = await request.post(`${BASE}/feedback`, {
|
||||||
|
data: { type: 'suggestion', content: 'test feedback' },
|
||||||
|
})
|
||||||
|
expect(res.status()).toBe(401)
|
||||||
|
})
|
||||||
|
|
||||||
|
test('POST /api/feedback returns 400 with empty content', async ({ request }) => {
|
||||||
|
const res = await request.post(`${BASE}/feedback`, {
|
||||||
|
data: { content: '' },
|
||||||
|
headers: { Authorization: `Bearer ${userToken}` },
|
||||||
|
})
|
||||||
|
expect(res.status()).toBe(400)
|
||||||
|
})
|
||||||
|
|
||||||
|
test('POST /api/feedback returns 201 with valid data', async ({ request }) => {
|
||||||
|
const res = await request.post(`${BASE}/feedback`, {
|
||||||
|
data: { type: 'bug', content: 'Playwright浏览器端测试提交的问题反馈', contact: 'test@test.com' },
|
||||||
|
headers: { Authorization: `Bearer ${userToken}` },
|
||||||
|
})
|
||||||
|
expect(res.status()).toBe(201)
|
||||||
|
})
|
||||||
|
|
||||||
|
test('GET /api/feedback returns 403 for non-admin', async ({ request }) => {
|
||||||
|
const res = await request.get(`${BASE}/feedback`, {
|
||||||
|
headers: { Authorization: `Bearer ${userToken}` },
|
||||||
|
})
|
||||||
|
expect(res.status()).toBe(403)
|
||||||
|
})
|
||||||
|
|
||||||
|
test('GET /api/feedback returns 200 for admin', async ({ request }) => {
|
||||||
|
const res = await request.get(`${BASE}/feedback`, {
|
||||||
|
headers: { Authorization: `Bearer ${adminToken}` },
|
||||||
|
})
|
||||||
|
expect(res.status()).toBe(200)
|
||||||
|
const body = await res.json()
|
||||||
|
expect(body.items).toBeDefined()
|
||||||
|
expect(Array.isArray(body.items)).toBe(true)
|
||||||
|
expect(body.total).toBeGreaterThanOrEqual(0)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
+4
-2
@@ -1,6 +1,6 @@
|
|||||||
# 职引 - 部署文档
|
# 职引 - 部署文档
|
||||||
|
|
||||||
> **最后更新**: 2026-06-21
|
> **最后更新**: 2026-07-04 12:51
|
||||||
> **生产环境**: 已部署(服务器已购 + 域名已配)
|
> **生产环境**: 已部署(服务器已购 + 域名已配)
|
||||||
|
|
||||||
## 目录
|
## 目录
|
||||||
@@ -227,7 +227,7 @@ node scripts/upload-mp.js
|
|||||||
```
|
```
|
||||||
|
|
||||||
### 版本号
|
### 版本号
|
||||||
当前线上版本:**1.0.17**(git tag v1.0.16,脚本自动末位自增 → 上传版本 1.0.17)
|
当前线上版本:**1.0.22**(小程序上传版本,git tag v1.0.21 + 脚本末位自增 1)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -255,3 +255,5 @@ node scripts/upload-mp.js
|
|||||||
| 2026-06-09 | 更新生产域名:zhiyinwx.yzrcloud.cn(API :3006)、zhiyin.yzrcloud.cn(H5 静态目录) | 小之 |
|
| 2026-06-09 | 更新生产域名:zhiyinwx.yzrcloud.cn(API :3006)、zhiyin.yzrcloud.cn(H5 静态目录) | 小之 |
|
||||||
| 2026-06-21 | 更新部署版本至 v1.0.16;小程序上传工具使用 git tag 自动获取版本号 | 小之 |
|
| 2026-06-21 | 更新部署版本至 v1.0.16;小程序上传工具使用 git tag 自动获取版本号 | 小之 |
|
||||||
| 2026-06-21 | v4.8 SEO + 分享全面优化:部署新增 robots.txt、sitemap.xml、static/ 目录;版本号自动注入(Vite define);13 页面微信分享全部开启;上传脚本版本号末位自增 1 | AI |
|
| 2026-06-21 | v4.8 SEO + 分享全面优化:部署新增 robots.txt、sitemap.xml、static/ 目录;版本号自动注入(Vite define);13 页面微信分享全部开启;上传脚本版本号末位自增 1 | AI |
|
||||||
|
| 2026-07-04 | v4.10 引力值变动记录系统 + 前端 401/错误处理完善;v1.0.21 发布;H5 + 小程序全量部署 | AI |
|
||||||
|
| 2026-07-04 | ASR 语音识别 AAC→WAV 转换修复 + share.vue 分享记录去重修复;后端 + H5 + 小程序 v1.0.22 部署 | AI |
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
# 职引 · 完整功能清单 v4.7
|
# 职引 · 完整功能清单 v4.10
|
||||||
|
|
||||||
> **版本**: v4.7
|
> **版本**: v4.10
|
||||||
> **日期**: 2026-06-21
|
> **日期**: 2026-07-04
|
||||||
> **状态**: Phase 1.5 按量购买引力值 + 全量生产部署
|
> **状态**: Phase 1.5 引力值变动记录 + 前端错误处理完善
|
||||||
> **定位**: 应届生/实习生 AI 面试教练
|
> **定位**: 应届生/实习生 AI 面试教练
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -86,6 +86,7 @@
|
|||||||
| 简历管理 | ✅ 完成 | 多份简历 CRUD + AI 分析 |
|
| 简历管理 | ✅ 完成 | 多份简历 CRUD + AI 分析 |
|
||||||
| 面试复盘 | ✅ 完成 | 音频上传 → ASR → AI 评析 → 口语分析 |
|
| 面试复盘 | ✅ 完成 | 音频上传 → ASR → AI 评析 → 口语分析 |
|
||||||
| 会员中心 | ✅ 完成 | 套餐对比 + 支付 |
|
| 会员中心 | ✅ 完成 | 套餐对比 + 支付 |
|
||||||
|
| 引力值明细 | ✅ 完成 | 分页查看引力值变动记录(注册/消耗/购买/补给/迁移) |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -193,3 +194,4 @@
|
|||||||
| 2026-06-16 | **v4.2**:新增面试复盘功能(whisper.cpp ASR + AI 评析 + 口语分析) | AI |
|
| 2026-06-16 | **v4.2**:新增面试复盘功能(whisper.cpp ASR + AI 评析 + 口语分析) | AI |
|
||||||
| 2026-06-17 | **v4.3**:新增 AI 择业顾问功能(专业分析 + 岗位匹配 + 多轮对话) | AI |
|
| 2026-06-17 | **v4.3**:新增 AI 择业顾问功能(专业分析 + 岗位匹配 + 多轮对话) | AI |
|
||||||
| 2026-06-21 | **v4.7**:按量购买引力值重构(¥5/份取代月订阅);微信小程序剪贴板购买链路;客服按钮;管理后台全面完善;生产环境全量部署上线 | AI |
|
| 2026-06-21 | **v4.7**:按量购买引力值重构(¥5/份取代月订阅);微信小程序剪贴板购买链路;客服按钮;管理后台全面完善;生产环境全量部署上线 | AI |
|
||||||
|
| 2026-07-04 | **v4.10**:引力值变动记录系统(GravityTransaction schema + 全埋点 + 用户端分页明细弹窗);前端 401/错误处理完善;面试创建 201 兼容;AI 错误友好提示 | AI |
|
||||||
|
|||||||
+10
-6
@@ -1,8 +1,8 @@
|
|||||||
# 职引项目 · 状态报告 v4.9
|
# 职引项目 · 状态报告 v4.10
|
||||||
|
|
||||||
> **项目版本**: v4.9
|
> **项目版本**: v4.10
|
||||||
> **更新时间**: 2026-06-22
|
> **更新时间**: 2026-07-04
|
||||||
> **项目状态**: ✅ Mongoose 8 兼容修复 + v1.0.17 发布
|
> **项目状态**: ✅ 引力值变动记录系统 + 前端 401/错误处理完善 + v1.0.21 发布
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
| 定价 | 免费版 / 按量购买引力值(¥5/份) |
|
| 定价 | 免费版 / 按量购买引力值(¥5/份) |
|
||||||
| AI 模型 | DeepSeek V4-Flash(主) + Step-3.5-Flash(备) |
|
| AI 模型 | DeepSeek V4-Flash(主) + Step-3.5-Flash(备) |
|
||||||
| ASR | whisper.cpp(本地部署,tiny/base 模型,无需 API Key) |
|
| ASR | whisper.cpp(本地部署,tiny/base 模型,无需 API Key) |
|
||||||
| 后端模块 | user, interview, resume, member, payment, positions, ai, analyze, upload, admin, email, progress, contribution, daily-question, schedule, interview-review, career-advice |
|
| 后端模块 | user, interview, resume, member, payment, positions, ai, analyze, upload, admin, email, progress, contribution, daily-question, schedule, interview-review, career-advice, gravity-transaction |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -29,6 +29,7 @@
|
|||||||
| AI 面试模拟 | **95%** | 多轮对话 + 评分 + 报告 + 进度追踪 |
|
| AI 面试模拟 | **95%** | 多轮对话 + 评分 + 报告 + 进度追踪 |
|
||||||
| 简历诊断/优化 | **95%** | 文件上传 + AI 分析 + 下载 |
|
| 简历诊断/优化 | **95%** | 文件上传 + AI 分析 + 下载 |
|
||||||
| 支付系统(微信) | **95%** | API v3 完整对接,含真实证书,H5 扫码支付可用 |
|
| 支付系统(微信) | **95%** | API v3 完整对接,含真实证书,H5 扫码支付可用 |
|
||||||
|
| 引力值变动记录 | **100%** | 全量日志(注册/消耗/购买/补给/迁移)+ 前端分页查看 |
|
||||||
| 会员系统 | **100%** | 改为按量购买引力值体系(¥5/份),免费版注册送 5 引力值 |
|
| 会员系统 | **100%** | 改为按量购买引力值体系(¥5/份),免费版注册送 5 引力值 |
|
||||||
| 护城河 P0-P5 | **100%** | AI 结构化 / 行业基准 / VIP 过期 / 分享卡片 / 打卡积分 / 岗位匹配 |
|
| 护城河 P0-P5 | **100%** | AI 结构化 / 行业基准 / VIP 过期 / 分享卡片 / 打卡积分 / 岗位匹配 |
|
||||||
| 面试复盘 | **100%** | 音频上传 → whisper.cpp ASR → AI 评析 → 口语分析 |
|
| 面试复盘 | **100%** | 音频上传 → whisper.cpp ASR → AI 评析 → 口语分析 |
|
||||||
@@ -182,6 +183,7 @@
|
|||||||
| `interview-review` | controller + service + schema + asr service | ✅ | 面试复盘:音频 ASR + AI 评析 + 口语分析 |
|
| `interview-review` | controller + service + schema + asr service | ✅ | 面试复盘:音频 ASR + AI 评析 + 口语分析 |
|
||||||
| `career-advice` | controller + service + module | ✅ | AI 择业顾问:专业分析 + 岗位匹配 + 多轮对话 |
|
| `career-advice` | controller + service + module | ✅ | AI 择业顾问:专业分析 + 岗位匹配 + 多轮对话 |
|
||||||
| `admin` | controller + module | ✅ | 管理后台 |
|
| `admin` | controller + module | ✅ | 管理后台 |
|
||||||
|
| `gravity-transaction` | schema (shared) | ✅ | 引力值变动全量日志:注册/面试消耗/购买/月度补给/迁移等 |
|
||||||
| `email` | module + service | ✅ | 邮件发送 |
|
| `email` | module + service | ✅ | 邮件发送 |
|
||||||
| `upload` | controller + module | ✅ | 文件上传 |
|
| `upload` | controller + module | ✅ | 文件上传 |
|
||||||
|
|
||||||
@@ -196,7 +198,7 @@
|
|||||||
| 面试模拟 | interview/interview | ✅ 多轮对话 + 计时 |
|
| 面试模拟 | interview/interview | ✅ 多轮对话 + 计时 |
|
||||||
| 面试报告 | report/report | ✅ 评分/分析/全文回放/分享卡片 |
|
| 面试报告 | report/report | ✅ 评分/分析/全文回放/分享卡片 |
|
||||||
| 历史记录 | history/history | ✅ 筛选/统计 |
|
| 历史记录 | history/history | ✅ 筛选/统计 |
|
||||||
| 个人中心 | user/user | ✅ 引力值卡片 + 信息/统计/管理员入口 + 面试复盘入口 + 择业顾问入口 + 客服按钮 |
|
| 个人中心 | user/user | ✅ 引力值卡片(含明细弹窗)+ 信息/统计/管理员入口 + 面试复盘入口 + 择业顾问入口 + 客服按钮 |
|
||||||
| 会员中心 | member/member | ✅ 引力值按量购买(H5 扫码支付/小程序剪贴板链路) |
|
| 会员中心 | member/member | ✅ 引力值按量购买(H5 扫码支付/小程序剪贴板链路) |
|
||||||
| 进步轨迹 | progress/progress | ✅ 雷达图 + 打卡日历 |
|
| 进步轨迹 | progress/progress | ✅ 雷达图 + 打卡日历 |
|
||||||
| 面经贡献 | contribute/contribute | ✅ 表单提交 |
|
| 面经贡献 | contribute/contribute | ✅ 表单提交 |
|
||||||
@@ -224,6 +226,8 @@
|
|||||||
|
|
||||||
| 日期 | 版本 | 变更内容 | 操作者 |
|
| 日期 | 版本 | 变更内容 | 操作者 |
|
||||||
|------|------|----------|--------|
|
|------|------|----------|--------|
|
||||||
|
| 2026-07-04 | **v4.11** | **ASR 语音识别修复**(TTS controller AAC→WAV 转换,解决小程序录音格式不兼容 whisper);**分享记录去重**(share.vue loadData 有缓存时不再创建新分享);**引力值明细**后端部署;**用户端 401/错误处理**完善 | AI |
|
||||||
|
| 2026-07-04 | **v4.10** | **引力值变动记录系统**:新建 GravityTransaction schema + 全量日志埋点(注册/面试消耗/购买/月度补给/迁移/套餐设置等);新增 `GET /user/gravity-transactions` 接口;用户端「引力值明细」弹窗(分页);前端 401/错误处理完善(checkAuth 全局检测);面试创建 201 状态码兼容 fix;AI 错误友好提示 | AI |
|
||||||
| 2026-06-22 | **v4.9** | **Mongoose 8 兼容修复**(pre-save hook 回调→async);v1.0.17 tag 发布;测试账号 test@yzrcloud.cn 重建 | AI |
|
| 2026-06-22 | **v4.9** | **Mongoose 8 兼容修复**(pre-save hook 回调→async);v1.0.17 tag 发布;测试账号 test@yzrcloud.cn 重建 | AI |
|
||||||
| 2026-06-21 | **v4.8** | **SEO 全量优化**(canonical URL、robots.txt、sitemap.xml、结构化数据);**微信分享全面开启**(13 个页面 onShareAppMessage + onShareTimeline);**版本号自动注入**(Vite define __APP_VERSION__);**导航栏/Tab标题关键词优化**;manifest 描述更新;页面描述统一增强 | AI |
|
| 2026-06-21 | **v4.8** | **SEO 全量优化**(canonical URL、robots.txt、sitemap.xml、结构化数据);**微信分享全面开启**(13 个页面 onShareAppMessage + onShareTimeline);**版本号自动注入**(Vite define __APP_VERSION__);**导航栏/Tab标题关键词优化**;manifest 描述更新;页面描述统一增强 | AI |
|
||||||
| 2026-06-21 | v4.7 | 按量购买引力值体系重构(¥5/份取代月订阅);member.vue 完全重写;微信小程序剪贴板购买链路;客服按钮;管理后台字段全面完善;代码清理;测试数据清理;后端/H5/小程序全量部署上线 | AI |
|
| 2026-06-21 | v4.7 | 按量购买引力值体系重构(¥5/份取代月订阅);member.vue 完全重写;微信小程序剪贴板购买链路;客服按钮;管理后台字段全面完善;代码清理;测试数据清理;后端/H5/小程序全量部署上线 | AI |
|
||||||
|
|||||||
@@ -0,0 +1,87 @@
|
|||||||
|
# 宇之然AI磁场 · 营销推广总方案 v1.0
|
||||||
|
|
||||||
|
> 日期: 2026-07-06
|
||||||
|
> 定位: 应届生/实习生 AI 面试教练
|
||||||
|
> 目标: 三端平台(微信公众号 / 知乎 / 小红书)内容矩阵,配合 2026 秋招季(9-11 月)获取种子用户
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 一、产品核心卖点
|
||||||
|
|
||||||
|
| 卖点 | 一句话表达 | 对应痛点 |
|
||||||
|
|------|-----------|----------|
|
||||||
|
| AI 面试模拟 | "校招面试,先模拟再上场" | 面试紧张、不知道会被问什么 |
|
||||||
|
| 公司真题库 | "真实面经 + 公司题库,不是通用模板" | 面试题太泛、不针对目标公司 |
|
||||||
|
| 四维评分报告 | "每轮回答都有 AI 评分和改进建议" | 面完了不知道好不好、如何改进 |
|
||||||
|
| 进步轨迹图 | "能力提升看得见,四维雷达图追踪" | 练习无反馈、不知道进步 |
|
||||||
|
| 面试复盘 | "真实面试录音 → AI 分析表现" | 面试完不知道怎么复盘 |
|
||||||
|
| AI 择业顾问 | "AI 帮你分析适合什么岗位" | 求职方向迷茫 |
|
||||||
|
| 免费可用 | "注册送 5 引力值,0 元体验" | 担心付费后不好用 |
|
||||||
|
| 按量购买 | "¥5/份,用多少买多少" | 不想被月订阅绑定 |
|
||||||
|
|
||||||
|
## 二、目标用户画像
|
||||||
|
|
||||||
|
| 画像 | 特征 | 平台偏好 |
|
||||||
|
|------|------|----------|
|
||||||
|
| 25 届/26 届毕业生 | 正在或即将经历秋招 | 微信(群/朋友圈)、小红书 |
|
||||||
|
| 双非/普通本科学生 | 缺乏名校背书,求职焦虑高 | 知乎、小红书 |
|
||||||
|
| 计算机/产品/运营专业 | 面试竞争激烈 | 知乎、微信公众号 |
|
||||||
|
| 考研/考公失利转求职 | 准备时间紧迫 | 小红书、微信 |
|
||||||
|
|
||||||
|
## 三、平台策略对比
|
||||||
|
|
||||||
|
| 维度 | 微信公众号 | 知乎 | 小红书 |
|
||||||
|
|------|-----------|------|--------|
|
||||||
|
| 内容形式 | 长图文(2000-3000 字) | 问答/专栏(1500-2500 字) | 笔记+图片(500-800 字) |
|
||||||
|
| 核心策略 | SEO 搜索 + 朋友圈转发 | 关键词排名 + 问题截流 | 发现页推荐 + 话题标签 |
|
||||||
|
| 内容定位 | 深度干货,建立专业信任 | 方法论输出,展现权威 | 真实分享,情感共鸣 |
|
||||||
|
| 产品露出 | 文章中部自然植入 | 回答末尾推荐工具 | 图片标签 + 正文轻提 |
|
||||||
|
| 发布频率 | 2 篇/周(秋招季 3 篇) | 4-5 回答/周 + 1 专栏/周 | 5-7 条/周 |
|
||||||
|
| 转化路径 | 阅读→关注→菜单→小程序 | 阅读→收藏→点赞→私信→小程序 | 种草→搜小程序→使用 |
|
||||||
|
|
||||||
|
## 四、SEO 关键词矩阵
|
||||||
|
|
||||||
|
| 关键词 | 搜索意图 | 平台 | 竞争度 |
|
||||||
|
|--------|---------|------|--------|
|
||||||
|
| 校招面试技巧 | 信息需求 | 知乎/公众号 | 高 |
|
||||||
|
| AI面试 | 产品需求 | 知乎/小红书 | 中 |
|
||||||
|
| 面试模拟 | 产品需求 | 知乎 | 低 |
|
||||||
|
| 秋招准备 | 信息+产品 | 全平台 | 高 |
|
||||||
|
| 应届生求职 | 信息需求 | 全平台 | 高 |
|
||||||
|
| 面试题库 | 产品需求 | 知乎/小红书 | 中 |
|
||||||
|
| 面试评分 | 产品需求 | 知乎 | 低 |
|
||||||
|
| 简历诊断 | 产品需求 | 小红书 | 中 |
|
||||||
|
| 无领导小组面试 | 信息需求 | 知乎 | 低-中 |
|
||||||
|
| 面试复盘 | 信息+产品 | 知乎/小红书 | 低 |
|
||||||
|
|
||||||
|
## 五、内容日历(2026 秋招季)
|
||||||
|
|
||||||
|
| 阶段 | 时间 | 主题方向 | 核心内容 |
|
||||||
|
|------|------|----------|----------|
|
||||||
|
| 预热期 | 7 月 | 面试准备方法论 | 简历修改、岗位选择、面试基础 |
|
||||||
|
| 爆发期 | 8-9 月 | 秋招实战 | 各家面试风格、AI 模拟练习 |
|
||||||
|
| 高峰期 | 10 月 | 面经 + 题库 | 真实面经分享、公司真题解析 |
|
||||||
|
| 收尾期 | 11-12 月 | 补录 + 春招准备 | 补录信息、复盘总结、春招规划 |
|
||||||
|
|
||||||
|
## 六、内容复用策略
|
||||||
|
|
||||||
|
1. **微信公众号**发深度长文 → 提炼核心观点发**知乎**回答 → 拆成 3-5 条**小红书**笔记
|
||||||
|
2. **小红书**爆款笔记 → 扩展成**知乎**专栏 → 再丰富成**公众号**深度文章
|
||||||
|
3. 用户面经(脱敏后)→ 全平台内容素材(标注"来自用户贡献"增加可信度)
|
||||||
|
|
||||||
|
## 七、数据追踪
|
||||||
|
|
||||||
|
| 指标 | 公众号 | 知乎 | 小红书 |
|
||||||
|
|------|--------|------|--------|
|
||||||
|
| 曝光 | 阅读量 | 浏览量 | 小眼睛 |
|
||||||
|
| 互动 | 点赞/在看/留言 | 赞同/收藏/评论 | 点赞/收藏/评论 |
|
||||||
|
| 转化 | 关注数 → 菜单点击 | 私信咨询 | 搜索"宇之然AI磁场" |
|
||||||
|
| 归因 | 菜单点击量 | 专属二维码 | 品牌搜索量 |
|
||||||
|
|
||||||
|
## 八、合规注意事项
|
||||||
|
|
||||||
|
- 不使用绝对化用语("最好"、"第一"、"最"等)
|
||||||
|
- 不虚构用户案例("身边朋友"类必须有真实授权)
|
||||||
|
- 不直接留联系方式诱导引流(小红书限流高风险)
|
||||||
|
- 知乎不出售软文,以干货回答获取自然流量
|
||||||
|
- 公众号不刷阅读量,不诱导分享(违者封号)
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
# 微信公众号 · 营销文案
|
||||||
|
|
||||||
|
> 定位: 深度干货长文,建立专业信任,通过 SEO 搜索和朋友圈传播获客
|
||||||
|
> 风格: 专业 + 温度 + 数据驱动
|
||||||
|
> 建议配图: 数据图表 / AI 面试截图 / 雷达图
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 文章一:校招季 | 那些面试挂了的人,后来都怎么样了?
|
||||||
|
|
||||||
|
**SEO 标题**: 2026 校招面试全攻略:从挂面到 offer,应届生做对了什么?
|
||||||
|
**描述**: 2026 秋招在即,面试挂了不可怕,关键是知道怎么复盘和改进。本文从 300+ 场真实 AI 面试数据中总结出面试失败的核心原因和解决方案。
|
||||||
|
**关键词**: 校招面试, 秋招准备, 面试技巧, 应届生求职, AI面试
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 正文
|
||||||
|
|
||||||
|
每年 9 月,几百万应届生涌入秋招战场。
|
||||||
|
|
||||||
|
有人拿 offer 到手软,有人面完就杳无音信。差距到底在哪?
|
||||||
|
|
||||||
|
我们分析了 300+ 场 AI 模拟面试的数据,发现一个扎心的事实:**绝大部分面试挂掉的人,不是因为能力不行,而是因为"没准备到点上"。**
|
||||||
|
|
||||||
|
#### 一、面试挂掉的 3 个致命原因
|
||||||
|
|
||||||
|
**1. 回答全是"背稿子"**
|
||||||
|
|
||||||
|
"请自我介绍一下。"
|
||||||
|
|
||||||
|
"我叫 XXX,来自 XX 大学,专业是 XX……"——这种千篇一律的开场,面试官每天听几十遍。
|
||||||
|
|
||||||
|
AI 面试评分数据显示,自我介绍环节平均得分只有 5.8/10。问题出在哪?不是不流利,而是**没有针对性**。面试官想听的不是你的基本信息,而是"你为什么适合这个岗位"。
|
||||||
|
|
||||||
|
**2. 逻辑混乱,答非所问**
|
||||||
|
|
||||||
|
面到深处,面试官会追问细节。很多人这时候开始"编"——编数据、编经历、编成果。
|
||||||
|
|
||||||
|
AI 的追问逻辑检测发现,超过 60% 的候选人在第 3 轮追问后开始出现逻辑断裂。前后矛盾、数据不对应、结论和论据脱节,这些在 AI 评分系统里会被精准捕捉。
|
||||||
|
|
||||||
|
**3. 完全不了解目标公司和岗位**
|
||||||
|
|
||||||
|
"你对我们公司了解多少?"
|
||||||
|
|
||||||
|
"嗯……是大厂,做互联网的……"
|
||||||
|
|
||||||
|
这种回答基本等于给自己发了拒信。公司题库数据显示,面试中涉及目标公司业务的题目占比高达 35%。不做功课就上考场,结果可想而知。
|
||||||
|
|
||||||
|
#### 二、面试能力是一个"可训练"的技能
|
||||||
|
|
||||||
|
很多人把面试当作"展示自己"的过程——我准备好了,你来打分吧。
|
||||||
|
|
||||||
|
错了。面试本质上是**一场结构化的问题应对**。每个问题的背后都有考察意图,你的回答需要同时满足:逻辑性、专业性、表达力、应变力。
|
||||||
|
|
||||||
|
这四个维度对应着面试官打分表上的核心指标。好消息是,这四个维度都是可以被训练的。
|
||||||
|
|
||||||
|
**第一步:大量模拟,建立肌肉记忆**
|
||||||
|
|
||||||
|
研究表明,一个人在面对压力场景时,需要至少 5-10 次模拟才能降低焦虑水平。这就是为什么很多企业用模拟面试提高候选人通过率——只不过以前模拟面试需要找真人,成本高、效率低。
|
||||||
|
|
||||||
|
**第二步:每次练习都要有反馈**
|
||||||
|
|
||||||
|
练习本身不产生进步。**有反馈的练习才产生进步。**
|
||||||
|
|
||||||
|
如果你的回答没有人告诉你"哪里好、哪里不好",你只是在一遍又一遍地强化错误。这就是为什么 AI 面试工具成为了越来越多人选择——它能给出即时、客观、结构化的评分和改进建议。
|
||||||
|
|
||||||
|
**第三步:拆解目标公司的出题风格**
|
||||||
|
|
||||||
|
不同公司、不同岗位的面试风格差异很大:
|
||||||
|
|
||||||
|
- 字节跳动爱考行为面试和快速反应
|
||||||
|
- 腾讯注重项目深度和协作经历
|
||||||
|
- 美团关注数据分析和业务思维
|
||||||
|
- 阿里看重价值观匹配和抗压能力
|
||||||
|
|
||||||
|
如果没有针对性地准备,拿 A 公司的模板去面 B 公司,大概率会被面试官识破。
|
||||||
|
|
||||||
|
#### 三、2026 秋招备战时间表
|
||||||
|
|
||||||
|
| 时间 | 任务 | 产出 |
|
||||||
|
|------|------|------|
|
||||||
|
| 7 月 | 简历打磨 + 岗位调研 | 3 版针对性简历 |
|
||||||
|
| 8 月 | 模拟面试 + 反馈改进 | 20+ 次模拟 |
|
||||||
|
| 9 月 | 海投 + 高频面试 | 每周至少 3 场 |
|
||||||
|
| 10 月 | 复盘 + 补录冲刺 | 面经整理 + 题库刷题 |
|
||||||
|
|
||||||
|
#### 四、一个值得尝试的 AI 面试工具
|
||||||
|
|
||||||
|
如果你正在准备 2026 校招,想找个低成本的方式大量练习面试,可以试试「宇之然AI磁场」——一款专注校招的 AI 面试教练。
|
||||||
|
|
||||||
|
它和通用 AI 工具最大的区别是:
|
||||||
|
- **针对性**:覆盖 20+ 校招热门岗位,不只是通用问答
|
||||||
|
- **有反馈**:每轮回答后 AI 给出评分 + 改进建议,回答结束生成四维报告(逻辑/表达/专业度/稳定性)
|
||||||
|
- **公司题库**:基于真实用户面经积累的题目,不是网上搜来的大路货
|
||||||
|
- **免费可用**:注册送 5 次面试机会,完全 0 成本体验
|
||||||
|
|
||||||
|
微信小程序搜索「宇之然AI磁场」或浏览器访问 zhiyin.yzrcloud.cn 即可使用。
|
||||||
|
|
||||||
|
面试能力不是天生的,是练出来的。既然校招注定要面几十场,为什么不先拿 AI 练习几场再去?
|
||||||
|
|
||||||
|
> 最后说一句:秋招是一场马拉松,不是百米冲刺。挂掉几场面试不代表你不行,关键是能从每次面试中学到什么。祝各位 2026 届毕业生,秋招顺利。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 文章二:2026 秋招提前批已开!这份面试通关攻略请收好
|
||||||
|
|
||||||
|
**SEO 标题**: 2026 秋招提前批面试攻略:简历、面试、谈薪全流程指南
|
||||||
|
**描述**: 秋招提前批已经开放,7 月投递 8 月面试。从简历优化到 AI 模拟面试,手把手教你拿 offer。
|
||||||
|
**关键词**: 秋招提前批, 面试攻略, 简历优化, 校招流程, 应届生
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 正文
|
||||||
|
|
||||||
|
2026 届秋招提前批已经静悄悄开了。
|
||||||
|
|
||||||
|
大厂提前批集中在 7-8 月,特点是:流程快、hc 多、竞争相对小。可以说,提前批拿 offer 的难度系数比正式批低 30%。
|
||||||
|
|
||||||
|
但问题在于——很多人根本不知道提前批已经开了。
|
||||||
|
|
||||||
|
#### 提前批为什么一定要参加?
|
||||||
|
|
||||||
|
(详细分析提前批优势……)
|
||||||
|
|
||||||
|
#### 简历关:HR 筛选简历的 10 秒法则
|
||||||
|
|
||||||
|
(简历优化方法论……)
|
||||||
|
|
||||||
|
#### 面试关:AI 面试教练帮你练到 90 分
|
||||||
|
|
||||||
|
(这里插入产品推荐……)
|
||||||
|
|
||||||
|
#### 谈薪关:什么时候该要价,什么时候该妥协
|
||||||
|
|
||||||
|
(薪资谈判技巧……)
|
||||||
|
|
||||||
|
> 全文约 2500 字,此处为框架示例。
|
||||||
|
> 发布前根据最新秋招时间线更新具体内容。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 文章三:我们分析了 500 场 AI 模拟面试,发现了这 5 个校招面试规律
|
||||||
|
|
||||||
|
**SEO 标题**: 500 场 AI 模拟面试数据分析:校招面试评分最高的候选人做对了什么?
|
||||||
|
**描述**: 基于 500+ 场 AI 面试的真实数据,分析高分候选人的 5 个共同特征,用数据说话,帮你找到面试提升方向。
|
||||||
|
**关键词**: 面试数据分析, 校招面试评分, AI面试, 面试技巧, 数据报告
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 正文
|
||||||
|
|
||||||
|
数据比经验更可靠。
|
||||||
|
|
||||||
|
我们整理了「宇之然AI磁场」平台上 500+ 场 AI 模拟面试的评分数据,发现了一些有趣的规律。
|
||||||
|
|
||||||
|
**1. 自我介绍环节平均分最低,但对最终得分影响最大**
|
||||||
|
|
||||||
|
(数据分析 + 建议……)
|
||||||
|
|
||||||
|
**2. 专业度得分和回答长度没有正相关**
|
||||||
|
|
||||||
|
(数据 + 分析……)
|
||||||
|
|
||||||
|
**3. 超过 5 轮追问后,逻辑得分断崖式下降**
|
||||||
|
|
||||||
|
(数据 + 训练建议……)
|
||||||
|
|
||||||
|
**4. 稳定性是区分高分和中等分数的关键维度**
|
||||||
|
|
||||||
|
(数据 + 案例……)
|
||||||
|
|
||||||
|
**5. 同一个候选人,第一次和第五次模拟面试平均提分 23%**
|
||||||
|
|
||||||
|
(数据 + 说明练习的有效性……)
|
||||||
|
|
||||||
|
> 全文约 2000 字,发布前需导出最新数据图表。
|
||||||
|
> 此类数据型文章转载率高,适合做品牌背书的长期流量入口。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 排版规范
|
||||||
|
|
||||||
|
- 标题: `##` 二级标题
|
||||||
|
- 段落间距: 1 空行
|
||||||
|
- 重点引用: `> ` 引用语法
|
||||||
|
- 列表: 使用 `- ` 无序列表
|
||||||
|
- 重要数字/结论加粗 `**文本**`
|
||||||
|
- 每 300-400 字插入一张配图(截图/数据图/示意图)
|
||||||
|
- 底部放置小程序码 + 引导语
|
||||||
@@ -0,0 +1,193 @@
|
|||||||
|
<!--
|
||||||
|
========================================
|
||||||
|
微信公众号 · 可直接复制到编辑器
|
||||||
|
使用说明:
|
||||||
|
1. 复制此文件全部内容
|
||||||
|
2. 打开公众号后台图文编辑器
|
||||||
|
3. 粘贴(会自动保留大部分样式)
|
||||||
|
4. 替换 [配图:...] 为实际图片
|
||||||
|
5. 文末替换小程序码
|
||||||
|
========================================
|
||||||
|
-->
|
||||||
|
|
||||||
|
<section style="padding: 10px 0;">
|
||||||
|
|
||||||
|
<!-- 标题 -->
|
||||||
|
<h1 style="font-size: 18px; font-weight: 700; color: #1a1a1a; letter-spacing: 1px; line-height: 1.6; margin-bottom: 10px;">
|
||||||
|
校招季 | 那些面试挂了的人,后来都怎么样了?
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<!-- 副标题 -->
|
||||||
|
<p style="font-size: 13px; color: #888; margin-bottom: 20px; border-left: 3px solid #4F46E5; padding-left: 10px;">
|
||||||
|
2026 校招面试全攻略:从挂面到 offer,应届生做对了什么?
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<!-- 封面配图 -->
|
||||||
|
<div style="margin: 20px 0; text-align: center;">
|
||||||
|
<img src="https://zhiyin.yzrcloud.cn/static/og-image.png" alt="校招面试配图" style="max-width: 100%; border-radius: 8px;" />
|
||||||
|
<p style="font-size: 12px; color: #aaa; margin-top: 5px;">[配图:面试场景 / 数据图表 / AI 面试截图]</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 正文 -->
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
每年 9 月,几百万应届生涌入秋招战场。有人拿 offer 到手软,有人面完就杳无音信。差距到底在哪?
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
我们分析了 300+ 场 AI 模拟面试的数据,发现一个扎心的事实:<strong>绝大部分面试挂掉的人,不是因为能力不行,而是因为"没准备到点上"。</strong>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<!-- 分隔线 -->
|
||||||
|
<div style="border-top: 1px solid #eee; margin: 25px 0;"></div>
|
||||||
|
|
||||||
|
<h2 style="font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; border-left: 4px solid #4F46E5; padding-left: 12px;">
|
||||||
|
一、面试挂掉的 3 个致命原因
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<h3 style="font-size: 15px; font-weight: 700; color: #333; margin-bottom: 8px;">1. 回答全是"背稿子"</h3>
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
"请自我介绍一下。""我叫 XXX,来自 XX 大学,专业是 XX……"——这种千篇一律的开场,面试官每天听几十遍。
|
||||||
|
</p>
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
AI 面试评分数据显示,自我介绍环节平均得分只有 5.8/10。问题出在哪?不是不流利,而是<strong>没有针对性</strong>。面试官想听的不是你的基本信息,而是"你为什么适合这个岗位"。
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<!-- 配图 -->
|
||||||
|
<div style="margin: 15px 0; text-align: center; background: #F3F4F6; padding: 30px 15px; border-radius: 8px;">
|
||||||
|
<p style="font-size: 13px; color: #666;">[配图:自我介绍评分数据图表 / 雷达图]</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 style="font-size: 15px; font-weight: 700; color: #333; margin-bottom: 8px;">2. 逻辑混乱,答非所问</h3>
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
面到深处,面试官会追问细节。很多人这时候开始"编"——编数据、编经历、编成果。
|
||||||
|
</p>
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
AI 的追问逻辑检测发现,超过 60% 的候选人在第 3 轮追问后开始出现逻辑断裂。前后矛盾、数据不对应、结论和论据脱节,这些在 AI 评分系统里会被精准捕捉。
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3 style="font-size: 15px; font-weight: 700; color: #333; margin-bottom: 8px;">3. 完全不了解目标公司和岗位</h3>
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
"你对我们公司了解多少?""嗯……是大厂,做互联网的……"<strong>这种回答基本等于给自己发了拒信。</strong>公司题库数据显示,面试中涉及目标公司业务的题目占比高达 35%。不做功课就上考场,结果可想而知。
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<!-- 分隔线 -->
|
||||||
|
<div style="border-top: 1px solid #eee; margin: 25px 0;"></div>
|
||||||
|
|
||||||
|
<h2 style="font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; border-left: 4px solid #4F46E5; padding-left: 12px;">
|
||||||
|
二、面试能力是一个"可训练"的技能
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
很多人把面试当作"展示自己"的过程——我准备好了,你来打分吧。
|
||||||
|
</p>
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
错了。面试本质上是<strong>一场结构化的问题应对</strong>。每个问题的背后都有考察意图,你的回答需要同时满足:逻辑性、专业性、表达力、应变力。这四个维度对应着面试官打分表上的核心指标。好消息是,这四个维度都是可以被训练的。
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3 style="font-size: 15px; font-weight: 700; color: #333; margin-bottom: 8px;">第一步:大量模拟,建立肌肉记忆</h3>
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
研究表明,一个人在面对压力场景时,需要至少 5-10 次模拟才能降低焦虑水平。这就是为什么很多企业用模拟面试提高候选人通过率——只不过以前模拟面试需要找真人,成本高、效率低。
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3 style="font-size: 15px; font-weight: 700; color: #333; margin-bottom: 8px;">第二步:每次练习都要有反馈</h3>
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
练习本身不产生进步。<strong>有反馈的练习才产生进步。</strong>如果你的回答没有人告诉你"哪里好、哪里不好",你只是在一遍又一遍地强化错误。这就是为什么 AI 面试工具成为了越来越多人选择——它能给出即时、客观、结构化的评分和改进建议。
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3 style="font-size: 15px; font-weight: 700; color: #333; margin-bottom: 8px;">第三步:拆解目标公司的出题风格</h3>
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
不同公司、不同岗位的面试风格差异很大:
|
||||||
|
</p>
|
||||||
|
<ul style="font-size: 15px; color: #333; line-height: 2; padding-left: 20px; margin-bottom: 15px;">
|
||||||
|
<li>字节跳动爱考行为面试和快速反应</li>
|
||||||
|
<li>腾讯注重项目深度和协作经历</li>
|
||||||
|
<li>美团关注数据分析和业务思维</li>
|
||||||
|
<li>阿里看重价值观匹配和抗压能力</li>
|
||||||
|
</ul>
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
如果没有针对性地准备,拿 A 公司的模板去面 B 公司,大概率会被面试官识破。
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<!-- 分隔线 -->
|
||||||
|
<div style="border-top: 1px solid #eee; margin: 25px 0;"></div>
|
||||||
|
|
||||||
|
<h2 style="font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; border-left: 4px solid #4F46E5; padding-left: 12px;">
|
||||||
|
三、2026 秋招备战时间表
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<table style="width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 20px;">
|
||||||
|
<tr style="background: #4F46E5; color: #fff;">
|
||||||
|
<th style="padding: 10px; border: 1px solid #ddd; text-align: center;">时间</th>
|
||||||
|
<th style="padding: 10px; border: 1px solid #ddd; text-align: center;">任务</th>
|
||||||
|
<th style="padding: 10px; border: 1px solid #ddd; text-align: center;">产出</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 10px; border: 1px solid #ddd; text-align: center; font-weight: 700;">7 月</td>
|
||||||
|
<td style="padding: 10px; border: 1px solid #ddd;">简历打磨 + 岗位调研</td>
|
||||||
|
<td style="padding: 10px; border: 1px solid #ddd;">3 版针对性简历</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="background: #F9FAFB;">
|
||||||
|
<td style="padding: 10px; border: 1px solid #ddd; text-align: center; font-weight: 700;">8 月</td>
|
||||||
|
<td style="padding: 10px; border: 1px solid #ddd;">模拟面试 + 反馈改进</td>
|
||||||
|
<td style="padding: 10px; border: 1px solid #ddd;">20+ 次模拟</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 10px; border: 1px solid #ddd; text-align: center; font-weight: 700;">9 月</td>
|
||||||
|
<td style="padding: 10px; border: 1px solid #ddd;">海投 + 高频面试</td>
|
||||||
|
<td style="padding: 10px; border: 1px solid #ddd;">每周至少 3 场</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="background: #F9FAFB;">
|
||||||
|
<td style="padding: 10px; border: 1px solid #ddd; text-align: center; font-weight: 700;">10 月</td>
|
||||||
|
<td style="padding: 10px; border: 1px solid #ddd;">复盘 + 补录冲刺</td>
|
||||||
|
<td style="padding: 10px; border: 1px solid #ddd;">面经整理 + 题库刷题</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<!-- 分隔线 -->
|
||||||
|
<div style="border-top: 1px solid #eee; margin: 25px 0;"></div>
|
||||||
|
|
||||||
|
<h2 style="font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; border-left: 4px solid #4F46E5; padding-left: 12px;">
|
||||||
|
四、一个值得尝试的 AI 面试工具
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
如果你正在准备 2026 校招,想找个低成本的方式大量练习面试,可以试试<strong>「宇之然AI磁场(职引)」</strong>——一款专注校招的 AI 面试教练。
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 10px;">
|
||||||
|
它和通用 AI 工具最大的区别是:
|
||||||
|
</p>
|
||||||
|
<ul style="font-size: 15px; color: #333; line-height: 2; padding-left: 20px; margin-bottom: 15px;">
|
||||||
|
<li><strong>针对性</strong>:覆盖 20+ 校招热门岗位,不只是通用问答</li>
|
||||||
|
<li><strong>有反馈</strong>:每轮回答后 AI 给出评分 + 改进建议,回答结束生成四维报告(逻辑/表达/专业度/稳定性)</li>
|
||||||
|
<li><strong>公司题库</strong>:基于真实用户面经积累的题目,不是网上搜来的大路货</li>
|
||||||
|
<li><strong>免费可用</strong>:注册送 5 次面试机会,完全 0 成本体验</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<!-- 小程序码配图 -->
|
||||||
|
<div style="margin: 20px 0; text-align: center;">
|
||||||
|
<img src="https://zhiyin.yzrcloud.cn/static/qr-code.png" alt="小程序码" style="width: 150px; height: 150px; border-radius: 8px;" />
|
||||||
|
<p style="font-size: 12px; color: #999; margin-top: 5px;">微信扫描二维码,立即开始模拟面试</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
微信小程序搜索「宇之然AI磁场」或浏览器访问 zhiyin.yzrcloud.cn 即可使用。
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p style="font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 15px;">
|
||||||
|
面试能力不是天生的,是练出来的。既然校招注定要面几十场,为什么不先拿 AI 练习几场再去?
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<!-- 结尾引用 -->
|
||||||
|
<blockquote style="border-left: 4px solid #4F46E5; padding: 15px 20px; background: #F3F4F6; border-radius: 4px; margin: 25px 0;">
|
||||||
|
<p style="font-size: 14px; color: #555; line-height: 1.8; margin: 0;">
|
||||||
|
最后说一句:秋招是一场马拉松,不是百米冲刺。挂掉几场面试不代表你不行,关键是能从每次面试中学到什么。祝各位 2026 届毕业生,秋招顺利。
|
||||||
|
</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<!-- 底部 -->
|
||||||
|
<p style="font-size: 12px; color: #bbb; text-align: center; margin-top: 30px; border-top: 1px solid #eee; padding-top: 15px;">
|
||||||
|
— END —
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</section>
|
||||||
@@ -0,0 +1,242 @@
|
|||||||
|
<!--
|
||||||
|
========================================
|
||||||
|
小红书 · 可直接复制到编辑器
|
||||||
|
使用说明:
|
||||||
|
1. 小红书编辑器不支持富文本粘贴
|
||||||
|
2. 每条笔记包含:封面说明 + 正文 + 标签
|
||||||
|
3. 复制正文内容粘贴即可,图片单独上传
|
||||||
|
========================================
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- ============================================================ -->
|
||||||
|
<!-- 笔记一:秋招面了 10 场都挂了,直到我发现了这个秘密… -->
|
||||||
|
<!-- ============================================================ -->
|
||||||
|
|
||||||
|
📌 封面图:[iPhone 截图风格,展示 AI 面试评分界面 + 大字标题 "面了10场全挂?试试这个"]
|
||||||
|
|
||||||
|
📌 标题:秋招面了 10 场全挂😭后来我做对了这件事
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
秋招面了 10 场,挂了 10 场。
|
||||||
|
每次面完都觉得自己说得挺好,结果杳无音信。
|
||||||
|
|
||||||
|
后来学长推荐我用 AI 模拟面试练一下,我才知道自己问题在哪。
|
||||||
|
|
||||||
|
就是这款叫 <strong>「宇之然AI磁场」</strong> 的小程序,专注校招面试的。它的逻辑是:
|
||||||
|
你回答 → AI 立即评分 + 写改进建议 → 整场面完出一份四维报告
|
||||||
|
|
||||||
|
我第一次模拟才 5.2 分…
|
||||||
|
练了 5 次以后稳定在 7.5+
|
||||||
|
(报告里能看到逻辑、表达、专业度、稳定性四个维度的变化)
|
||||||
|
|
||||||
|
最有用的是它有一个 <strong>「公司真题库」</strong>
|
||||||
|
不是网上搜来的通用题,是真实用户贡献的面经
|
||||||
|
直接搜目标公司,就能看到他们家的面试题长什么样
|
||||||
|
|
||||||
|
缺点也有:
|
||||||
|
- 有时候 AI 追问比较狠,面完会有点emo
|
||||||
|
- 免费次数 5 次,用完了需要按量购买(¥5/份)
|
||||||
|
- 岗位覆盖 20+,冷门岗位题库还在积累中
|
||||||
|
|
||||||
|
但整体来说,0 成本试一下不亏
|
||||||
|
至少比直接上真考场当炮灰强…
|
||||||
|
|
||||||
|
评论区求分享:你秋招准备了多久?
|
||||||
|
|
||||||
|
#秋招 #校招面试 #AI面试 #面试技巧 #应届生求职 #求职干货 #面试模拟 #秋招准备
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- ============================================================ -->
|
||||||
|
<!-- 笔记二:救命!原来面试官是这样打分的… -->
|
||||||
|
<!-- ============================================================ -->
|
||||||
|
|
||||||
|
📌 封面图:[四维雷达图截图 + "面试评分标准" 大字标题]
|
||||||
|
|
||||||
|
📌 标题:🆘面试官打分标准曝光!难怪我挂了
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
面试官手里真的有一张打分表❗
|
||||||
|
|
||||||
|
我用的 AI 面试工具 <strong>「宇之然AI磁场」</strong> 把评分标准做成了四维雷达图,练完发现自己的短板一清二楚👇
|
||||||
|
|
||||||
|
<strong>🔵 逻辑性(权重 30%)</strong>
|
||||||
|
回答有没有结构、能不能说清楚
|
||||||
|
→ 建议用 STAR 法则练 3 次,效果立竿见影
|
||||||
|
|
||||||
|
<strong>🟢 专业度(权重 30%)</strong>
|
||||||
|
对岗位知识的理解深度
|
||||||
|
→ 多做公司调研,少背概念
|
||||||
|
|
||||||
|
<strong>🟡 表达力(权重 20%)</strong>
|
||||||
|
说得清不清楚、自不自然
|
||||||
|
→ 多模拟,对着 AI 练 5 次就会好很多
|
||||||
|
|
||||||
|
<strong>🟠 稳定性(权重 20%)</strong>
|
||||||
|
追问不慌、不会的不硬编
|
||||||
|
→ 这个最难练,但 AI 可以模拟压力场景
|
||||||
|
|
||||||
|
我第一次练只有 5.2 分(尤其是逻辑和稳定性)
|
||||||
|
练了 5 次到 7.5+
|
||||||
|
每次都有评分变化曲线,看得到进步,很有成就感
|
||||||
|
|
||||||
|
秋招党真的可以试试
|
||||||
|
微信搜 <strong>「宇之然AI磁场」</strong> 小程序就行
|
||||||
|
注册就送 5 次,别浪费了~
|
||||||
|
|
||||||
|
#面试技巧 #校招 #秋招 #面试评分 #求职干货 #面试官 #AI面试 #简历
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- ============================================================ -->
|
||||||
|
<!-- 笔记三:双非逆袭大厂|我秋招做对了 3 件事 -->
|
||||||
|
<!-- ============================================================ -->
|
||||||
|
|
||||||
|
📌 封面图:[对比风格 — "双非" vs "大厂 offer" + 三个要点图标]
|
||||||
|
|
||||||
|
📌 标题:双非➡️大厂 offer|秋招我只做对了这 3 件事
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
bg:双非本,0 大厂实习
|
||||||
|
秋招结果:3 个大厂意向书
|
||||||
|
|
||||||
|
复盘了一下,核心做对了 3 件事:
|
||||||
|
|
||||||
|
<strong>1️⃣ 提前 2 个月开始模拟面试</strong>
|
||||||
|
7 月开始用 <strong>「宇之然AI磁场」</strong> 练 AI 面试
|
||||||
|
到 9 月正式面的时候,已经练了 30+ 次
|
||||||
|
面试官问的问题,80% 都练过类似的
|
||||||
|
紧张感?不存在的
|
||||||
|
|
||||||
|
<strong>2️⃣ 把面经当教材刷</strong>
|
||||||
|
面经真的很有用
|
||||||
|
同一个岗位,不同公司问的风格完全不同
|
||||||
|
提前看过真题,面试时就不会被绕晕
|
||||||
|
|
||||||
|
<strong>3️⃣ 面试完必复盘</strong>
|
||||||
|
以前面完就过去了
|
||||||
|
后来每次面完用 AI 生成四维报告
|
||||||
|
看自己哪方面弱 → 专项练习 → 下次面再看有没有进步
|
||||||
|
|
||||||
|
3 个月从 5.2 分到 7.8 分
|
||||||
|
面试真的是可以练出来的
|
||||||
|
|
||||||
|
双非怎么了?练就完了💪
|
||||||
|
|
||||||
|
#秋招 #双非 #大厂offer #校招面试 #面试技巧 #逆袭 #求职经验 #面试模拟
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- ============================================================ -->
|
||||||
|
<!-- 笔记四:面试复盘神器|录音➡️AI 自动分析你的表现 -->
|
||||||
|
<!-- ============================================================ -->
|
||||||
|
|
||||||
|
📌 封面图:[面试复盘流程示意图 — 录音→波形图→分析报告]
|
||||||
|
|
||||||
|
📌 标题:秋招必备!面试录音扔进去,AI 自动出分析报告
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
面完了一场面试,但完全不知道哪里说得好、哪里说得不好?
|
||||||
|
|
||||||
|
别怕!我发现 <strong>「宇之然AI磁场」</strong> 新出了一个超强功能👇
|
||||||
|
|
||||||
|
<strong>面试复盘模式</strong>
|
||||||
|
就是把你的面试录音上传
|
||||||
|
或者直接粘贴转录文本
|
||||||
|
AI 会自动分析:
|
||||||
|
|
||||||
|
- ✅ 逐题评估(每道题答得怎么样)
|
||||||
|
- ✅ 四维评分(逻辑/表达/专业度/稳定性)
|
||||||
|
- ✅ 口语分析(你有没有说太多"然后"、"那个"、"就是"这类填充词)
|
||||||
|
|
||||||
|
我第一次用的时候
|
||||||
|
发现自己 10 分钟说了 37 次 "然后" 😅
|
||||||
|
难怪面试官频频皱眉…
|
||||||
|
|
||||||
|
用 AI 给自己做面试复盘的好处是:
|
||||||
|
- 完全客观,不会因为自我感觉良好而忽略问题
|
||||||
|
- 可以反复看,多次复盘
|
||||||
|
- 没录音的话,粘贴文本也行
|
||||||
|
|
||||||
|
秋招加油姐妹们!工具都给你们了,剩下的靠你们了💪
|
||||||
|
|
||||||
|
#面试复盘 #AI面试 #秋招 #校招 #求职工具 #面试技巧 #口语分析
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- ============================================================ -->
|
||||||
|
<!-- 笔记五:2026 秋招时间表|7 月该做什么? -->
|
||||||
|
<!-- ============================================================ -->
|
||||||
|
|
||||||
|
📌 封面图:[时间轴信息图 — 7 月到 11 月的关键节点]
|
||||||
|
|
||||||
|
📌 标题:2026 秋招时间线|7 月不准备,9 月徒伤悲
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
2026 秋招党注意了⚠️
|
||||||
|
提前批已经开了!7 月是你最后的准备窗口
|
||||||
|
|
||||||
|
<strong>7 月 To Do List 👇</strong>
|
||||||
|
|
||||||
|
✅ 简历定稿(至少改 3 版)
|
||||||
|
✅ 目标公司清单(分梯队:冲刺/稳妥/保底)
|
||||||
|
✅ 每周 3 次模拟面试
|
||||||
|
✅ 研究目标公司业务动态
|
||||||
|
✅ 整理自己的面试问题库
|
||||||
|
|
||||||
|
<strong>8 月:提前批投递</strong>
|
||||||
|
- 大厂提前批 7 月底-8 月
|
||||||
|
- 流程快、hc 多、竞争比正式批小 30%
|
||||||
|
|
||||||
|
<strong>9 月:正式批</strong>
|
||||||
|
- 海投!
|
||||||
|
- 这时候你 7 月的练习就要发挥作用了
|
||||||
|
|
||||||
|
推荐用 <strong>「宇之然AI磁场」</strong> 小程序练习面试
|
||||||
|
我从 7 月开始每周练 3 次
|
||||||
|
到 9 月正式面的时候真的不慌了
|
||||||
|
而且能看到自己的评分在涨
|
||||||
|
那种"我在进步"的感觉太上头了
|
||||||
|
|
||||||
|
收藏这份时间表,从现在开始执行
|
||||||
|
秋招结束后你会感谢自己的💪
|
||||||
|
|
||||||
|
#秋招时间线 #2026秋招 #校招准备 #求职规划 #应届生 #面试模拟 #7月规划
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- ============================================================ -->
|
||||||
|
<!-- 小红书发布指南 -->
|
||||||
|
<!-- ============================================================
|
||||||
|
|
||||||
|
一、图片要求
|
||||||
|
- 封面:1242×1660px(3:4 比例),文字不超过 15 个字
|
||||||
|
- 内图:1080×1440px,3-5 张为宜
|
||||||
|
- 格式:JPG/PNG
|
||||||
|
|
||||||
|
二、正文要求
|
||||||
|
- 每段不超过 3 行
|
||||||
|
- 适当使用 emoji 增加视觉节奏
|
||||||
|
- 关键信息用 **加粗** 或换行突出
|
||||||
|
|
||||||
|
三、标签策略
|
||||||
|
- 大标签(搜索量大):#秋招 #校招面试 #AI面试 #应届生求职
|
||||||
|
- 中小标签(精准):#面试模拟 #面试技巧 #求职干货 #面试复盘
|
||||||
|
|
||||||
|
四、发布节奏
|
||||||
|
- 第 1 周:笔记一(痛点共鸣)+ 笔记五(时间表)
|
||||||
|
- 第 2 周:笔记二(评分科普)+ 笔记四(复盘功能)
|
||||||
|
- 第 3 周:笔记三(用户故事)
|
||||||
|
- 第 4 周:根据数据反馈优化迭代
|
||||||
|
|
||||||
|
五、注意事项
|
||||||
|
- ❌ 正文不出现网址链接
|
||||||
|
- ❌ 不直接留联系方式
|
||||||
|
- ✅ 通过搜索"宇之然AI磁场"引导转化
|
||||||
|
- ✅ 评论区互动引导("你秋招准备了多久?")
|
||||||
|
-->
|
||||||
@@ -0,0 +1,235 @@
|
|||||||
|
# 小红书 · 营销文案
|
||||||
|
|
||||||
|
> 定位: 短平快笔记,真实感强,通过话题标签触达精准用户
|
||||||
|
> 风格: 口语化 + 故事性 + 高信息密度
|
||||||
|
> 策略: 封面吸引点击 → 正文提供价值 → 标签精准触达
|
||||||
|
> 注意: 小红书对引流行为敏感,正文不直接放链接,通过品牌词搜索转化
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 笔记一:秋招面了 10 场都挂了,直到我发现了这个秘密…
|
||||||
|
|
||||||
|
**封面设计**: iPhone 截图风格,展示 AI 面试评分界面 + 大字标题
|
||||||
|
**标题选项**:
|
||||||
|
- 秋招面了 10 场全挂😭后来我做对了这件事
|
||||||
|
- 终于有人把校招面试说清楚了!先练再面真的不一样
|
||||||
|
|
||||||
|
**正文**:
|
||||||
|
|
||||||
|
秋招面了 10 场,挂了 10 场。
|
||||||
|
每次面完都觉得自己说得挺好,结果杳无音信。
|
||||||
|
|
||||||
|
后来学长推荐我用 AI 模拟面试练一下,我才知道自己问题在哪。
|
||||||
|
|
||||||
|
就是这款叫「宇之然AI磁场」的小程序,专注校招面试的。它的逻辑是:
|
||||||
|
你回答 → AI 立即评分 + 写改进建议 → 整场面完出一份四维报告
|
||||||
|
|
||||||
|
我第一次模拟才 5.2 分…
|
||||||
|
练了 5 次以后稳定在 7.5+
|
||||||
|
(报告里能看到逻辑、表达、专业度、稳定性四个维度的变化)
|
||||||
|
|
||||||
|
最有用的是它有一个「公司真题库」
|
||||||
|
不是网上搜来的通用题,是真实用户贡献的面经
|
||||||
|
直接搜目标公司,就能看到他们家的面试题长什么样
|
||||||
|
|
||||||
|
缺点也有:
|
||||||
|
- 有时候 AI 追问比较狠,面完会有点emo
|
||||||
|
- 免费次数 5 次,用完了需要按量购买(¥5/份)
|
||||||
|
- 岗位覆盖 20+,冷门岗位题库还在积累中
|
||||||
|
|
||||||
|
但整体来说,0 成本试一下不亏
|
||||||
|
至少比直接上真考场当炮灰强…
|
||||||
|
|
||||||
|
评论区求分享:你秋招准备了多久?
|
||||||
|
|
||||||
|
#秋招 #校招面试 #AI面试 #面试技巧 #应届生求职 #求职干货 #面试模拟 #秋招准备
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 笔记二:救命!原来面试官是这样打分的…
|
||||||
|
|
||||||
|
**封面设计**: 四维雷达图截图 + "面试评分标准"大字
|
||||||
|
**标题选项**:
|
||||||
|
- 🆘面试官打分标准曝光!难怪我挂了
|
||||||
|
- 校招面试评分标准全公开!四维能力雷达图
|
||||||
|
|
||||||
|
**正文**:
|
||||||
|
|
||||||
|
面试官手里真的有一张打分表❗
|
||||||
|
|
||||||
|
我用的 AI 面试工具「宇之然AI磁场」把评分标准做成了四维雷达图,练完发现自己的短板一清二楚👇
|
||||||
|
|
||||||
|
**🔵逻辑性(权重 30%)**
|
||||||
|
回答有没有结构、能不能说清楚
|
||||||
|
→ 建议用 STAR 法则练 3 次,效果立竿见影
|
||||||
|
|
||||||
|
**🟢专业度(权重 30%)**
|
||||||
|
对岗位知识的理解深度
|
||||||
|
→ 多做公司调研,少背概念
|
||||||
|
|
||||||
|
**🟡表达力(权重 20%)**
|
||||||
|
说得清不清楚、自不自然
|
||||||
|
→ 多模拟,对着 AI 练 5 次就会好很多
|
||||||
|
|
||||||
|
**🟠稳定性(权重 20%)**
|
||||||
|
追问不慌、不会的不硬编
|
||||||
|
→ 这个最难练,但 AI 可以模拟压力场景
|
||||||
|
|
||||||
|
我第一次练只有 5.2 分(尤其是逻辑和稳定性)
|
||||||
|
练了 5 次到 7.5+
|
||||||
|
每次都有评分变化曲线,看得到进步,很有成就感
|
||||||
|
|
||||||
|
秋招党真的可以试试
|
||||||
|
微信搜「宇之然AI磁场」小程序就行
|
||||||
|
注册就送 5 次,别浪费了~
|
||||||
|
|
||||||
|
#面试技巧 #校招 #秋招 #面试评分 #求职干货 #面试官 #AI面试 #简历
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 笔记三:双非逆袭大厂|我秋招做对了 3 件事
|
||||||
|
|
||||||
|
**封面设计**: 对比风格("双非" vs "大厂 offer")+ 三个要点图标
|
||||||
|
**标题选项**:
|
||||||
|
- 双非➡️大厂 offer|秋招我只做对了这 3 件事
|
||||||
|
- 双非秋招逆袭经验|没背景也能拿大厂 offer
|
||||||
|
|
||||||
|
**正文**:
|
||||||
|
|
||||||
|
bg:双非本,0 大厂实习
|
||||||
|
秋招结果:3 个大厂意向书
|
||||||
|
|
||||||
|
复盘了一下,核心做对了 3 件事:
|
||||||
|
|
||||||
|
**1️⃣ 提前 2 个月开始模拟面试**
|
||||||
|
7 月开始用「宇之然AI磁场」练 AI 面试
|
||||||
|
到 9 月正式面的时候,已经练了 30+ 次
|
||||||
|
面试官问的问题,80% 都练过类似的
|
||||||
|
紧张感?不存在的
|
||||||
|
|
||||||
|
**2️⃣ 把面经当教材刷**
|
||||||
|
面经真的很有用
|
||||||
|
同一个岗位,不同公司问的风格完全不同
|
||||||
|
提前看过真题,面试时就不会被绕晕
|
||||||
|
|
||||||
|
**3️⃣ 面试完必复盘**
|
||||||
|
以前面完就过去了
|
||||||
|
后来每次面完用 AI 生成四维报告
|
||||||
|
看自己哪方面弱 → 专项练习 → 下次面再看有没有进步
|
||||||
|
|
||||||
|
3 个月从 5.2 分到 7.8 分
|
||||||
|
面试真的是可以练出来的
|
||||||
|
|
||||||
|
双非怎么了?练就完了💪
|
||||||
|
|
||||||
|
#秋招 #双非 #大厂offer #校招面试 #面试技巧 #逆袭 #求职经验 #面试模拟
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 笔记四:面试复盘神器|录音➡️AI 自动分析你的表现
|
||||||
|
|
||||||
|
**封面设计**: 面试复盘流程示意图(录音→波形图→分析报告)
|
||||||
|
**标题选项**:
|
||||||
|
- 面完不知道怎么复盘?这个 AI 工具帮你自动分析
|
||||||
|
- 秋招必备!面试录音扔进去,AI 自动出分析报告
|
||||||
|
|
||||||
|
**正文**:
|
||||||
|
|
||||||
|
面完了一场面试,但完全不知道哪里说得好、哪里说得不好?
|
||||||
|
|
||||||
|
别怕!我发现「宇之然AI磁场」新出了一个超强功能👇
|
||||||
|
|
||||||
|
**面试复盘模式**
|
||||||
|
就是把你的面试录音上传
|
||||||
|
或者直接粘贴转录文本
|
||||||
|
AI 会自动分析:
|
||||||
|
|
||||||
|
- ✅ 逐题评估(每道题答得怎么样)
|
||||||
|
- ✅ 四维评分(逻辑/表达/专业度/稳定性)
|
||||||
|
- ✅ 口语分析(你有没有说太多"然后"、"那个"、"就是"这类填充词)
|
||||||
|
|
||||||
|
我第一次用的时候
|
||||||
|
发现自己 10 分钟说了 37 次"然后"😅
|
||||||
|
难怪面试官频频皱眉…
|
||||||
|
|
||||||
|
用 AI 给自己做面试复盘的好处是:
|
||||||
|
- 完全客观,不会因为自我感觉良好而忽略问题
|
||||||
|
- 可以反复看,多次复盘
|
||||||
|
- 没录音的话,粘贴文本也行
|
||||||
|
|
||||||
|
秋招加油姐妹们!工具都给你们了,剩下的靠你们了💪
|
||||||
|
|
||||||
|
#面试复盘 #AI面试 #秋招 #校招 #求职工具 #面试技巧 #口语分析
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 笔记五:2026 秋招时间表|7 月该做什么?(附准备清单)
|
||||||
|
|
||||||
|
**封面设计**: 时间轴信息图风格,7 月到 11 月的关键节点
|
||||||
|
**标题选项**:
|
||||||
|
- 2026 秋招时间线|7 月不准备,9 月徒伤悲
|
||||||
|
- 秋招倒计时⏰7 月必须做完这 5 件事
|
||||||
|
|
||||||
|
**正文**:
|
||||||
|
|
||||||
|
2026 秋招党注意了⚠️
|
||||||
|
提前批已经开了!7 月是你最后的准备窗口
|
||||||
|
|
||||||
|
**7 月 To Do List👇**
|
||||||
|
|
||||||
|
✅ 简历定稿(至少改 3 版)
|
||||||
|
✅ 目标公司清单(分梯队:冲刺/稳妥/保底)
|
||||||
|
✅ 每周 3 次模拟面试
|
||||||
|
✅ 研究目标公司业务动态
|
||||||
|
✅ 整理自己的面试问题库
|
||||||
|
|
||||||
|
**8 月:提前批投递**
|
||||||
|
- 大厂提前批 7 月底-8 月
|
||||||
|
- 流程快、hc 多、竞争比正式批小 30%
|
||||||
|
|
||||||
|
**9 月:正式批**
|
||||||
|
- 海投!
|
||||||
|
- 这时候你 7 月的练习就要发挥作用了
|
||||||
|
|
||||||
|
推荐用「宇之然AI磁场」小程序练习面试
|
||||||
|
我从 7 月开始每周练 3 次
|
||||||
|
到 9 月正式面的时候真的不慌了
|
||||||
|
而且能看到自己的评分在涨
|
||||||
|
那种"我在进步"的感觉太上头了
|
||||||
|
|
||||||
|
收藏这份时间表,从现在开始执行
|
||||||
|
秋招结束后你会感谢自己的💪
|
||||||
|
|
||||||
|
#秋招时间线 #2026秋招 #校招准备 #求职规划 #应届生 #面试模拟 #7月规划
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 排版规范
|
||||||
|
|
||||||
|
- 正文每段不超过 3 行
|
||||||
|
- 使用 emoji 符号增加视觉节奏(❗✅💰💪🔥📌)
|
||||||
|
- 关键信息用 `**加粗**` 突出
|
||||||
|
- 每篇笔记配 3-5 张图片(封面 + 截图 + 示意图)
|
||||||
|
- 末尾 5-10 个精准话题标签(大小号交替:大号用 # 小号不用)
|
||||||
|
- 正文不出现网址链接,通过搜索"宇之然AI磁场"引导
|
||||||
|
- 评论区可互动("求问面了哪家"等引导互动)
|
||||||
|
- 封面图上的文字不超过 15 个字,字体醒目
|
||||||
|
|
||||||
|
## 标签词库
|
||||||
|
|
||||||
|
| 大标签(搜索量大) | 中小标签(精准) |
|
||||||
|
|-------------------|-----------------|
|
||||||
|
| #秋招 | #面试模拟 |
|
||||||
|
| #校招面试 | #面试技巧 |
|
||||||
|
| #应届生求职 | #求职干货 |
|
||||||
|
| #AI面试 | #面试复盘 |
|
||||||
|
| #面试 | #面试准备 |
|
||||||
|
|
||||||
|
## 发布节奏
|
||||||
|
|
||||||
|
| 周次 | 笔记 | 主题 |
|
||||||
|
|------|------|------|
|
||||||
|
| 第 1 周 | 笔记一 + 笔记五 | 痛点共鸣 + 时间表 |
|
||||||
|
| 第 2 周 | 笔记二 + 笔记四 | 干货科普 + 功能亮点 |
|
||||||
|
| 第 3 周 | 笔记三 | 用户故事(真实脱敏) |
|
||||||
|
| 第 4 周 | 笔记一(迭代优化版) | 根据数据反馈调整 |
|
||||||
@@ -0,0 +1,188 @@
|
|||||||
|
<!--
|
||||||
|
========================================
|
||||||
|
知乎 · 可直接复制到编辑器
|
||||||
|
使用说明:
|
||||||
|
1. 复制此文件全部内容
|
||||||
|
2. 打开知乎「写回答」或「写文章」
|
||||||
|
3. 粘贴(知乎编辑器支持富文本)
|
||||||
|
4. 替换 [配图:...] 为实际图片
|
||||||
|
========================================
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- ========== 回答一:2026 秋招,应该如何准备? ========== -->
|
||||||
|
|
||||||
|
<h1>2026 秋招,应该如何准备?</h1>
|
||||||
|
|
||||||
|
<div style="margin: 20px 0; text-align: center;">
|
||||||
|
<img src="https://zhiyin.yzrcloud.cn/static/og-image.png" alt="秋招准备" style="max-width: 100%; border-radius: 8px;" />
|
||||||
|
<p style="font-size: 12px; color: #999; margin-top: 5px;">[配图:秋招时间轴 / 信息图]</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>2026 届秋招已经开始了。</p>
|
||||||
|
|
||||||
|
<p>先说时间线:互联网大厂提前批 7 月投递、8 月面试;正式批 8 月底开启、9-10 月密集面试;国企/银行 9-11 月。如果你是 2026 届毕业生,现在就应该开始准备了。</p>
|
||||||
|
|
||||||
|
<p>我从三个角度展开说:<strong>认知准备</strong>、<strong>能力准备</strong>、<strong>信息准备</strong>。</p>
|
||||||
|
|
||||||
|
<h2>一、认知准备:重新理解面试</h2>
|
||||||
|
|
||||||
|
<p>很多人的面试准备方法是错误的——他们以为面试是"展示自己",面试官问什么,他们准备什么。</p>
|
||||||
|
|
||||||
|
<p>但实际情况是:<strong>面试是一场有限时间内的结构化信息交换</strong>。面试官需要在 30-60 分钟内判断你是否胜任这个岗位。这意味着:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>你说的每一句话都要有目的</li>
|
||||||
|
<li>不是你说的越多越好,而是你说的越精准越好</li>
|
||||||
|
<li>面试官的问题看似随意,背后都有考察维度</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>通用的考察维度无非四个:<strong>逻辑性</strong>(结构化表达)、<strong>专业度</strong>(领域深度)、<strong>表达力</strong>(沟通清晰度)、<strong>稳定性</strong>(抗压和应变)。几乎所有面试问题都可以映射到这四个维度上。</p>
|
||||||
|
|
||||||
|
<h2>二、能力准备:刻意练习 + 有效反馈</h2>
|
||||||
|
|
||||||
|
<p>如果你从 7 月开始准备到 9 月正式面试,有大约 60 天的时间窗口。</p>
|
||||||
|
|
||||||
|
<h3>前 30 天:大量输入 + 模拟输出</h3>
|
||||||
|
<ul>
|
||||||
|
<li>每天花 30 分钟研究目标公司的业务和产品</li>
|
||||||
|
<li>建立自己的"面试问题库",按逻辑/专业/表达/稳定四个维度分类</li>
|
||||||
|
<li>每周至少做 3 次模拟面试</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>这里说一下模拟面试的重要性。很多人觉得自己对着镜子练就行了,但这里的核心问题是:<strong>没有反馈的练习很可能是无效的</strong>。你无法判断自己的回答在面试官眼中是好是坏。这就是为什么现在越来越多同学选择使用 AI 模拟面试工具——它们能提供即时、客观的结构化反馈。</p>
|
||||||
|
|
||||||
|
<div style="margin: 20px 0; text-align: center; background: #F6F8FA; padding: 20px; border-radius: 8px;">
|
||||||
|
<p style="font-size: 13px; color: #666;">[配图:AI 面试评分报告截图 / 四维雷达图]</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3>后 30 天:针对性改进 + 真题实战</h3>
|
||||||
|
<ul>
|
||||||
|
<li>根据模拟反馈锁定自己的薄弱维度,集中突破</li>
|
||||||
|
<li>找出目标公司的历年面试题,做针对性练习</li>
|
||||||
|
<li>练习到每个维度的评分都能稳定在 7/10 以上</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2>三、信息准备:打破信息差</h2>
|
||||||
|
|
||||||
|
<p>秋招中最大的不公平不是能力,而是信息差。打破信息差的方法:</p>
|
||||||
|
<ul>
|
||||||
|
<li>关注目标公司的招聘公众号</li>
|
||||||
|
<li>加入校招信息群</li>
|
||||||
|
<li>多刷面经,整理成自己的题库</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>这里顺便推荐一下我们团队做的 AI 面试工具<strong>「宇之然AI磁场(职引)」</strong>,它内置了 20+ 校招热门岗位的模拟面试,每轮回答都有 AI 评分和改进建议,还有基于真实面经的公司题库。关键是注册免费,0 成本体验。微信小程序搜「宇之然AI磁场」就能用。</p>
|
||||||
|
|
||||||
|
<h2>四、核心时间轴</h2>
|
||||||
|
|
||||||
|
<pre style="background: #F6F8FA; padding: 15px; border-radius: 6px; font-size: 14px; line-height: 1.8;">
|
||||||
|
7 月:简历定稿 + 岗位调研 + 模拟面试启动
|
||||||
|
8 月:提前批投递 + 高频模拟
|
||||||
|
9 月:正式批投递 + 真实面试
|
||||||
|
10 月:复盘调整 + 第三批投递
|
||||||
|
11 月:补录捡漏 + 准备春招
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<!-- ========== 回答二:校招面试中,面试官最看重的是什么? ========== -->
|
||||||
|
|
||||||
|
<h1>校招面试中,面试官最看重的是什么?</h1>
|
||||||
|
|
||||||
|
<div style="margin: 20px 0; text-align: center;">
|
||||||
|
<img src="https://zhiyin.yzrcloud.cn/static/og-image.png" alt="面试评分标准" style="max-width: 100%; border-radius: 8px;" />
|
||||||
|
<p style="font-size: 12px; color: #999; margin-top: 5px;">[配图:四维评分雷达图 / 面试打分表示意图]</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>作为校招 AI 面试工具的开发者,我见过 500+ 场模拟面试的评分数据。这个问题我有发言权。</p>
|
||||||
|
|
||||||
|
<p>先给结论:面试官最看重的是 <strong>"这个人未来能不能用"</strong>,而不是"这个人现在有多强"。</p>
|
||||||
|
|
||||||
|
<p>基于这个底层逻辑,面试官的核心考察维度可以分为以下四个:</p>
|
||||||
|
|
||||||
|
<h2>1. 逻辑性(权重约 30%)</h2>
|
||||||
|
<p>能不能把你的经历、观点、方案说清楚?</p>
|
||||||
|
<p>面试官最怕听到"东一榔头西一棒子"的回答。STAR 法则(情境-任务-行动-结果)之所以经典,就是因为它提供了一个清晰的逻辑框架。</p>
|
||||||
|
<p><strong>低分回答</strong>:"我在上家公司做了一个项目,用 Python 做的,效果还不错。"</p>
|
||||||
|
<p><strong>高分回答</strong>:"在上一家公司做支付系统重构时(情境),我负责核心交易模块的设计和开发(任务),采用了分库分表 + 异步对账的方案(行动),最终系统可用性从 99.9% 提升到 99.99%(结果)。"</p>
|
||||||
|
|
||||||
|
<h2>2. 专业度(权重约 30%)</h2>
|
||||||
|
<p>你的知识储备够不够深?这里的新手误区是:把"背概念"当成"懂专业"。面试官随便追一个问题就能识破。</p>
|
||||||
|
|
||||||
|
<h2>3. 表达力(权重约 20%)</h2>
|
||||||
|
<p>面试本质上是沟通。再强的人如果说不清楚,面试官也无法判断。表达力的提升最容易:多练。研究表明,经过 5 次模拟面试后,表达能力平均提升 35%。</p>
|
||||||
|
|
||||||
|
<h2>4. 稳定性(权重约 20%)</h2>
|
||||||
|
<p>被追问时的应变能力、遇到压力场景的情绪控制、承认不足的坦诚度——这些都是稳定性的体现。</p>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<p>这四个维度就是面试官打分表上的核心指标。你可以找一个 AI 面试工具,比如<strong>「宇之然AI磁场(职引)」</strong>,它能按这四个维度给你的回答评分,帮你找到薄弱环节。这些都是可训练的,不用太焦虑。</p>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<!-- ========== 回答三:有哪些好用的 AI 面试工具值得推荐? ========== -->
|
||||||
|
|
||||||
|
<h1>有哪些好用的 AI 面试工具值得推荐?</h1>
|
||||||
|
|
||||||
|
<div style="margin: 20px 0; text-align: center;">
|
||||||
|
<img src="https://zhiyin.yzrcloud.cn/static/og-image.png" alt="AI面试工具" style="max-width: 100%; border-radius: 8px;" />
|
||||||
|
<p style="font-size: 12px; color: #999; margin-top: 5px;">[配图:AI 面试工具对比表 / 功能截图]</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>用过 4-5 款 AI 面试工具,说下真实使用体验。</p>
|
||||||
|
|
||||||
|
<p>市面上的 AI 面试工具主要分两类:一类是通用 AI(ChatGPT、Kimi 等),另一类是垂直面试工具。<strong>两类体验差距非常大。</strong></p>
|
||||||
|
|
||||||
|
<h2>通用 AI 的问题</h2>
|
||||||
|
<ul>
|
||||||
|
<li>问它"模拟面试",它真的只是提问,回答完就说"你答得很好"——没有评分、没有反馈</li>
|
||||||
|
<li>对校招场景不了解,问的问题偏社招</li>
|
||||||
|
<li>没有公司维度、没有岗位针对性</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2>垂直 AI 面试工具的选择标准</h2>
|
||||||
|
<ol>
|
||||||
|
<li><strong>有评分体系</strong>:不只是对话,每轮回答要有评分</li>
|
||||||
|
<li><strong>有维度分析</strong>:能告诉你哪方面弱、哪方面强</li>
|
||||||
|
<li><strong>有公司题库</strong>:不是通用模板,是有针对性的题目</li>
|
||||||
|
<li><strong>有复盘功能</strong>:支持录音回放、逐题分析</li>
|
||||||
|
<li><strong>价格合理</strong>:对在校生友好</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<h2>目前用得比较多的是「宇之然AI磁场(职引)」</h2>
|
||||||
|
<p>特点是专注校招,覆盖 20+ 热门岗位:</p>
|
||||||
|
<ul>
|
||||||
|
<li><strong>AI 模拟面试</strong>:多轮对话 + 实时评分 + 参考回答</li>
|
||||||
|
<li><strong>四维报告</strong>:逻辑/表达/专业度/稳定性 + 优劣势分析</li>
|
||||||
|
<li><strong>公司真题库</strong>:来自用户贡献的真实面经</li>
|
||||||
|
<li><strong>面试复盘</strong>:上传录音或粘贴文本,AI 自动分析</li>
|
||||||
|
<li><strong>AI 择业顾问</strong>:帮你分析适合什么岗位</li>
|
||||||
|
<li><strong>简历诊断</strong>:AI 诊断简历问题</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>免费版注册送 5 次面试机会,完全够你体验一下。微信小程序搜「宇之然AI磁场」就可以。</p>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<!-- ========== 专栏文章:AI 正在改变校招面试的 3 个方式 ========== -->
|
||||||
|
|
||||||
|
<h1>AI 正在改变校招面试的 3 个方式</h1>
|
||||||
|
|
||||||
|
<div style="margin: 20px 0; text-align: center;">
|
||||||
|
<img src="https://zhiyin.yzrcloud.cn/static/og-image.png" alt="AI面试趋势" style="max-width: 100%; border-radius: 8px;" />
|
||||||
|
<p style="font-size: 12px; color: #999; margin-top: 5px;">[配图:AI 面试趋势数据图表]</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>2026 年,接近 60% 的应届生在求职中使用 AI 工具。这不是一个趋势预测——这是已经发生的事实。</p>
|
||||||
|
|
||||||
|
<h2>1. 企业端:AI 面试官走向普及</h2>
|
||||||
|
<p>越来越多企业在大规模校招中使用 AI 面试作为初筛工具。AI 可以同时进行数千场面谈,从语言、表情、回答结构等多维度打分。</p>
|
||||||
|
|
||||||
|
<h2>2. 求职端:AI 面试教练成为标配</h2>
|
||||||
|
<p>过去找人模拟面试,要麻烦学长、同学、导师,时间难约、反馈主观。现在 AI 面试工具可以 24 小时在线,提供标准化的评分和反馈。从我们的数据来看,连续使用 AI 模拟面试 5 次的用户,评分平均提升 23%。</p>
|
||||||
|
|
||||||
|
<h2>3. 内容端:UGC 面经 + 题库形成数据飞轮</h2>
|
||||||
|
<p>用户贡献真实面经 → 整理成公司题库 → 题库反哺下一个用户。每个人既是内容消费者也是贡献者。</p>
|
||||||
|
|
||||||
|
<hr />
|
||||||
@@ -0,0 +1,225 @@
|
|||||||
|
# 知乎 · 营销文案
|
||||||
|
|
||||||
|
> 定位: 专业方法论输出 + 关键词截流,占领校招面试领域的权威认知
|
||||||
|
> 风格: 数据驱动 + 结构化 + 可收藏
|
||||||
|
> 策略: 回答高流量问题 + 发布专栏文章,末尾自然植入工具推荐
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 回答一:2026 秋招,应该如何准备?
|
||||||
|
|
||||||
|
**问题链接**: `zhihu.com/question/xxx`(搜索截流目标,如未存在则自建问题)
|
||||||
|
**关键词**: 秋招准备, 校招流程, 2026秋招, 应届生求职
|
||||||
|
**覆盖意图**: 信息需求(秋招时间线、准备方法)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 回答
|
||||||
|
|
||||||
|
2026 届秋招已经开始了。
|
||||||
|
|
||||||
|
先说时间线:互联网大厂提前批 7 月投递、8 月面试;正式批 8 月底开启、9-10 月密集面试;国企/银行 9-11 月。如果你是 2026 届毕业生,现在就应该开始准备了。
|
||||||
|
|
||||||
|
我从三个角度展开说:**认知准备**、**能力准备**、**信息准备**。
|
||||||
|
|
||||||
|
#### 一、认知准备:重新理解面试
|
||||||
|
|
||||||
|
很多人的面试准备方法是错误的——他们以为面试是"展示自己",面试官问什么,他们准备什么。
|
||||||
|
|
||||||
|
但实际情况是:**面试是一场有限时间内的结构化信息交换**。面试官需要在 30-60 分钟内判断你是否胜任这个岗位。这意味着:
|
||||||
|
- 你说的每一句话都要有目的
|
||||||
|
- 不是你说的越多越好,而是你说的越精准越好
|
||||||
|
- 面试官的问题看似随意,背后都有考察维度
|
||||||
|
|
||||||
|
通用的考察维度无非四个:**逻辑性**(结构化表达)、**专业度**(领域深度)、**表达力**(沟通清晰度)、**稳定性**(抗压和应变)。几乎所有面试问题都可以映射到这四个维度上。
|
||||||
|
|
||||||
|
知道了这个框架,你的准备就有了方向。
|
||||||
|
|
||||||
|
#### 二、能力准备:刻意练习 + 有效反馈
|
||||||
|
|
||||||
|
如果你从 7 月开始准备到 9 月正式面试,有大约 60 天的时间窗口。
|
||||||
|
|
||||||
|
**前 30 天:大量输入 + 模拟输出**
|
||||||
|
|
||||||
|
- 每天花 30 分钟研究目标公司的业务和产品
|
||||||
|
- 建立自己的"面试问题库",按逻辑/专业/表达/稳定四个维度分类
|
||||||
|
- 每周至少做 3 次模拟面试
|
||||||
|
|
||||||
|
这里说一下模拟面试的重要性。很多人觉得自己对着镜子练就行了,但这里的核心问题是:**没有反馈的练习很可能是无效的**。你无法判断自己的回答在面试官眼中是好是坏。这就是为什么现在越来越多同学选择使用 AI 模拟面试工具——它们能提供即时、客观的结构化反馈。
|
||||||
|
|
||||||
|
**后 30 天:针对性改进 + 真题实战**
|
||||||
|
|
||||||
|
- 根据模拟反馈锁定自己的薄弱维度,集中突破
|
||||||
|
- 找出目标公司的历年面试题,做针对性练习
|
||||||
|
- 练习到每个维度的评分都能稳定在 7/10 以上
|
||||||
|
|
||||||
|
#### 三、信息准备:打破信息差
|
||||||
|
|
||||||
|
秋招中最大的不公平不是能力,而是信息差。有的人提前知道了提前批开放、有的人提前知道了面试风格、有的人提前知道了薪资范围。这些信息差直接决定了最终结果。
|
||||||
|
|
||||||
|
打破信息差的方法:
|
||||||
|
- 关注目标公司的招聘公众号
|
||||||
|
- 加入校招信息群
|
||||||
|
- 多刷面经,整理成自己的题库
|
||||||
|
|
||||||
|
这里顺便推荐一下我们团队做的 AI 面试工具「宇之然AI磁场」,它内置了 20+ 校招热门岗位的模拟面试,每轮回答都有 AI 评分和改进建议,还有基于真实面经的公司题库。关键是注册免费,0 成本体验。微信小程序搜「宇之然AI磁场」就能用。
|
||||||
|
|
||||||
|
#### 四、核心时间轴
|
||||||
|
|
||||||
|
```
|
||||||
|
7 月:简历定稿 + 岗位调研 + 模拟面试启动
|
||||||
|
8 月:提前批投递 + 高频模拟
|
||||||
|
9 月:正式批投递 + 真实面试
|
||||||
|
10 月:复盘调整 + 第三批投递
|
||||||
|
11 月:补录捡漏 + 准备春招
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 五、最后说几句
|
||||||
|
|
||||||
|
秋招是一段很难熬的时间。你会被拒绝、被已读不回、被面试官追问到哑口无言。这些都是正常的。
|
||||||
|
|
||||||
|
但你要相信:**面试能力是可训练的**。每一次模拟、每一次复盘、每一次改进,都在让你离 offer 更近一步。
|
||||||
|
|
||||||
|
祝各位秋招顺利。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 回答二:校招面试中,面试官最看重的是什么?
|
||||||
|
|
||||||
|
**关键词**: 校招面试评分, 面试官考察点, 面试技巧, AI 面试评分
|
||||||
|
**覆盖意图**: 信息需求(面试官怎么打分)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 回答
|
||||||
|
|
||||||
|
作为校招 AI 面试工具的开发者,我见过 500+ 场模拟面试的评分数据。这个问题我有发言权。
|
||||||
|
|
||||||
|
先给结论:面试官最看重的是 **"这个人未来能不能用"**,而不是"这个人现在有多强"。
|
||||||
|
|
||||||
|
基于这个底层逻辑,面试官的核心考察维度可以分为以下四个:
|
||||||
|
|
||||||
|
#### 1. 逻辑性(权重约 30%)
|
||||||
|
|
||||||
|
能不能把你的经历、观点、方案说清楚?
|
||||||
|
|
||||||
|
面试官最怕听到"东一榔头西一棒子"的回答。STAR 法则(情境-任务-行动-结果)之所以经典,就是因为它提供了一个清晰的逻辑框架。
|
||||||
|
|
||||||
|
**低分回答**: "我在上家公司做了一个项目,用 Python 做的,效果还不错。"
|
||||||
|
**高分回答**: "在上一家公司做支付系统重构时(情境),我负责核心交易模块的设计和开发(任务),采用了分库分表 + 异步对账的方案(行动),最终系统可用性从 99.9% 提升到 99.99%(结果)。"
|
||||||
|
|
||||||
|
#### 2. 专业度(权重约 30%)
|
||||||
|
|
||||||
|
你的知识储备够不够深?
|
||||||
|
|
||||||
|
这里的新手误区是:把"背概念"当成"懂专业"。面试官随便追一个问题就能识破。
|
||||||
|
|
||||||
|
专业的体现是:你知道自己知道什么,也知道自己不知道什么。
|
||||||
|
|
||||||
|
#### 3. 表达力(权重约 20%)
|
||||||
|
|
||||||
|
面试本质上是沟通。再强的人如果说不清楚,面试官也无法判断。
|
||||||
|
|
||||||
|
表达力的提升最容易:多练。研究表明,经过 5 次模拟面试后,表达能力平均提升 35%。
|
||||||
|
|
||||||
|
#### 4. 稳定性(权重约 20%)
|
||||||
|
|
||||||
|
被追问时的应变能力、遇到压力场景的情绪控制、承认不足的坦诚度——这些都是稳定性的体现。
|
||||||
|
|
||||||
|
高分候选人有一个共同特征:被问到不会的问题时,不慌不乱,坦诚说"这个我不太了解",然后给出自己的分析和思考方向。低分候选人则是硬编、回避闪躲。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
这四个维度就是面试官打分表上的核心指标。你可以找一个 AI 面试工具,比如「宇之然AI磁场」,它能按这四个维度给你的回答评分,帮你找到薄弱环节。这些都是可训练的,不用太焦虑。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 回答三:有哪些好用的 AI 面试工具值得推荐?
|
||||||
|
|
||||||
|
**关键词**: AI 面试工具推荐, 模拟面试, 面试软件, AI 面试
|
||||||
|
**覆盖意图**: 产品需求(搜索工具对比)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 回答
|
||||||
|
|
||||||
|
用过 4-5 款 AI 面试工具,说下真实使用体验。
|
||||||
|
|
||||||
|
市面上的 AI 面试工具主要分两类:一类是通用 AI(ChatGPT、Kimi 等),另一类是垂直面试工具。**两类体验差距非常大。**
|
||||||
|
|
||||||
|
#### 通用 AI 的问题
|
||||||
|
- 问它"模拟面试",它真的只是提问,回答完就说"你答得很好"——没有评分、没有反馈
|
||||||
|
- 对校招场景不了解,问的问题偏社招
|
||||||
|
- 没有公司维度、没有岗位针对性
|
||||||
|
|
||||||
|
#### 垂直 AI 面试工具的选择标准
|
||||||
|
1. **有评分体系**:不只是对话,每轮回答要有评分
|
||||||
|
2. **有维度分析**:能告诉你哪方面弱、哪方面强
|
||||||
|
3. **有公司题库**:不是通用模板,是有针对性的题目
|
||||||
|
4. **有复盘功能**:支持录音回放、逐题分析
|
||||||
|
5. **价格合理**:对在校生友好好
|
||||||
|
|
||||||
|
#### 目前用得比较多的是「宇之然AI磁场」
|
||||||
|
|
||||||
|
特点是专注校招,覆盖 20+ 热门岗位:
|
||||||
|
|
||||||
|
- **AI 模拟面试**:多轮对话 + 实时评分 + 参考回答
|
||||||
|
- **四维报告**:逻辑/表达/专业度/稳定性 + 优劣势分析
|
||||||
|
- **公司真题库**:来自用户贡献的真实面经
|
||||||
|
- **面试复盘**:上传录音或粘贴文本,AI 自动分析
|
||||||
|
- **AI 择业顾问**:帮你分析适合什么岗位
|
||||||
|
- **简历诊断**:AI 诊断简历问题
|
||||||
|
|
||||||
|
免费版注册送 5 次面试机会,完全够你体验一下。微信小程序搜「宇之然AI磁场」就可以。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 专栏文章:AI 正在改变校招面试的 3 个方式
|
||||||
|
|
||||||
|
**关键词**: AI 面试, 校招趋势, 面试科技, 求职工具
|
||||||
|
**覆盖意图**: 趋势信息(建立专业形象的长尾流量)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 正文
|
||||||
|
|
||||||
|
2026 年,接近 60% 的应届生在求职中使用 AI 工具。这不是一个趋势预测——这是已经发生的事实。
|
||||||
|
|
||||||
|
AI 在校招面试领域的影响体现在三个层面:
|
||||||
|
|
||||||
|
#### 1. 企业端:AI 面试官走向普及
|
||||||
|
|
||||||
|
越来越多企业在大规模校招中使用 AI 面试作为初筛工具。这不是替代人类面试官,而是提效——AI 可以同时进行数千场面谈,从语言、表情、回答结构等多维度打分,通过初筛后再由真人面试官深入考察。
|
||||||
|
|
||||||
|
这意味着什么?意味着面试的"第一关"越来越标准化、数据化。**面试能力变成一个可以被客观量化的指标。**
|
||||||
|
|
||||||
|
#### 2. 求职端:AI 面试教练成为标配
|
||||||
|
|
||||||
|
既然企业用 AI 面试,求职者当然也可以用 AI 准备面试。
|
||||||
|
|
||||||
|
过去找人模拟面试,要麻烦学长、同学、导师,时间难约、反馈主观。现在 AI 面试工具可以 24 小时在线,提供标准化的评分和反馈,让练习效率大幅提升。
|
||||||
|
|
||||||
|
从我们的数据来看,连续使用 AI 模拟面试 5 次的用户,评分平均提升 23%。这不是广告话术,是真实数据。
|
||||||
|
|
||||||
|
#### 3. 内容端:UGC 面经 + 题库形成数据飞轮
|
||||||
|
|
||||||
|
这个模式类似大众点评——用户贡献真实面经 → 整理成公司题库 → 题库反哺下一个用户的准备。每个人既是内容消费者也是贡献者。
|
||||||
|
|
||||||
|
这个飞轮一旦转起来,题库质量会持续提升,最终成为求职领域的基础设施。
|
||||||
|
|
||||||
|
#### 对求职者的建议
|
||||||
|
|
||||||
|
AI 工具提高了面试效率,但核心竞争力依然是你的专业技能、逻辑思维和学习能力。工具只是放大器,你的积累才是发动机。
|
||||||
|
|
||||||
|
但反过来想:**当大家都在用 AI 提升效率的时候,不用的人就处在劣势了。**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 排版规范
|
||||||
|
|
||||||
|
- 正文使用 `##` / `###` 分级标题
|
||||||
|
- 重要结论用 `**加粗**` 突出
|
||||||
|
- 数据点用引用或列表展示
|
||||||
|
- 回答末尾 1-2 句自然带出产品推荐
|
||||||
|
- 不堆砌关键词,保持自然语感
|
||||||
|
- 每回答配 1-2 张截图(面试界面/评分报告/数据图)
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
# 生产环境变量
|
# 生产环境变量
|
||||||
VITE_API_BASE_URL=https://zhiyinwx.yzrcloud.cn/api
|
VITE_API_BASE_URL=https://zhiyinwx.yzrcloud.cn/api
|
||||||
VITE_APP_NAME=职引·宇之然AI磁场
|
VITE_APP_NAME=宇之然AI磁场
|
||||||
VITE_APP_DESC=AI模拟面试·简历优化·面经题库·校招求职一站式平台
|
VITE_APP_DESC=AI模拟面试·简历优化·面经题库·校招求职一站式平台
|
||||||
VITE_PROD_API_HOST=https://zhiyinwx.yzrcloud.cn
|
VITE_PROD_API_HOST=https://zhiyinwx.yzrcloud.cn
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8" />
|
<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" />
|
<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" />
|
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" />
|
||||||
<title>职引 - AI模拟面试 | 宇之然AI磁场 · 智能面试练习 · 简历优化 · 面经题库</title>
|
<title>宇之然AI磁场(职引)- AI模拟面试 | 智能面试练习 · 简历优化 · 面经题库</title>
|
||||||
<meta name="description" content="职引是宇之然AI磁场旗下的AI模拟面试平台,提供AI面试官模拟练习、简历智能诊断优化、大厂面经题库、实习推荐等一站式求职服务,帮助你在真实面试前充分准备。" />
|
<meta name="description" content="宇之然AI磁场(原职引)专注校招AI模拟面试,提供AI面试官模拟练习、简历智能诊断优化、大厂面经题库、面试复盘等一站式求职服务,帮助应届生在真实面试前充分准备。" />
|
||||||
<meta name="keywords" content="职引,宇之然AI磁场,AI面试,模拟面试,面试练习,简历优化,求职辅导,AI模拟面试官,面试题库,面经,校招面试,实习面试,简历诊断,面试技巧,AI模拟面试官,大模型面试,校招准备" />
|
<meta name="keywords" content="宇之然AI磁场,职引,AI面试,模拟面试,面试练习,简历优化,求职辅导,AI模拟面试官,面试题库,面经,校招面试,实习面试,简历诊断,面试技巧,AI模拟面试官,大模型面试,校招准备" />
|
||||||
<meta property="og:title" content="职引 - AI模拟面试平台 | 宇之然AI磁场" />
|
<meta property="og:title" content="宇之然AI磁场(职引)- AI模拟面试平台 | 智能面试练习" />
|
||||||
<meta property="og:description" content="AI驱动的一站式求职准备平台,涵盖AI模拟面试、简历优化、面经分享、实习推荐等核心功能。" />
|
<meta property="og:description" content="AI驱动的一站式求职准备平台,涵盖AI模拟面试、简历优化、面经分享、实习推荐等核心功能。" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content="https://zhiyin.yzrcloud.cn" />
|
<meta property="og:url" content="https://zhiyin.yzrcloud.cn" />
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "WebApplication",
|
"@type": "WebApplication",
|
||||||
"name": "职引 - AI模拟面试",
|
"name": "宇之然AI磁场 - AI模拟面试",
|
||||||
"description": "AI驱动的校招求职准备平台,涵盖AI模拟面试、简历智能优化、大厂面经题库、面试复盘、AI择业顾问等一站式功能。",
|
"description": "AI驱动的校招求职准备平台,涵盖AI模拟面试、简历智能优化、大厂面经题库、面试复盘、AI择业顾问等一站式功能。",
|
||||||
"applicationCategory": "EducationalApplication",
|
"applicationCategory": "EducationalApplication",
|
||||||
"operatingSystem": "Web, WeChat Mini Program",
|
"operatingSystem": "Web, WeChat Mini Program",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "职引 - AI模拟面试",
|
"name": "宇之然AI磁场 - AI模拟面试",
|
||||||
"appid": "__UNI__DEV__",
|
"appid": "__UNI__DEV__",
|
||||||
"versionName": "1.0.16",
|
"versionName": "1.0.16",
|
||||||
"versionCode": "116",
|
"versionCode": "116",
|
||||||
"description": "职引 - 宇之然AI磁场旗下AI模拟面试平台。AI面试官模拟练习、简历智能优化、大厂面经题库、面试复盘分析、AI择业顾问,一站式校招求职准备平台。",
|
"description": "宇之然AI磁场(原职引)专注校招AI模拟面试。AI面试官模拟练习、简历智能优化、大厂面经题库、面试复盘分析、AI择业顾问,一站式校招求职准备平台。",
|
||||||
"h5": {
|
"h5": {
|
||||||
"title": "职引 - AI模拟面试 | 宇之然AI磁场",
|
"title": "宇之然AI磁场(职引)- AI模拟面试 | 智能面试练习 · 简历优化 · 面经题库",
|
||||||
"router": {
|
"router": {
|
||||||
"mode": "hash"
|
"mode": "hash"
|
||||||
}
|
}
|
||||||
@@ -16,6 +16,17 @@
|
|||||||
"urlCheck": false,
|
"urlCheck": false,
|
||||||
"__usePrivacyCheck__": true
|
"__usePrivacyCheck__": true
|
||||||
},
|
},
|
||||||
"usingComponents": true
|
"usingComponents": true,
|
||||||
|
"plugins": {
|
||||||
|
"WechatSI": {
|
||||||
|
"version": "0.3.6",
|
||||||
|
"provider": "wx069ba97219f66d99"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"permission": {
|
||||||
|
"scope.record": {
|
||||||
|
"desc": "用于语音输入回答面试问题"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": [
|
||||||
{ "path": "pages/index/index", "style": { "navigationBarTitleText": "AI模拟面试 - 职引" } },
|
{ "path": "pages/index/index", "style": { "navigationBarTitleText": "AI模拟面试" } },
|
||||||
{ "path": "pages/interview/interview", "style": { "navigationBarTitleText": "AI模拟面试练习" } },
|
{ "path": "pages/interview/interview", "style": { "navigationBarTitleText": "AI模拟面试练习" } },
|
||||||
{ "path": "pages/report/report", "style": { "navigationBarTitleText": "面试报告与评分" } },
|
{ "path": "pages/report/report", "style": { "navigationBarTitleText": "面试报告与评分" } },
|
||||||
{ "path": "pages/member/member", "style": { "navigationBarTitleText": "引力值购买" } },
|
{ "path": "pages/member/member", "style": { "navigationBarTitleText": "引力值购买" } },
|
||||||
@@ -12,14 +12,15 @@
|
|||||||
{ "path": "pages/user/user", "style": { "navigationBarTitleText": "个人中心" } },
|
{ "path": "pages/user/user", "style": { "navigationBarTitleText": "个人中心" } },
|
||||||
{ "path": "pages/resume/resume", "style": { "navigationBarTitleText": "简历诊断与优化" } },
|
{ "path": "pages/resume/resume", "style": { "navigationBarTitleText": "简历诊断与优化" } },
|
||||||
{ "path": "pages/internship/internship", "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/admin/admin", "style": { "navigationBarTitleText": "管理后台" } },
|
||||||
{ "path": "pages/result/result", "style": { "navigationBarTitleText": "优化结果" } },
|
{ "path": "pages/result/result", "style": { "navigationBarTitleText": "优化结果" } },
|
||||||
{ "path": "pages/agreement/agreement", "style": { "navigationBarTitleText": "用户协议" } },
|
{ "path": "pages/agreement/agreement", "style": { "navigationBarTitleText": "用户协议" } },
|
||||||
{ "path": "pages/privacy/privacy", "style": { "navigationBarTitleText": "隐私政策" } },
|
{ "path": "pages/privacy/privacy", "style": { "navigationBarTitleText": "隐私政策" } },
|
||||||
{ "path": "pages/share/share", "style": { "navigationBarTitleText": "我的分享" } },
|
{ "path": "pages/share/share", "style": { "navigationBarTitleText": "我的分享" } },
|
||||||
{ "path": "pages/review/review", "style": { "navigationBarTitleText": "面试复盘分析" } },
|
{ "path": "pages/review/review", "style": { "navigationBarTitleText": "面试复盘分析" } },
|
||||||
{ "path": "pages/career/career", "style": { "navigationBarTitleText": "AI择业顾问" } }
|
{ "path": "pages/career/career", "style": { "navigationBarTitleText": "AI择业顾问" } },
|
||||||
|
{ "path": "pages/feedback/feedback", "style": { "navigationBarTitleText": "意见反馈" } }
|
||||||
],
|
],
|
||||||
"tabBar": {
|
"tabBar": {
|
||||||
"color": "#999999",
|
"color": "#999999",
|
||||||
@@ -34,7 +35,7 @@
|
|||||||
},
|
},
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
"navigationBarTitleText": "职引 - AI模拟面试",
|
"navigationBarTitleText": "宇之然AI磁场 - AI模拟面试",
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#ffffff",
|
||||||
"backgroundColor": "#f5f6f7"
|
"backgroundColor": "#f5f6f7"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<view class="logo-area">
|
<view class="logo-area">
|
||||||
<text class="logo">职引</text>
|
<text class="logo">宇之然AI磁场</text>
|
||||||
<text class="version">v{{ appVersion }}</text>
|
<text class="version">v{{ appVersion }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-section">
|
<view class="info-section">
|
||||||
<text class="info-label">产品名称</text>
|
<text class="info-label">产品名称</text>
|
||||||
<text class="info-value">职引 · 宇之然AI磁场</text>
|
<text class="info-value">宇之然AI磁场(职引)</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-section">
|
<view class="info-section">
|
||||||
<text class="info-label">开发团队</text>
|
<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' })
|
const goPrivacy = () => uni.navigateTo({ url: '/pages/privacy/privacy' })
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||||
onShareAppMessage(() => ({ title: '职引 - AI模拟面试平台 | 宇之然AI磁场', path: '/pages/about/about' }))
|
onShareAppMessage(() => ({ title: '宇之然AI磁场 - AI模拟面试平台 | 面试练习·简历优化·面经题库', path: '/pages/about/about' }))
|
||||||
onShareTimeline(() => ({ title: '职引 - AI模拟面试平台 | 宇之然AI磁场' }))
|
onShareTimeline(() => ({ title: '宇之然AI磁场 - AI模拟面试平台 | 面试练习·简历优化·面经题库' }))
|
||||||
// #endif
|
// #endif
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
<text class="tab" :class="{ active: tab === 'share' }" @click="switchTab('share')">分享</text>
|
<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 === 'positions' }" @click="switchTab('positions')">岗位</text>
|
||||||
<text class="tab" :class="{ active: tab === 'analysis' }" @click="switchTab('analysis')">诊断</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>
|
<text class="tab" :class="{ active: tab === 'admins' }" @click="switchTab('admins')">管理员</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -175,13 +176,12 @@
|
|||||||
<text class="admin-action-btn del" @click="deleteResume(r._id, r.title)">删除</text>
|
<text class="admin-action-btn del" @click="deleteResume(r._id, r.title)">删除</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<text class="load-more" v-if="resumeTotal > resumes.length" @click="loadMoreResumes">加载更多</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="loading-text" v-if="resumeLoading">加载中...</text>
|
<text class="loading-text" v-if="resumeLoading">加载中...</text>
|
||||||
<text class="empty-text" v-if="!resumeLoading && resumes.length === 0">暂无简历</text>
|
<text class="empty-text" v-if="!resumeLoading && resumes.length === 0">暂无简历</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 订单 -->
|
<!-- 订单 -->
|
||||||
<view v-if="tab === 'orders'" class="section">
|
<view v-if="tab === 'orders'" class="section">
|
||||||
<view class="tabs in-tab">
|
<view class="tabs in-tab">
|
||||||
@@ -490,6 +490,29 @@
|
|||||||
</view>
|
</view>
|
||||||
</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 v-if="tab === 'admins'" class="section">
|
||||||
<view class="search-bar">
|
<view class="search-bar">
|
||||||
@@ -625,6 +648,11 @@ const sprintPriceDisplay = computed(() => sprintPriceTemp.value.toFixed(1))
|
|||||||
const calcInterviewPrice = () => {
|
const calcInterviewPrice = () => {
|
||||||
// Handled in savePricing via growthPriceTemp / sprintPriceTemp
|
// 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 orders = ref([])
|
||||||
const ordersTotal = ref(0)
|
const ordersTotal = ref(0)
|
||||||
const ordersPage = ref(1)
|
const ordersPage = ref(1)
|
||||||
@@ -746,13 +774,14 @@ const switchTab = (t) => {
|
|||||||
if (t === 'orders') loadOrders()
|
if (t === 'orders') loadOrders()
|
||||||
if (t === 'analysis') loadAnalysis()
|
if (t === 'analysis') loadAnalysis()
|
||||||
if (t === 'share') loadShareRecords()
|
if (t === 'share') loadShareRecords()
|
||||||
|
if (t === 'feedback') loadFeedback()
|
||||||
}
|
}
|
||||||
|
|
||||||
const loadUsers = async () => {
|
const loadUsers = async () => {
|
||||||
usersLoading.value = true
|
usersLoading.value = true
|
||||||
usersPage.value = 1
|
usersPage.value = 1
|
||||||
try {
|
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 }
|
if (res.statusCode === 200) { users.value = res.data.users || []; usersTotal.value = res.data.total || 0 }
|
||||||
} catch (e) { console.error(e) }
|
} catch (e) { console.error(e) }
|
||||||
finally { usersLoading.value = false }
|
finally { usersLoading.value = false }
|
||||||
@@ -761,7 +790,7 @@ const loadUsers = async () => {
|
|||||||
const loadMoreUsers = async () => {
|
const loadMoreUsers = async () => {
|
||||||
usersPage.value++
|
usersPage.value++
|
||||||
try {
|
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 || [])]
|
if (res.statusCode === 200) users.value = [...users.value, ...(res.data.users || [])]
|
||||||
} catch (e) { console.error(e) }
|
} catch (e) { console.error(e) }
|
||||||
}
|
}
|
||||||
@@ -770,7 +799,7 @@ const loadInterviews = async () => {
|
|||||||
ivLoading.value = true
|
ivLoading.value = true
|
||||||
ivPage.value = 1
|
ivPage.value = 1
|
||||||
try {
|
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']
|
const statusMap = ['', 'in_progress', 'completed']
|
||||||
if (ivStatusFilter.value > 0) url += '&status=' + statusMap[ivStatusFilter.value]
|
if (ivStatusFilter.value > 0) url += '&status=' + statusMap[ivStatusFilter.value]
|
||||||
const res = await apiAdmin(url)
|
const res = await apiAdmin(url)
|
||||||
@@ -782,7 +811,7 @@ const loadInterviews = async () => {
|
|||||||
const loadMoreInterviews = async () => {
|
const loadMoreInterviews = async () => {
|
||||||
ivPage.value++
|
ivPage.value++
|
||||||
try {
|
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']
|
const statusMap = ['', 'in_progress', 'completed']
|
||||||
if (ivStatusFilter.value > 0) url += '&status=' + statusMap[ivStatusFilter.value]
|
if (ivStatusFilter.value > 0) url += '&status=' + statusMap[ivStatusFilter.value]
|
||||||
const res = await apiAdmin(url)
|
const res = await apiAdmin(url)
|
||||||
@@ -790,17 +819,31 @@ const loadMoreInterviews = async () => {
|
|||||||
} catch (e) { console.error(e) }
|
} catch (e) { console.error(e) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const resumePage = ref(1)
|
||||||
|
const resumeTotal = ref(0)
|
||||||
|
|
||||||
const loadResumes = async () => {
|
const loadResumes = async () => {
|
||||||
resumeLoading.value = true
|
resumeLoading.value = true
|
||||||
|
resumePage.value = 1
|
||||||
try {
|
try {
|
||||||
let url = '/resumes?page=1&limit=20'
|
let url = '/resumes?page=1&limit=10'
|
||||||
if (resumeKeyword.value) url += '&keyword=' + encodeURIComponent(resumeKeyword.value)
|
if (resumeKeyword.value) url += '&keyword=' + encodeURIComponent(resumeKeyword.value)
|
||||||
const res = await apiAdmin(url)
|
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) }
|
} catch (e) { console.error(e) }
|
||||||
finally { resumeLoading.value = false }
|
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) => {
|
const deleteResume = (id, title) => {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '删除简历', content: `确定删除"${title}"?`,
|
title: '删除简历', content: `确定删除"${title}"?`,
|
||||||
@@ -1048,6 +1091,39 @@ const loadShareVisitors = async () => {
|
|||||||
finally { shareLoading.value = false }
|
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) => {
|
const openCreditModal = (user) => {
|
||||||
creditGravity.value = user.gravity ?? 0
|
creditGravity.value = user.gravity ?? 0
|
||||||
creditModal.value = { show: true, user }
|
creditModal.value = { show: true, user }
|
||||||
@@ -1227,4 +1303,19 @@ onMounted(() => { doVerify() })
|
|||||||
.order-actions-bar { display: flex; gap: 8rpx; margin-top: 6rpx; }
|
.order-actions-bar { display: flex; gap: 8rpx; margin-top: 6rpx; }
|
||||||
.admin-email { font-size: 20rpx; color: #6B7280; }
|
.admin-email { font-size: 20rpx; color: #6B7280; }
|
||||||
.resume-user.email { font-size: 18rpx; 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>
|
</style>
|
||||||
|
|||||||
@@ -111,8 +111,8 @@ import { onShow } from '@dcloudio/uni-app'
|
|||||||
import { api } from '../../config'
|
import { api } from '../../config'
|
||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
onShareAppMessage(() => ({ title: '职引 - AI择业顾问 | 专业分析+岗位推荐', path: '/pages/career/career' }))
|
onShareAppMessage(() => ({ title: '宇之然AI磁场 - AI择业顾问 | 专业分析+岗位推荐', path: '/pages/career/career' }))
|
||||||
onShareTimeline(() => ({ title: '职引 - AI择业顾问 | 专业分析+岗位推荐' }))
|
onShareTimeline(() => ({ title: '宇之然AI磁场 - AI择业顾问 | 专业分析+岗位推荐' }))
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
const grades = ['大一', '大二', '大三', '大四', '研一', '研二', '研三', '已毕业']
|
const grades = ['大一', '大二', '大三', '大四', '研一', '研二', '研三', '已毕业']
|
||||||
|
|||||||
@@ -85,8 +85,8 @@ import { onLoad } from '@dcloudio/uni-app'
|
|||||||
import { api } from '../../config'
|
import { api } from '../../config'
|
||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
onShareAppMessage(() => ({ title: '职引 - 分享面经 | 共建大厂面试题库', path: '/pages/contribute/contribute' }))
|
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 分享面经 | 共建大厂面试题库', path: '/pages/contribute/contribute' }))
|
||||||
onShareTimeline(() => ({ title: '职引 - 分享面经 | 共建大厂面试题库' }))
|
onShareTimeline(() => ({ title: '宇之然AI磁场 - 分享面经 | 共建大厂面试题库' }))
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
const interviewId = ref('')
|
const interviewId = ref('')
|
||||||
|
|||||||
@@ -0,0 +1,113 @@
|
|||||||
|
<template>
|
||||||
|
<view class="page">
|
||||||
|
<view class="form-card">
|
||||||
|
<text class="section-title">反馈类型</text>
|
||||||
|
<view class="type-row">
|
||||||
|
<view class="type-option" :class="{ active: type === 'bug' }" @click="type = 'bug'">
|
||||||
|
<text class="type-icon">🐛</text>
|
||||||
|
<text class="type-label">问题反馈</text>
|
||||||
|
</view>
|
||||||
|
<view class="type-option" :class="{ active: type === 'suggestion' }" @click="type = 'suggestion'">
|
||||||
|
<text class="type-icon">💡</text>
|
||||||
|
<text class="type-label">改进建议</text>
|
||||||
|
</view>
|
||||||
|
<view class="type-option" :class="{ active: type === 'praise' }" @click="type = 'praise'">
|
||||||
|
<text class="type-icon">👍</text>
|
||||||
|
<text class="type-label">点赞鼓励</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="form-card">
|
||||||
|
<text class="section-title">反馈内容 <text class="required">*</text></text>
|
||||||
|
<textarea class="content-input" v-model="content" placeholder="请详细描述您的问题或建议,这将帮助我们持续改进产品..." :maxlength="1000" :auto-height="true" />
|
||||||
|
<text class="char-count">{{ content.length }}/1000</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="form-card">
|
||||||
|
<text class="section-title">联系方式(选填)</text>
|
||||||
|
<input class="contact-input" v-model="contact" placeholder="手机号或微信号,方便我们联系您" />
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<button class="submit-btn" :class="{ disabled: !content.trim() || submitting }" @click="submitFeedback" :disabled="submitting">
|
||||||
|
{{ submitting ? '提交中...' : '提交反馈' }}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<view class="toast-success" v-if="submitted">
|
||||||
|
<text class="toast-icon">✅</text>
|
||||||
|
<text class="toast-text">感谢您的反馈!我们会认真处理。</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { ref } from 'vue'
|
||||||
|
import { api } from '../../config'
|
||||||
|
|
||||||
|
const type = ref('suggestion')
|
||||||
|
const content = ref('')
|
||||||
|
const contact = ref('')
|
||||||
|
const submitting = ref(false)
|
||||||
|
const submitted = ref(false)
|
||||||
|
|
||||||
|
const submitFeedback = async () => {
|
||||||
|
if (!content.value.trim() || submitting.value) return
|
||||||
|
submitting.value = true
|
||||||
|
try {
|
||||||
|
const token = uni.getStorageSync('token')
|
||||||
|
const res = await uni.request({
|
||||||
|
url: api('/feedback'),
|
||||||
|
method: 'POST',
|
||||||
|
header: { 'Authorization': `Bearer ${token}`, 'Content-Type': 'application/json' },
|
||||||
|
data: { type: type.value, content: content.value.trim(), contact: contact.value.trim() },
|
||||||
|
})
|
||||||
|
if (res.statusCode >= 200 && res.statusCode < 300) {
|
||||||
|
submitted.value = true
|
||||||
|
} else {
|
||||||
|
uni.showToast({ title: res.data?.message || '提交失败', icon: 'none' })
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
uni.showToast({ title: '提交失败,请重试', icon: 'none' })
|
||||||
|
} finally {
|
||||||
|
submitting.value = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
|
import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||||
|
onShareAppMessage(() => ({ title: '意见反馈 - 宇之然AI磁场', path: '/pages/feedback/feedback' }))
|
||||||
|
onShareTimeline(() => ({ title: '意见反馈 - 宇之然AI磁场' }))
|
||||||
|
// #endif
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.page { background: var(--color-bg); min-height: 100vh; padding: 32rpx; }
|
||||||
|
.form-card { background: #FFF; border-radius: var(--radius-lg); padding: 28rpx 32rpx; margin-bottom: 20rpx; }
|
||||||
|
.section-title { font-size: 26rpx; font-weight: 600; color: var(--color-text); display: block; margin-bottom: 20rpx; }
|
||||||
|
.required { color: #EF4444; }
|
||||||
|
.type-row { display: flex; gap: 16rpx; }
|
||||||
|
.type-option {
|
||||||
|
flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8rpx;
|
||||||
|
padding: 20rpx 12rpx; border-radius: var(--radius-md); border: 2rpx solid var(--color-border);
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
.type-option.active { border-color: var(--color-primary); background: #EEF2FF; }
|
||||||
|
.type-icon { font-size: 36rpx; }
|
||||||
|
.type-label { font-size: 22rpx; color: var(--color-text-secondary); }
|
||||||
|
.type-option.active .type-label { color: var(--color-primary); font-weight: 600; }
|
||||||
|
.content-input { width: 100%; font-size: 26rpx; color: var(--color-text); line-height: 1.7; min-height: 200rpx; padding: 0; }
|
||||||
|
.char-count { text-align: right; font-size: 20rpx; color: var(--color-text-tertiary); margin-top: 8rpx; }
|
||||||
|
.contact-input { width: 100%; font-size: 26rpx; color: var(--color-text); padding: 8rpx 0; }
|
||||||
|
.submit-btn {
|
||||||
|
width: 100%; height: 88rpx; line-height: 88rpx;
|
||||||
|
background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-mid));
|
||||||
|
color: #FFF; border-radius: var(--radius-md); font-size: 28rpx; font-weight: 600; border: none;
|
||||||
|
}
|
||||||
|
.submit-btn.disabled { background: var(--color-border); }
|
||||||
|
.toast-success {
|
||||||
|
margin-top: 32rpx; background: #ECFDF5; border-radius: var(--radius-md);
|
||||||
|
padding: 24rpx; display: flex; align-items: center; gap: 12rpx;
|
||||||
|
}
|
||||||
|
.toast-icon { font-size: 32rpx; }
|
||||||
|
.toast-text { font-size: 26rpx; color: #065F46; line-height: 1.5; }
|
||||||
|
</style>
|
||||||
@@ -67,8 +67,8 @@ import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
|||||||
import { api } from '../../config'
|
import { api } from '../../config'
|
||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
onShareAppMessage(() => ({ title: '职引 - 面经与面试记录 | 大厂面经题库', path: '/pages/history/history' }))
|
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 面经与面试记录 | 大厂面经题库', path: '/pages/history/history' }))
|
||||||
onShareTimeline(() => ({ title: '职引 - 面经与面试记录 | 大厂面经题库' }))
|
onShareTimeline(() => ({ title: '宇之然AI磁场 - 面经与面试记录 | 大厂面经题库' }))
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
const filter = ref('all')
|
const filter = ref('all')
|
||||||
|
|||||||
@@ -100,15 +100,14 @@
|
|||||||
<text class="daily-action primary" @click="goInterview">模拟练习 →</text>
|
<text class="daily-action primary" @click="goInterview">模拟练习 →</text>
|
||||||
</view>
|
</view>
|
||||||
</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">
|
<view class="daily-guest-top">
|
||||||
<text class="daily-guest-icon">🔒</text>
|
|
||||||
<view class="daily-guest-body">
|
<view class="daily-guest-body">
|
||||||
<text class="daily-guest-title">登录后获取今日面试题</text>
|
<text class="daily-guest-title">点击加载面试题目</text>
|
||||||
<text class="daily-guest-desc">每日一道校招真题,持续积累面试经验</text>
|
<text class="daily-guest-desc">每日一道校招真题,持续积累面试经验</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<text class="daily-action primary">立即登录 →</text>
|
<text class="daily-action primary">换一题 →</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -194,8 +193,8 @@ import { onShow } from '@dcloudio/uni-app'
|
|||||||
import { api } from '../../config'
|
import { api } from '../../config'
|
||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
onShareAppMessage(() => ({ title: '职引 - AI模拟面试 | 校招求职一站式平台', path: '/pages/index/index' }))
|
onShareAppMessage(() => ({ title: '宇之然AI磁场 - AI模拟面试 | 校招求职一站式平台', path: '/pages/index/index' }))
|
||||||
onShareTimeline(() => ({ title: '职引 - AI模拟面试 | 校招求职一站式平台' }))
|
onShareTimeline(() => ({ title: '宇之然AI磁场 - AI模拟面试 | 校招求职一站式平台' }))
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
const userInfo = ref(null)
|
const userInfo = ref(null)
|
||||||
@@ -241,15 +240,13 @@ onMounted(async () => {
|
|||||||
// 每日一题
|
// 每日一题
|
||||||
try {
|
try {
|
||||||
const t = uni.getStorageSync('token')
|
const t = uni.getStorageSync('token')
|
||||||
if (t) {
|
|
||||||
const qres = await uni.request({
|
const qres = await uni.request({
|
||||||
url: api('/daily-question'), method: 'GET',
|
url: api('/daily-question'), method: 'GET',
|
||||||
header: { 'Authorization': `Bearer ${t}` }
|
header: t ? { 'Authorization': `Bearer ${t}` } : {}
|
||||||
})
|
})
|
||||||
if (qres.statusCode === 200 && qres.data) {
|
if (qres.statusCode === 200 && qres.data) {
|
||||||
dailyQuestion.value = qres.data
|
dailyQuestion.value = qres.data
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} catch (e) { /* silent */ }
|
} catch (e) { /* silent */ }
|
||||||
|
|
||||||
// 热门岗位
|
// 热门岗位
|
||||||
@@ -266,13 +263,11 @@ const refreshDaily = async () => {
|
|||||||
showAnswer.value = false
|
showAnswer.value = false
|
||||||
try {
|
try {
|
||||||
const t = uni.getStorageSync('token')
|
const t = uni.getStorageSync('token')
|
||||||
if (t) {
|
|
||||||
const qres = await uni.request({
|
const qres = await uni.request({
|
||||||
url: api('/daily-question'), method: 'GET',
|
url: api('/daily-question'), method: 'GET',
|
||||||
header: { 'Authorization': `Bearer ${t}` }
|
header: t ? { 'Authorization': `Bearer ${t}` } : {}
|
||||||
})
|
})
|
||||||
if (qres.statusCode === 200 && qres.data) dailyQuestion.value = qres.data
|
if (qres.statusCode === 200 && qres.data) dailyQuestion.value = qres.data
|
||||||
}
|
|
||||||
} catch (e) { /* silent */ }
|
} catch (e) { /* silent */ }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<view class="progress-fill" :style="{ width: progressPercent + '%' }"></view>
|
<view class="progress-fill" :style="{ width: progressPercent + '%' }"></view>
|
||||||
</view>
|
</view>
|
||||||
<text class="topbar-timer">⏱ {{ formatTime }}</text>
|
<text class="topbar-timer">⏱ {{ formatTime }}</text>
|
||||||
|
<text class="topbar-round" v-if="answeredCount > 0">第 {{ answeredCount }} 题</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="topbar-right">
|
<view class="topbar-right">
|
||||||
<text class="avatar-toggle" @click="avatarMode = !avatarMode">
|
<text class="avatar-toggle" @click="avatarMode = !avatarMode">
|
||||||
@@ -38,10 +39,15 @@
|
|||||||
<!-- Chat area (both modes) -->
|
<!-- Chat area (both modes) -->
|
||||||
<scroll-view class="chat-area" scroll-y :scroll-into-view="scrollToId" :scroll-with-animation="true" :class="{ 'chat-compact': avatarMode }">
|
<scroll-view class="chat-area" scroll-y :scroll-into-view="scrollToId" :scroll-with-animation="true" :class="{ 'chat-compact': avatarMode }">
|
||||||
<view v-for="(msg, idx) in messages" :key="idx" :id="'msg-' + idx" class="msg-row" :class="msg.role">
|
<view v-for="(msg, idx) in messages" :key="idx" :id="'msg-' + idx" class="msg-row" :class="msg.role">
|
||||||
|
<view v-if="msg.role === 'ai'" class="msg-avatar ai-avatar">🤖</view>
|
||||||
|
<view class="msg-body">
|
||||||
|
<view class="msg-label">{{ msg.role === 'ai' ? '面试官' : '我' }}</view>
|
||||||
<view class="msg-bubble" :class="msg.role">
|
<view class="msg-bubble" :class="msg.role">
|
||||||
<text>{{ msg.content }}</text>
|
<text>{{ msg.content }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view v-if="msg.role === 'user'" class="msg-avatar user-avatar">👤</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class="msg-row ai" v-if="aiLoading">
|
<view class="msg-row ai" v-if="aiLoading">
|
||||||
<view class="typing">
|
<view class="typing">
|
||||||
@@ -55,14 +61,18 @@
|
|||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
<view class="input-bar" v-if="!isComplete">
|
<view class="input-bar" v-if="!isComplete">
|
||||||
<view class="mic-btn" :class="{ recording: isRecording }" @touchstart="startRecord" @touchend="stopRecord" @touchcancel="stopRecord" @mousedown="startRecord" @mouseup="stopRecord" @mouseleave="stopRecord">
|
<view class="mic-wrap">
|
||||||
<text class="mic-icon">🎤</text>
|
<view class="mic-btn" :class="{ recording: isRecording }" @click="toggleRecord">
|
||||||
|
<text class="mic-icon">{{ isRecording ? '🔴' : '🎤' }}</text>
|
||||||
|
<text class="mic-label" v-if="isRecording">{{ recordingDuration }}s</text>
|
||||||
|
</view>
|
||||||
|
<text class="mic-hint" v-if="isRecording">点击结束</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="input-box">
|
<view class="input-box">
|
||||||
<textarea class="input-area" v-model="inputText" placeholder="输入你的回答..." :auto-height="true" :maxlength="2000" :disabled="aiLoading" @confirm="sendAnswer" />
|
<textarea class="input-area" v-model="inputText" placeholder="点击🎤开始语音面试或直接输入文字回答" :auto-height="true" :maxlength="2000" :disabled="aiLoading || isRecording" @confirm="sendAnswer" />
|
||||||
</view>
|
</view>
|
||||||
<view class="send-btn" :class="{ disabled: (!inputText.trim() && !isRecording) || aiLoading }" @click="sendAnswer">
|
<view class="send-btn" :class="{ disabled: !inputText.trim() || isRecording || aiLoading }" @click="sendAnswer">
|
||||||
<text class="send-icon">{{ isRecording ? '◉' : '➤' }}</text>
|
<text class="send-icon">➤</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -112,7 +122,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed, onMounted, onBeforeUnmount, nextTick } from 'vue'
|
import { ref, computed, watch, onMounted, onBeforeUnmount, nextTick } from 'vue'
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
import { onLoad, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
import { onLoad, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||||
// #endif
|
// #endif
|
||||||
@@ -123,8 +133,8 @@ import { api, API_ENDPOINTS } from '../../config'
|
|||||||
import { checkAuth } from '../../utils/auth'
|
import { checkAuth } from '../../utils/auth'
|
||||||
import DigitalHuman from '../../components/digital-human.vue'
|
import DigitalHuman from '../../components/digital-human.vue'
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
onShareAppMessage(() => ({ title: '职引 - AI模拟面试 | 数字人面试官实战练习', path: '/pages/interview/interview' }))
|
onShareAppMessage(() => ({ title: '宇之然AI磁场 - AI模拟面试 | 数字人面试官实战练习', path: '/pages/interview/interview' }))
|
||||||
onShareTimeline(() => ({ title: '职引 - AI模拟面试 | 数字人面试官实战练习' }))
|
onShareTimeline(() => ({ title: '宇之然AI磁场 - AI模拟面试 | 数字人面试官实战练习' }))
|
||||||
// #endif
|
// #endif
|
||||||
const messages = ref([{ role: 'ai', content: '你好!我是 AI 面试官,请选择岗位开始模拟面试!' }])
|
const messages = ref([{ role: 'ai', content: '你好!我是 AI 面试官,请选择岗位开始模拟面试!' }])
|
||||||
const inputText = ref('')
|
const inputText = ref('')
|
||||||
@@ -146,15 +156,63 @@ const aiAmplitudeData = ref([])
|
|||||||
const isSpeaking = ref(false)
|
const isSpeaking = ref(false)
|
||||||
const dhRef = ref(null)
|
const dhRef = ref(null)
|
||||||
const isRecording = ref(false)
|
const isRecording = ref(false)
|
||||||
let recorder = null
|
const recordingDuration = ref(0)
|
||||||
|
let manager = null
|
||||||
|
let recordTimer = null
|
||||||
|
|
||||||
let timerSeconds = 0
|
|
||||||
|
function initRecorder() {
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
|
if (manager) return
|
||||||
|
try {
|
||||||
|
const plugin = requirePlugin('WechatSI')
|
||||||
|
manager = plugin.getRecordRecognitionManager()
|
||||||
|
manager.onStart = () => {
|
||||||
|
console.log('[WechatSI] start')
|
||||||
|
isRecording.value = true
|
||||||
|
inputText.value = ''
|
||||||
|
recordingDuration.value = 0
|
||||||
|
recordTimer = setInterval(() => { recordingDuration.value++ }, 1000)
|
||||||
|
}
|
||||||
|
manager.onRecognize = (res) => {
|
||||||
|
if (res?.result?.trim()) inputText.value = res.result.trim()
|
||||||
|
}
|
||||||
|
manager.onStop = (res) => {
|
||||||
|
isRecording.value = false
|
||||||
|
recordingDuration.value = 0
|
||||||
|
if (recordTimer) { clearInterval(recordTimer); recordTimer = null }
|
||||||
|
const text = res?.result?.trim()
|
||||||
|
if (text && text.length >= 2) {
|
||||||
|
inputText.value = text
|
||||||
|
sendAnswer()
|
||||||
|
} else if (text && text.length === 1) {
|
||||||
|
uni.showToast({ title: '语音过短,请重试', icon: 'none' })
|
||||||
|
} else if (!text) {
|
||||||
|
uni.showToast({ title: '未检测到语音,请重试', icon: 'none' })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
manager.onError = (res) => {
|
||||||
|
console.error('[WechatSI] error:', JSON.stringify(res))
|
||||||
|
isRecording.value = false
|
||||||
|
recordingDuration.value = 0
|
||||||
|
if (recordTimer) { clearInterval(recordTimer); recordTimer = null }
|
||||||
|
const msg = res?.errMsg?.includes('permission') ? '请允许录音权限' : '语音识别失败,请重试'
|
||||||
|
uni.showToast({ title: msg, icon: 'none' })
|
||||||
|
manager = null
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.error('WechatSI plugin init failed:', e)
|
||||||
|
manager = null
|
||||||
|
}
|
||||||
|
// #endif
|
||||||
|
}
|
||||||
|
|
||||||
|
const timerSeconds = ref(0)
|
||||||
let timerInterval = null
|
let timerInterval = null
|
||||||
|
|
||||||
let MAX_QUESTIONS = 10
|
let MAX_QUESTIONS = 10
|
||||||
const progressPercent = computed(() => Math.min((answeredCount.value / MAX_QUESTIONS) * 100, 100))
|
const progressPercent = computed(() => Math.min((answeredCount.value / MAX_QUESTIONS) * 100, 100))
|
||||||
const formatTime = computed(() => {
|
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')}`
|
return `${String(m).padStart(2, '0')}:${String(s).padStart(2, '0')}`
|
||||||
})
|
})
|
||||||
const token = () => uni.getStorageSync('token') || ''
|
const token = () => uni.getStorageSync('token') || ''
|
||||||
@@ -163,7 +221,7 @@ onLoad((options) => {
|
|||||||
if (options?.position) {
|
if (options?.position) {
|
||||||
const pos = decodeURIComponent(options.position)
|
const pos = decodeURIComponent(options.position)
|
||||||
position.value = pos
|
position.value = pos
|
||||||
messages.value = [{ role: 'ai', content: `你好!我是你的专属 ${pos} 面试官,准备好了就开始吧!` }]
|
messages.value = [{ role: 'ai', content: `你好!我是你的专属 ${pos} 面试官。准备好后发送任意消息,我会立即开始面试并给出第一个问题。` }]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -185,21 +243,22 @@ const loadPositions = async () => {
|
|||||||
const selectPosition = (pos) => {
|
const selectPosition = (pos) => {
|
||||||
position.value = pos.name
|
position.value = pos.name
|
||||||
showPositionPicker.value = false
|
showPositionPicker.value = false
|
||||||
messages.value = [{ role: 'ai', content: `你好!我是你的专属 ${pos.name} 面试官,准备好了就开始吧!` }]
|
messages.value = [{ role: 'ai', content: `你好!我是你的专属 ${pos.name} 面试官。准备好后发送任意消息,我会立即开始面试并给出第一个问题。` }]
|
||||||
startInterview()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
timerInterval = setInterval(() => timerSeconds++, 1000)
|
initRecorder()
|
||||||
|
timerInterval = setInterval(() => timerSeconds.value++, 1000)
|
||||||
if (!position.value) {
|
if (!position.value) {
|
||||||
// 未传入岗位,展示选择弹窗(无论是否登录)
|
|
||||||
loadPositions()
|
loadPositions()
|
||||||
showPositionPicker.value = true
|
showPositionPicker.value = true
|
||||||
} else if (token()) {
|
|
||||||
startInterview()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
watch(isComplete, (val) => {
|
||||||
|
if (val) clearInterval(timerInterval)
|
||||||
|
})
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
clearInterval(timerInterval)
|
clearInterval(timerInterval)
|
||||||
})
|
})
|
||||||
@@ -226,9 +285,13 @@ const startInterview = async () => {
|
|||||||
})
|
})
|
||||||
if (res.statusCode >= 200 && res.statusCode < 300 && res.data) {
|
if (res.statusCode >= 200 && res.statusCode < 300 && res.data) {
|
||||||
interviewId.value = res.data.id
|
interviewId.value = res.data.id
|
||||||
messages.value = res.data.messages || messages.value
|
|
||||||
answeredCount.value = res.data.questionCount || 0
|
answeredCount.value = res.data.questionCount || 0
|
||||||
if (res.data.totalQuestions) MAX_QUESTIONS = res.data.totalQuestions
|
if (res.data.totalQuestions) MAX_QUESTIONS = res.data.totalQuestions
|
||||||
|
// 将后端返回的 AI 消息追加入对话,不替换已有消息(保留用户已发的准备消息)
|
||||||
|
if (res.data.messages?.length) {
|
||||||
|
const aiMsgs = res.data.messages.filter(m => m.role === 'ai')
|
||||||
|
if (aiMsgs.length > 0) messages.value.push(...aiMsgs)
|
||||||
|
}
|
||||||
// Speak first question in avatar mode
|
// Speak first question in avatar mode
|
||||||
if (avatarMode.value && res.data.messages?.length) {
|
if (avatarMode.value && res.data.messages?.length) {
|
||||||
const last = res.data.messages[res.data.messages.length - 1]
|
const last = res.data.messages[res.data.messages.length - 1]
|
||||||
@@ -255,14 +318,20 @@ const startInterview = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const sendAnswer = async () => {
|
const sendAnswer = async () => {
|
||||||
if (!inputText.value.trim() || aiLoading.value || isComplete.value) return
|
if (!inputText.value.trim() || aiLoading.value || isRecording.value || isComplete.value) return
|
||||||
if (!token()) { checkLogin(); return }
|
if (!token()) { checkLogin(); return }
|
||||||
|
const answer = inputText.value.trim()
|
||||||
|
|
||||||
|
// 首次发送:不把用户消息当答案提交,而是先创建面试获取第一个问题
|
||||||
if (!interviewId.value) {
|
if (!interviewId.value) {
|
||||||
|
messages.value.push({ role: 'user', content: answer })
|
||||||
|
inputText.value = ''
|
||||||
|
scrollToBottom()
|
||||||
await startInterview()
|
await startInterview()
|
||||||
if (!interviewId.value) return // creation failed, don't discard answer
|
// startInterview 成功后已经把第一个问题追加到 messages 了
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const answer = inputText.value.trim()
|
|
||||||
messages.value.push({ role: 'user', content: answer })
|
messages.value.push({ role: 'user', content: answer })
|
||||||
inputText.value = ''
|
inputText.value = ''
|
||||||
scrollToBottom()
|
scrollToBottom()
|
||||||
@@ -353,51 +422,28 @@ const confirmExit = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function startRecord() {
|
function toggleRecord() {
|
||||||
if (aiLoading.value || isComplete.value) return
|
if (aiLoading.value || isComplete.value) return
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
isRecording.value = true
|
if (!isRecording.value) {
|
||||||
recorder = uni.getRecorderManager()
|
if (!manager) initRecorder()
|
||||||
recorder.onStart(() => {})
|
if (!manager) {
|
||||||
recorder.onError(() => { isRecording.value = false; uni.showToast({ title: '录音失败', icon: 'none' }) })
|
uni.showToast({ title: '语音功能初始化失败', icon: 'none' })
|
||||||
recorder.onStop(async (res) => {
|
|
||||||
if (!res.tempFilePath) return
|
|
||||||
const audioPath = res.tempFilePath
|
|
||||||
try {
|
|
||||||
const uploadRes = await uni.uploadFile({
|
|
||||||
url: api(API_ENDPOINTS.TTS.ASR),
|
|
||||||
filePath: audioPath,
|
|
||||||
name: 'audio',
|
|
||||||
header: { 'Authorization': `Bearer ${token()}` },
|
|
||||||
})
|
|
||||||
if (uploadRes.statusCode === 200 && uploadRes.data) {
|
|
||||||
const data = typeof uploadRes.data === 'string' ? JSON.parse(uploadRes.data) : uploadRes.data
|
|
||||||
if (data.text) {
|
|
||||||
inputText.value = data.text
|
|
||||||
uni.vibrateShort({ type: 'light' })
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else if (checkAuth(uploadRes)) {
|
manager.start({ lang: 'zh_CN', duration: 60000 })
|
||||||
return
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
console.error('[ASR] upload error:', e?.message || e)
|
|
||||||
}
|
|
||||||
uni.showToast({ title: '语音识别失败,请手动输入', icon: 'none' })
|
|
||||||
})
|
|
||||||
recorder.start({ format: 'aac', sampleRate: 22050, numberOfChannels: 1, encodeBitRate: 16000 })
|
|
||||||
uni.vibrateShort({ type: 'medium' })
|
uni.vibrateShort({ type: 'medium' })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!manager) { isRecording.value = false; return }
|
||||||
|
if (recordTimer) { clearInterval(recordTimer); recordTimer = null }
|
||||||
|
recordingDuration.value = 0
|
||||||
|
manager.stop()
|
||||||
// #endif
|
// #endif
|
||||||
// #ifndef MP-WEIXIN
|
// #ifndef MP-WEIXIN
|
||||||
uni.showToast({ title: '语音输入仅支持小程序', icon: 'none' })
|
uni.showToast({ title: '语音输入仅支持小程序', icon: 'none' })
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopRecord() {
|
|
||||||
if (!recorder || !isRecording.value) return
|
|
||||||
isRecording.value = false
|
|
||||||
recorder.stop()
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@@ -422,6 +468,7 @@ function stopRecord() {
|
|||||||
.progress-track { height: 6rpx; background: rgba(255,255,255,0.2); border-radius: 3rpx; overflow: hidden; }
|
.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); }
|
.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-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; }
|
.topbar-right { width: 60rpx; flex-shrink: 0; text-align: center; }
|
||||||
.avatar-toggle { font-size: 36rpx; cursor: pointer; }
|
.avatar-toggle { font-size: 36rpx; cursor: pointer; }
|
||||||
|
|
||||||
@@ -434,11 +481,20 @@ function stopRecord() {
|
|||||||
/* Chat */
|
/* Chat */
|
||||||
.chat-area { flex: 1; padding: 24rpx 20rpx; overflow-y: auto; }
|
.chat-area { flex: 1; padding: 24rpx 20rpx; overflow-y: auto; }
|
||||||
.chat-compact { max-height: 40vh; }
|
.chat-compact { max-height: 40vh; }
|
||||||
.msg-row { display: flex; margin-bottom: 24rpx; }
|
.msg-row { display: flex; margin-bottom: 32rpx; align-items: flex-start; gap: 12rpx; }
|
||||||
.msg-row.ai { justify-content: flex-start; }
|
.msg-row.ai { justify-content: flex-start; }
|
||||||
.msg-row.user { justify-content: flex-end; }
|
.msg-row.user { justify-content: flex-end; }
|
||||||
|
|
||||||
.msg-bubble { max-width: 560rpx; padding: 20rpx 24rpx; line-height: 1.7; font-size: 26rpx; }
|
.msg-avatar { width: 48rpx; height: 48rpx; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24rpx; flex-shrink: 0; }
|
||||||
|
.ai-avatar { background: #EEF2FF; }
|
||||||
|
.user-avatar { background: #FEF3C7; }
|
||||||
|
|
||||||
|
.msg-body { max-width: 70%; display: flex; flex-direction: column; gap: 6rpx; }
|
||||||
|
.msg-row.user .msg-body { align-items: flex-end; }
|
||||||
|
|
||||||
|
.msg-label { font-size: 20rpx; color: #9CA3AF; padding: 0 8rpx; }
|
||||||
|
|
||||||
|
.msg-bubble { padding: 20rpx 24rpx; line-height: 1.7; font-size: 26rpx; word-break: break-word; }
|
||||||
.msg-bubble.ai {
|
.msg-bubble.ai {
|
||||||
background: #FFFFFF; color: var(--color-text);
|
background: #FFFFFF; color: var(--color-text);
|
||||||
border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
|
border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
|
||||||
@@ -471,14 +527,18 @@ function stopRecord() {
|
|||||||
}
|
}
|
||||||
.input-box { flex: 1; background: var(--color-bg); border-radius: var(--radius-md); padding: 12rpx 20rpx; }
|
.input-box { flex: 1; background: var(--color-bg); border-radius: var(--radius-md); padding: 12rpx 20rpx; }
|
||||||
.input-area { width: 100%; font-size: 26rpx; color: var(--color-text); max-height: 160rpx; line-height: 1.5; }
|
.input-area { width: 100%; font-size: 26rpx; color: var(--color-text); max-height: 160rpx; line-height: 1.5; }
|
||||||
|
.mic-wrap { display: flex; flex-direction: column; align-items: center; gap: 4rpx; flex-shrink: 0; }
|
||||||
.mic-btn {
|
.mic-btn {
|
||||||
width: 64rpx; height: 64rpx; border-radius: 50%; background: #F3F4F6;
|
width: 80rpx; height: 80rpx; border-radius: 50%; background: #F3F4F6;
|
||||||
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
|
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s; gap: 2rpx;
|
||||||
}
|
}
|
||||||
.mic-btn:active { transform: scale(0.9); }
|
.mic-btn:active { transform: scale(0.9); }
|
||||||
.mic-btn.recording { background: #FEE2E2; animation: mic-pulse 1s infinite; }
|
.mic-btn.recording { background: #FEE2E2; animation: mic-pulse 1s infinite; }
|
||||||
.mic-icon { font-size: 28rpx; }
|
.mic-icon { font-size: 28rpx; line-height: 1; }
|
||||||
|
.mic-label { font-size: 16rpx; color: #9CA3AF; line-height: 1; }
|
||||||
|
.mic-btn.recording .mic-label { color: #EF4444; font-weight: 600; }
|
||||||
|
.mic-hint { font-size: 18rpx; color: #EF4444; font-weight: 500; line-height: 1; white-space: nowrap; }
|
||||||
@keyframes mic-pulse {
|
@keyframes mic-pulse {
|
||||||
0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
|
0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
|
||||||
50% { box-shadow: 0 0 0 16rpx rgba(239, 68, 68, 0); }
|
50% { box-shadow: 0 0 0 16rpx rgba(239, 68, 68, 0); }
|
||||||
|
|||||||
@@ -131,8 +131,8 @@ import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
|||||||
import { api } from '../../config'
|
import { api } from '../../config'
|
||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
onShareAppMessage(() => ({ title: '职引 - 登录注册 | AI模拟面试', path: '/pages/login/login' }))
|
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 登录注册 | AI模拟面试', path: '/pages/login/login' }))
|
||||||
onShareTimeline(() => ({ title: '职引 - 登录注册 | AI模拟面试' }))
|
onShareTimeline(() => ({ title: '宇之然AI磁场 - 登录注册 | AI模拟面试' }))
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
const agreed = ref(false)
|
const agreed = ref(false)
|
||||||
|
|||||||
@@ -143,8 +143,8 @@ import { onShow } from '@dcloudio/uni-app'
|
|||||||
import { api } from '../../config'
|
import { api } from '../../config'
|
||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
onShareAppMessage(() => ({ title: '职引 - 进步轨迹 | 能力雷达+打卡日历', path: '/pages/progress/progress' }))
|
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 进步轨迹 | 能力雷达+打卡日历', path: '/pages/progress/progress' }))
|
||||||
onShareTimeline(() => ({ title: '职引 - 进步轨迹 | 能力雷达+打卡日历' }))
|
onShareTimeline(() => ({ title: '宇之然AI磁场 - 进步轨迹 | 能力雷达+打卡日历' }))
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
const stats = ref({ completedInterviews: 0, avgScore: 0, streak: 0 })
|
const stats = ref({ completedInterviews: 0, avgScore: 0, streak: 0 })
|
||||||
|
|||||||
@@ -79,8 +79,8 @@ import { onLoad } from '@dcloudio/uni-app'
|
|||||||
import { api } from '../../config'
|
import { api } from '../../config'
|
||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
onShareAppMessage(() => ({ title: '职引 - 面试报告与评分 | AI多维评分', path: '/pages/report/report' }))
|
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 面试报告与评分 | AI多维评分', path: '/pages/report/report' }))
|
||||||
onShareTimeline(() => ({ title: '职引 - 面试报告与评分 | AI多维评分' }))
|
onShareTimeline(() => ({ title: '宇之然AI磁场 - 面试报告与评分 | AI多维评分' }))
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
const loading = ref(true)
|
const loading = ref(true)
|
||||||
@@ -295,16 +295,16 @@ async function generateCard() {
|
|||||||
ctx.setFontSize(20)
|
ctx.setFontSize(20)
|
||||||
ctx.setFillStyle('#A5B4FC')
|
ctx.setFillStyle('#A5B4FC')
|
||||||
ctx.setTextAlign('center')
|
ctx.setTextAlign('center')
|
||||||
ctx.fillText('「职引」- AI 模拟面试助手', w / 2, 650)
|
ctx.fillText('「宇之然AI磁场」- AI 模拟面试助手', w / 2, 650)
|
||||||
ctx.setFontSize(16)
|
ctx.setFontSize(16)
|
||||||
ctx.setFillStyle('rgba(165,180,252,0.5)')
|
ctx.setFillStyle('rgba(165,180,252,0.5)')
|
||||||
ctx.fillText('扫码开始你的模拟面试 → 在微信搜索"职引"小程序', w / 2, 690)
|
ctx.fillText('扫码开始你的模拟面试 → 在微信搜索"宇之然AI磁场"小程序', w / 2, 690)
|
||||||
|
|
||||||
// QR text hint
|
// QR text hint
|
||||||
ctx.setFillStyle('#FFFFFF')
|
ctx.setFillStyle('#FFFFFF')
|
||||||
ctx.setFontSize(16)
|
ctx.setFontSize(16)
|
||||||
ctx.setTextAlign('center')
|
ctx.setTextAlign('center')
|
||||||
ctx.fillText('在微信搜索「职引」小程序', w / 2, 760)
|
ctx.fillText('在微信搜索「宇之然AI磁场」小程序', w / 2, 760)
|
||||||
ctx.fillText('查看完整面试报告', w / 2, 790)
|
ctx.fillText('查看完整面试报告', w / 2, 790)
|
||||||
|
|
||||||
ctx.draw(false, async () => {
|
ctx.draw(false, async () => {
|
||||||
|
|||||||
@@ -157,8 +157,8 @@ import { onLoad } from '@dcloudio/uni-app'
|
|||||||
import { api } from '../../config'
|
import { api } from '../../config'
|
||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
onShareAppMessage(() => ({ title: '职引 - 简历诊断与优化 | AI智能优化', path: '/pages/resume/resume' }))
|
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 简历诊断与优化 | AI智能优化', path: '/pages/resume/resume' }))
|
||||||
onShareTimeline(() => ({ title: '职引 - 简历诊断与优化 | AI智能优化' }))
|
onShareTimeline(() => ({ title: '宇之然AI磁场 - 简历诊断与优化 | AI智能优化' }))
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
const currentTab = ref('list')
|
const currentTab = ref('list')
|
||||||
@@ -296,7 +296,7 @@ const onFileSelected = async (e) => {
|
|||||||
const downloadResult = (format) => {
|
const downloadResult = (format) => {
|
||||||
if (!result.value) return
|
if (!result.value) return
|
||||||
const content = format === 'html'
|
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)}`
|
: `${resultType.value === 'diagnosis' ? '=== 简历诊断报告 ===\n\n' : '=== 简历优化结果 ===\n\n'}${JSON.stringify(result.value, null, 2)}`
|
||||||
const fileName = `简历${resultType.value === 'diagnosis' ? '诊断报告' : '优化结果'}.${format}`
|
const fileName = `简历${resultType.value === 'diagnosis' ? '诊断报告' : '优化结果'}.${format}`
|
||||||
|
|
||||||
|
|||||||
@@ -290,8 +290,8 @@ import { onShow } from '@dcloudio/uni-app'
|
|||||||
import { api } from '../../config'
|
import { api } from '../../config'
|
||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
onShareAppMessage(() => ({ title: '职引 - 面试复盘分析 | AI评析+口语分析', path: '/pages/review/review' }))
|
onShareAppMessage(() => ({ title: '宇之然AI磁场 - 面试复盘分析 | AI评析+口语分析', path: '/pages/review/review' }))
|
||||||
onShareTimeline(() => ({ title: '职引 - 面试复盘分析 | AI评析+口语分析' }))
|
onShareTimeline(() => ({ title: '宇之然AI磁场 - 面试复盘分析 | AI评析+口语分析' }))
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
const mode = ref('list')
|
const mode = ref('list')
|
||||||
|
|||||||
@@ -156,12 +156,12 @@ const isWechat = ref(false)
|
|||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
onShareAppMessage(() => ({
|
onShareAppMessage(() => ({
|
||||||
title: 'AI磁场·职引 — AI模拟面试+简历优化',
|
title: '宇之然AI磁场 — AI模拟面试+简历优化',
|
||||||
path: '/pages/share/share',
|
path: '/pages/share/share',
|
||||||
imageUrl: 'https://zhiyinwx.yzrcloud.cn/static/share-card.png',
|
imageUrl: 'https://zhiyinwx.yzrcloud.cn/static/share-card.png',
|
||||||
}))
|
}))
|
||||||
onShareTimeline(() => ({
|
onShareTimeline(() => ({
|
||||||
title: 'AI磁场·职引 — AI模拟面试+简历优化',
|
title: '宇之然AI磁场 — AI模拟面试+简历优化',
|
||||||
imageUrl: 'https://zhiyinwx.yzrcloud.cn/static/share-card.png',
|
imageUrl: 'https://zhiyinwx.yzrcloud.cn/static/share-card.png',
|
||||||
}))
|
}))
|
||||||
// #endif
|
// #endif
|
||||||
@@ -178,11 +178,12 @@ async function loadData() {
|
|||||||
if (!token) { uni.showToast({ title: '请先登录', icon: 'none' }); return }
|
if (!token) { uni.showToast({ title: '请先登录', icon: 'none' }); return }
|
||||||
const header = { Authorization: `Bearer ${token}` }
|
const header = { Authorization: `Bearer ${token}` }
|
||||||
|
|
||||||
// 先创建分享链接,缓存下来供复制使用
|
// 仅在无缓存分享链接时创建新分享记录
|
||||||
|
if (!shareUrlCached.value) {
|
||||||
try {
|
try {
|
||||||
const res = await uni.request({
|
const res = await uni.request({
|
||||||
url: api('/share/create'), method: 'POST',
|
url: api('/share/create'), method: 'POST',
|
||||||
data: { type: 'app', title: '我在AI磁场·职引练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
data: { type: 'app', title: '我在宇之然AI磁场练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
||||||
header,
|
header,
|
||||||
})
|
})
|
||||||
if (res.statusCode >= 200 && res.statusCode < 300) {
|
if (res.statusCode >= 200 && res.statusCode < 300) {
|
||||||
@@ -192,6 +193,7 @@ async function loadData() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) { /* create share is best-effort */ }
|
} catch (e) { /* create share is best-effort */ }
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const [statsRes, recordsRes, visitorsRes] = await Promise.all([
|
const [statsRes, recordsRes, visitorsRes] = await Promise.all([
|
||||||
@@ -213,7 +215,7 @@ async function shareToWechat() {
|
|||||||
const res = await uni.request({
|
const res = await uni.request({
|
||||||
url: api('/share/create'),
|
url: api('/share/create'),
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: { type: 'app', title: '我在AI磁场·职引练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
data: { type: 'app', title: '我在宇之然AI磁场练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
||||||
header: { Authorization: `Bearer ${token}` },
|
header: { Authorization: `Bearer ${token}` },
|
||||||
})
|
})
|
||||||
if (res.statusCode < 200 || res.statusCode >= 300) return
|
if (res.statusCode < 200 || res.statusCode >= 300) return
|
||||||
@@ -223,7 +225,7 @@ async function shareToWechat() {
|
|||||||
|
|
||||||
uni.shareAppMessage({
|
uni.shareAppMessage({
|
||||||
provider: 'weixin',
|
provider: 'weixin',
|
||||||
title: data.wechatShareInfo?.title || 'AI磁场·职引',
|
title: data.wechatShareInfo?.title || '宇之然AI磁场',
|
||||||
description: data.wechatShareInfo?.description || '',
|
description: data.wechatShareInfo?.description || '',
|
||||||
path,
|
path,
|
||||||
imageUrl: 'https://zhiyinwx.yzrcloud.cn/static/share-card.png',
|
imageUrl: 'https://zhiyinwx.yzrcloud.cn/static/share-card.png',
|
||||||
@@ -251,7 +253,7 @@ async function copyLink() {
|
|||||||
try {
|
try {
|
||||||
const res = await uni.request({
|
const res = await uni.request({
|
||||||
url: api('/share/create'), method: 'POST',
|
url: api('/share/create'), method: 'POST',
|
||||||
data: { type: 'app', title: '我在AI磁场·职引练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
data: { type: 'app', title: '我在宇之然AI磁场练习面试', description: 'AI模拟面试+简历优化,快来一起提升吧' },
|
||||||
header: { Authorization: `Bearer ${token}` },
|
header: { Authorization: `Bearer ${token}` },
|
||||||
})
|
})
|
||||||
if (res.statusCode < 200 || res.statusCode >= 300) {
|
if (res.statusCode < 200 || res.statusCode >= 300) {
|
||||||
|
|||||||
@@ -54,6 +54,7 @@
|
|||||||
<text class="gravity-btn share" @click="goSharePage">分享得引力值</text>
|
<text class="gravity-btn share" @click="goSharePage">分享得引力值</text>
|
||||||
<text class="gravity-btn contribute" @click="goContributePage">贡献面经</text>
|
<text class="gravity-btn contribute" @click="goContributePage">贡献面经</text>
|
||||||
<text class="gravity-btn h5buy" @click="goH5Buy">购买引力值</text>
|
<text class="gravity-btn h5buy" @click="goH5Buy">购买引力值</text>
|
||||||
|
<text class="gravity-btn detail" @click="showGravityDetail = true">明细</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -103,6 +104,11 @@
|
|||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
|
<view class="menu-item" @click="goFeedback">
|
||||||
|
<view class="menu-icon-wrap wrap-gray"><text class="menu-icon">📝</text></view>
|
||||||
|
<text class="menu-text">意见反馈</text>
|
||||||
|
<text class="menu-arrow">›</text>
|
||||||
|
</view>
|
||||||
<view class="menu-item" @click="goAbout">
|
<view class="menu-item" @click="goAbout">
|
||||||
<view class="menu-icon-wrap wrap-gray"><text class="menu-icon">ℹ️</text></view>
|
<view class="menu-icon-wrap wrap-gray"><text class="menu-icon">ℹ️</text></view>
|
||||||
<text class="menu-text">关于</text>
|
<text class="menu-text">关于</text>
|
||||||
@@ -158,11 +164,40 @@
|
|||||||
<text class="modal-close" @click="showGetGravityModal = false">关闭</text>
|
<text class="modal-close" @click="showGetGravityModal = false">关闭</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 引力值明细 -->
|
||||||
|
<view class="modal-overlay" v-if="showGravityDetail" @click="showGravityDetail = false">
|
||||||
|
<view class="modal-content detail-content" @click.stop>
|
||||||
|
<text class="modal-title">引力值明细</text>
|
||||||
|
<text class="modal-hint">购买、消耗、补给的引力值变动记录</text>
|
||||||
|
<scroll-view class="detail-list" scroll-y>
|
||||||
|
<view v-if="gravityTxs.length === 0" class="detail-empty">暂无记录</view>
|
||||||
|
<view v-for="tx in gravityTxs" :key="tx._id" class="detail-item">
|
||||||
|
<view class="detail-item-left">
|
||||||
|
<text class="detail-item-desc">{{ tx.description }}</text>
|
||||||
|
<text class="detail-item-time">{{ formatTime(tx.createdAt) }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="detail-item-right">
|
||||||
|
<text :class="['detail-item-amount', tx.amount > 0 ? 'amount-positive' : 'amount-negative']">
|
||||||
|
{{ tx.amount > 0 ? '+' : '' }}{{ tx.amount }}
|
||||||
|
</text>
|
||||||
|
<text class="detail-item-balance">余额 {{ tx.balance }}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
<view v-if="gravityTxTotalPages > 1" class="detail-pagination">
|
||||||
|
<text class="detail-page-btn" @click="loadGravityTxs(gravityTxPage - 1)" v-if="gravityTxPage > 1">上一页</text>
|
||||||
|
<text class="detail-page-info">{{ gravityTxPage }} / {{ gravityTxTotalPages }}</text>
|
||||||
|
<text class="detail-page-btn" @click="loadGravityTxs(gravityTxPage + 1)" v-if="gravityTxPage < gravityTxTotalPages">下一页</text>
|
||||||
|
</view>
|
||||||
|
<text class="modal-close" @click="showGravityDetail = false">关闭</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed, onMounted } from 'vue'
|
import { ref, computed, watch, onMounted } from 'vue'
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
import { onShow, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
import { onShow, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||||
// #endif
|
// #endif
|
||||||
@@ -178,9 +213,9 @@ onShareAppMessage(() => {
|
|||||||
const path = shareCodeRef.value
|
const path = shareCodeRef.value
|
||||||
? `/pages/user/user?share=${shareCodeRef.value}`
|
? `/pages/user/user?share=${shareCodeRef.value}`
|
||||||
: '/pages/user/user'
|
: '/pages/user/user'
|
||||||
return { title: '职引 - 个人中心 | AI模拟面试', path }
|
return { title: '宇之然AI磁场 - 个人中心 | AI模拟面试', path }
|
||||||
})
|
})
|
||||||
onShareTimeline(() => ({ title: '职引 - 个人中心 | AI模拟面试' }))
|
onShareTimeline(() => ({ title: '宇之然AI磁场 - 个人中心 | AI模拟面试' }))
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
const userInfo = ref({})
|
const userInfo = ref({})
|
||||||
@@ -214,7 +249,7 @@ async function preCreateShare() {
|
|||||||
try {
|
try {
|
||||||
const res = await uni.request({
|
const res = await uni.request({
|
||||||
url: api('/share/create'), method: 'POST',
|
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}` },
|
header: { Authorization: `Bearer ${token.value}` },
|
||||||
})
|
})
|
||||||
if (res.statusCode < 200 || res.statusCode >= 300) {
|
if (res.statusCode < 200 || res.statusCode >= 300) {
|
||||||
@@ -290,6 +325,36 @@ const goH5Buy = () => {
|
|||||||
uni.navigateTo({ url: '/pages/member/member' })
|
uni.navigateTo({ url: '/pages/member/member' })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 引力值明细
|
||||||
|
const showGravityDetail = ref(false)
|
||||||
|
const gravityTxs = ref([])
|
||||||
|
const gravityTxPage = ref(1)
|
||||||
|
const gravityTxTotalPages = ref(1)
|
||||||
|
const loadGravityTxs = async (page = 1) => {
|
||||||
|
try {
|
||||||
|
const res = await uni.request({
|
||||||
|
url: api(`/user/gravity-transactions?page=${page}&limit=20`),
|
||||||
|
method: 'GET',
|
||||||
|
header: { Authorization: `Bearer ${token.value}` },
|
||||||
|
})
|
||||||
|
if (res.statusCode >= 200 && res.statusCode < 300 && res.data) {
|
||||||
|
gravityTxs.value = res.data.items || []
|
||||||
|
gravityTxPage.value = res.data.page || 1
|
||||||
|
gravityTxTotalPages.value = res.data.totalPages || 1
|
||||||
|
} else if (checkAuth(res)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
} catch(e) { /* silent */ }
|
||||||
|
}
|
||||||
|
const formatTime = (t) => {
|
||||||
|
if (!t) return ''
|
||||||
|
const d = new Date(t)
|
||||||
|
return `${d.getMonth() + 1}/${d.getDate()} ${String(d.getHours()).padStart(2, '0')}:${String(d.getMinutes()).padStart(2, '0')}`
|
||||||
|
}
|
||||||
|
|
||||||
|
// 点击明细时打开弹窗并加载数据
|
||||||
|
watch(showGravityDetail, (v) => { if (v) loadGravityTxs() })
|
||||||
|
|
||||||
const goCareer = () => uni.navigateTo({ url: '/pages/career/career' })
|
const goCareer = () => uni.navigateTo({ url: '/pages/career/career' })
|
||||||
const goHistory = () => uni.switchTab({ url: '/pages/history/history' })
|
const goHistory = () => uni.switchTab({ url: '/pages/history/history' })
|
||||||
const goReviewReview = () => uni.navigateTo({ url: '/pages/review/review' })
|
const goReviewReview = () => uni.navigateTo({ url: '/pages/review/review' })
|
||||||
@@ -298,6 +363,7 @@ const goResume = () => uni.navigateTo({ url: '/pages/resume/resume' })
|
|||||||
const goSharePage = () => uni.navigateTo({ url: '/pages/share/share' })
|
const goSharePage = () => uni.navigateTo({ url: '/pages/share/share' })
|
||||||
const goContributePage = () => uni.navigateTo({ url: '/pages/contribute/contribute' })
|
const goContributePage = () => uni.navigateTo({ url: '/pages/contribute/contribute' })
|
||||||
const goAdmin = () => uni.navigateTo({ url: '/pages/admin/admin' })
|
const goAdmin = () => uni.navigateTo({ url: '/pages/admin/admin' })
|
||||||
|
const goFeedback = () => uni.navigateTo({ url: '/pages/feedback/feedback' })
|
||||||
const goAbout = () => uni.navigateTo({ url: '/pages/about/about' })
|
const goAbout = () => uni.navigateTo({ url: '/pages/about/about' })
|
||||||
|
|
||||||
const doLogout = () => {
|
const doLogout = () => {
|
||||||
@@ -357,6 +423,7 @@ const doLogout = () => {
|
|||||||
.gravity-btn.share { background: rgba(255,255,255,0.2); color: #FFFFFF; border: 2rpx solid rgba(255,255,255,0.3); }
|
.gravity-btn.share { background: rgba(255,255,255,0.2); color: #FFFFFF; border: 2rpx solid rgba(255,255,255,0.3); }
|
||||||
.gravity-btn.h5buy { background: #FFFFFF; color: #667eea; }
|
.gravity-btn.h5buy { background: #FFFFFF; color: #667eea; }
|
||||||
.gravity-btn.contribute { background: rgba(255,255,255,0.15); color: #FFFFFF; border: 2rpx solid rgba(255,255,255,0.2); }
|
.gravity-btn.contribute { background: rgba(255,255,255,0.15); color: #FFFFFF; border: 2rpx solid rgba(255,255,255,0.2); }
|
||||||
|
.gravity-btn.detail { background: rgba(255,255,255,0.15); color: #FFFFFF; border: 2rpx solid rgba(255,255,255,0.2); font-size: 22rpx; padding: 18rpx 16rpx; flex: 0.5; }
|
||||||
.gravity-btn:active { transform: scale(0.96); }
|
.gravity-btn:active { transform: scale(0.96); }
|
||||||
|
|
||||||
.menu-area { padding: 0 32rpx 32rpx; margin-top: 8rpx; }
|
.menu-area { padding: 0 32rpx 32rpx; margin-top: 8rpx; }
|
||||||
@@ -404,4 +471,23 @@ const doLogout = () => {
|
|||||||
.gp-method-name { font-size: 26rpx; font-weight: 600; color: var(--color-text); }
|
.gp-method-name { font-size: 26rpx; font-weight: 600; color: var(--color-text); }
|
||||||
.gp-method-desc { font-size: 20rpx; color: #6B7280; line-height: 1.4; }
|
.gp-method-desc { font-size: 20rpx; color: #6B7280; line-height: 1.4; }
|
||||||
.gp-method-arrow { font-size: 32rpx; color: #D1D5DB; }
|
.gp-method-arrow { font-size: 32rpx; color: #D1D5DB; }
|
||||||
|
|
||||||
|
/* 引力值明细弹窗 */
|
||||||
|
.detail-content { width: 650rpx; max-height: 70vh; }
|
||||||
|
.detail-list { width: 100%; max-height: 500rpx; }
|
||||||
|
.detail-empty { text-align: center; padding: 40rpx 0; font-size: 24rpx; color: #9CA3AF; }
|
||||||
|
.detail-item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 20rpx 0; border-bottom: 1rpx solid #F3F4F6; }
|
||||||
|
.detail-item:last-child { border-bottom: none; }
|
||||||
|
.detail-item-left { display: flex; flex-direction: column; gap: 4rpx; flex: 1; min-width: 0; }
|
||||||
|
.detail-item-desc { font-size: 26rpx; color: var(--color-text); font-weight: 500; }
|
||||||
|
.detail-item-time { font-size: 20rpx; color: #9CA3AF; }
|
||||||
|
.detail-item-amount { font-size: 30rpx; font-weight: 700; }
|
||||||
|
.detail-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4rpx; flex-shrink: 0; margin-left: 16rpx; }
|
||||||
|
.detail-item-balance { font-size: 20rpx; color: #9CA3AF; font-weight: 400; }
|
||||||
|
.amount-positive { color: #10B981; }
|
||||||
|
.amount-negative { color: #EF4444; }
|
||||||
|
.detail-pagination { display: flex; align-items: center; justify-content: center; gap: 24rpx; width: 100%; margin-top: 8rpx; }
|
||||||
|
.detail-page-btn { font-size: 24rpx; color: var(--color-primary); padding: 8rpx 16rpx; }
|
||||||
|
.detail-page-btn:active { opacity: 0.6; }
|
||||||
|
.detail-page-info { font-size: 24rpx; color: #6B7280; }
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user