feat: 接入内容服务端真实接口并优化页面交互
- 迁移内容数据到服务端接口,移除本地模拟数据 - 首页新增推荐课程加载与未读消息检查 - 资讯、课程、搜索页面支持分页加载与错误重试 - 登录页新增恢复课程、消息、帮助页的路由逻辑 - 评估分析页新增处理中状态动效与阶段提示 - API 环境切换到正式域名 airz.hqling.cloud
This commit is contained in:
@@ -79,16 +79,8 @@
|
||||
type AdviceGroup = { id: string, label: string, loading: boolean, error: string, items: MatchView[] }
|
||||
const { contentStyle, pageStyle, statusStyle, bottomStyle, navigationTitleStyle, navigationActionStyle } = usePageLayout()
|
||||
const reportTitleStyle = (): string => {
|
||||
// 小程序标题须同时避让PDF按钮和右侧胶囊,窄屏也不能覆盖操作入口。
|
||||
// #ifdef MP-WEIXIN
|
||||
const windowWidth = uni.getWindowInfo().windowWidth
|
||||
const capsule = uni.getMenuButtonBoundingClientRect()
|
||||
const reserved = capsule.left > 0 && capsule.left < windowWidth ? windowWidth - capsule.left + 8 : 104
|
||||
return 'left:50px;right:' + (reserved + 40) + 'px;'
|
||||
// #endif
|
||||
// #ifndef MP-WEIXIN
|
||||
// 报告标题使用对称左右边距,保持屏幕中心对齐并避开微信胶囊。
|
||||
return navigationTitleStyle()
|
||||
// #endif
|
||||
}
|
||||
const tabs: ReportTab[] = [{ id: 'overview', label: '评估概况' }, { id: 'matches', label: '匹配结果' }, { id: 'improvements', label: '改善建议' }]
|
||||
const revisionId = ref(''); const assessmentId = ref(''); const tab = ref('overview'); const loading = ref(false); const error = ref(''); const routeError = ref('')
|
||||
|
||||
Reference in New Issue
Block a user