feat: 完善登录流程、UI适配及协议文档更新
本次提交包含以下修改: 1. 新增微信登录相关服务及页面逻辑,实现首次微信绑定手机号流程 2. 优化产品匹配卡片 UI,移除不必要状态显示 3. 调整首页 scroll-view 属性及 banner 背景样式 4. 完善积分规则校验逻辑,增加时区及策略格式验证 5. 更新协议草案文档,补充资料清单及功能说明 6. 修复分析结果路由路径,适配新的匹配结果页面 7. 调整品牌 Logo 安卓端字体对齐样式
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
import { usePageLayout } from '@/services/layout.uts'
|
||||
import { getSession } from '@/services/api.uts'
|
||||
import { fetchAssessmentStatus, retryAssessment } from '@/packages/finance/services/records.uts'
|
||||
import { reportRoute } from '@/services/report-route.uts'
|
||||
import { matchReturnPath } from '@/services/match-route.uts'
|
||||
const { statusStyle, pageStyle } = usePageLayout()
|
||||
const title = ref('正在读取评估状态')
|
||||
const message = ref(''); const error = ref(''); const assessmentId = ref('')
|
||||
@@ -62,7 +62,7 @@
|
||||
message.value = result.message.length > 0 ? result.message : (result.status == 'processing' ? (result.stage == 'queued' ? '资料已保存,等待分析。您可以稍后从档案查看。' : '正在分析自填资料,您可以稍后从档案查看。') : (result.status == 'failed' ? '分析未完成,可重新分析或刷新状态。已提交的资料无需重新填写。' : '分析已完成,可查看本次报告。'))
|
||||
if (result.status == 'succeeded') {
|
||||
// 只打开本次已发布版本;重评处理中或旧报告回包不会触发跳转。
|
||||
const target = result.hasReport && result.publishedRevisionId == result.revisionId ? reportRoute(assessmentId.value, 'matches', result.publishedRevisionId) : ''
|
||||
const target = result.hasReport && result.publishedRevisionId == result.revisionId ? matchReturnPath('matches', assessmentId.value, '', result.publishedRevisionId, '', 'all') : ''
|
||||
succeeded.value = target.length > 0
|
||||
if (target.length > 0) { publishedRevisionId.value = result.publishedRevisionId; uni.redirectTo({ url: target }); return }
|
||||
message.value = '本次报告尚未就绪,请刷新状态。'
|
||||
@@ -95,7 +95,7 @@
|
||||
} catch (err) { if (visible && request == generation && getSession()?.getString('token') == owner) error.value = err instanceof Error ? err.message : '重新分析失败,请重试' }
|
||||
finally { retrying.value = false }
|
||||
}
|
||||
const report = () => { const target = reportRoute(assessmentId.value, 'matches', publishedRevisionId.value); if (succeeded.value && target.length > 0) uni.redirectTo({ url: target }) }
|
||||
const report = () => { const target = matchReturnPath('matches', assessmentId.value, '', publishedRevisionId.value, '', 'all'); if (succeeded.value && target.length > 0) uni.redirectTo({ url: target }) }
|
||||
const archive = () => { uni.reLaunch({ url: '/packages/finance/archive/archive?assessmentId=' + encodeURIComponent(assessmentId.value) }) }
|
||||
onLoad((options) => { if (options != null) assessmentId.value = options['assessmentId'] ?? '' })
|
||||
onShow(() => { visible = true; loadStatus() })
|
||||
|
||||
Reference in New Issue
Block a user