修正多处问题,添加骨架屏

This commit is contained in:
2026-06-29 16:41:36 +08:00
parent e85f39ab83
commit 13b99428de
124 changed files with 929 additions and 147 deletions
@@ -1,4 +1,4 @@
const COLORS = {
const COLORS = {
primary: '#0B2B4B',
accent: '#FF6B35',
accentLight: 'rgba(255, 107, 53, 0.25)',
@@ -1,4 +1,4 @@
function formatRecordTime(date) {
function formatRecordTime(date) {
const y = date.getFullYear()
const m = String(date.getMonth() + 1).padStart(2, '0')
const d = String(date.getDate()).padStart(2, '0')
@@ -1,4 +1,4 @@
import { courseCatalogMock } from './mockData.js'
import { courseCatalogMock } from './mockData.js'
function clone(value) {
return JSON.parse(JSON.stringify(value))
@@ -1,4 +1,4 @@
/** 手机号展示脱敏(中间四位 ****) */
/** 手机号展示脱敏(中间四位 ****) */
export function maskPhone(phone) {
if (phone == null || phone === '') return ''
+1 -1
View File
@@ -1,4 +1,4 @@
export { statusBarTimeMixin, subPageMixin } from './mixins.js'
export { statusBarTimeMixin, subPageMixin } from './mixins.js'
export {
loadMemberStore,
saveMemberStore,
+1 -1
View File
@@ -1,4 +1,4 @@
/** 头像等媒体:真机选图后须 saveFile/static/ 须 getImageInfo */
/** 头像等媒体:真机选图后须 saveFile/static/ 须 getImageInfo */
function buildStaticPathCandidates(url) {
const list = [url]
@@ -1,4 +1,4 @@
import { backToMemberCenter } from '../constants/routes.js'
import { backToMemberCenter } from '../constants/routes.js'
/** 状态栏时间(Pixso 顶栏占位) */
export const statusBarTimeMixin = {
@@ -1,4 +1,4 @@
/** 个人中心模块 mock 数据(后续可替换为 API) */
/** 个人中心模块 mock 数据(后续可替换为 API) */
// Mock 数据开关 - 设为 false 可关闭所有 mock 数据
export const MOCK_ENABLED = false
@@ -1,4 +1,4 @@
import { moduleMock } from './mockData.js'
import { moduleMock } from './mockData.js'
+1 -1
View File
@@ -1,4 +1,4 @@
import {
import {
getDefaultBodyTestState,
mergeBodyTestState,
getLatestBodyTestRecord,
@@ -1,4 +1,4 @@
/** 个人信息页前端校验(与后端手机号规则对齐:^1[3-9]\\d{9}$ */
/** 个人信息页前端校验(与后端手机号规则对齐:^1[3-9]\\d{9}$ */
const PHONE_REG = /^1[3-9]\d{9}$/
const MIN_NAME_LEN = 2