Files
gym-manage/gym-manage-uniapp/common/memberInfo/mockData.js
T

885 lines
32 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** 个人中心模块 mock 数据(后续可替换为 API) */
export const memberCenterMock = {
userInfo: {
name: '张小芳',
phone: '13812345678 已绑定微信',
memberLevel: '黄金会员',
avatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AvatarEditWrap.png'
},
stats: {
checkInCount: 128,
trainingHours: 23,
pointsBalance: 1250
},
cardInfo: {
name: '健身时长卡',
detailTag: '详情',
expireDate: '有效期至 2025年12月31日',
remainingDays: 187,
tip: '距离下次到期还有187天,请及时续费'
},
checkIns: [
{
id: 1,
title: '今日签到 · 瑜伽初级班',
time: '2024-07-12 09:05',
tag: '团课',
tagTheme: 'group'
},
{
id: 2,
title: '自由训练 · 进馆记录',
time: '2024-07-11 18:30',
tag: '自由',
tagTheme: 'free'
},
{
id: 3,
title: '私教课 · 力量训练',
time: '2024-07-10 14:00',
tag: '私教',
tagTheme: 'private'
}
],
bodyReport: {
date: '2024-07-01',
weight: '63.5',
bmi: '22.1',
bodyFat: '24.8%',
bmr: '165',
status: '比较健康',
change: '-1.2kg'
},
couponPoints: {
amount: '¥50',
couponDesc: '满500可用 · 1张',
couponAction: '去使用',
points: 1250,
pointsLabel: '我的积分',
pointsAction: '去兑换'
},
referral: {
code: 'FIT-ZXF-2024',
invited: 5,
registered: 3,
purchased: 2
}
}
export const userInfoMock = {
name: '张小芳',
phone: '13812345678',
gender: 'female',
birthday: '1995年06月15日',
height: '165',
weight: '63.5',
fitnessGoals: ['减脂', '塑形'],
avatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AvatarEditWrap.png'
}
export const fitnessGoalOptions = ['减脂', '塑形', '增肌', '提升耐力', '改善体态']
export const memberCardMock = {
card: {
name: '黄金健身时长卡',
status: '生效中',
validityStart: '2024年01月01日',
validity: '2024年01月01日 - 2025年12月31日',
validityEnd: '2025-12-31',
remainingDays: 187
},
recordTabs: [
{ key: 'all', label: '全部' },
{ key: 'consume', label: '消费' },
{ key: 'checkin', label: '签到' }
],
records: [
{
id: 1,
type: 'checkin',
title: '瑜伽初级班 · 团课签到',
time: '2024-07-12 09:05',
value: '-1次',
valueType: 'negative',
icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/dumbbell.png',
iconTheme: 'orange'
},
{
id: 2,
type: 'checkin',
title: '自由进馆',
time: '2024-07-11 18:30',
value: '-1天',
valueType: 'negative',
icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/mappin.png',
iconTheme: 'green'
},
{
id: 3,
type: 'consume',
title: '会员卡充值',
time: '2024-07-01 10:00',
value: '+90天',
valueType: 'positive',
icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/pluscircle.png',
iconTheme: 'orange'
}
],
rules: [
'时长卡有效期内不限入场次数,但需提前预约团课',
'卡到期后不退余额,请合理安排使用',
'一卡仅限本人使用,不可转让'
]
}
/** 智能体测模块 mock 数据 */
export const bodyTestMock = {
settings: {
autoSync: true,
bluetoothEnabled: true,
notifyOnComplete: true,
shareAnonymous: false,
unitSystem: 'metric'
},
device: {
connected: false,
name: 'InBody 270',
model: 'IB-270',
battery: 86,
signal: 'strong',
lastConnected: '2024-07-10 18:20'
},
connectSteps: [
{ step: 1, title: '开启体测仪', desc: '长按电源键 3 秒,等待蓝牙指示灯闪烁' },
{ step: 2, title: '靠近设备', desc: '将手机靠近体测仪 1 米范围内' },
{ step: 3, title: '确认连接', desc: '点击下方按钮搜索并配对设备' }
],
metricDefs: [
{ key: 'weight', label: '体重', unit: 'kg', icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/target.png' },
{ key: 'bmi', label: 'BMI', unit: '', icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/activity.png' },
{ key: 'bodyFat', label: '体脂率', unit: '%', icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/trendingdown.png' },
{ key: 'muscleMass', label: '肌肉量', unit: 'kg', icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/dumbbell.png' },
{ key: 'visceralFat', label: '内脏脂肪', unit: '级', icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/alertcircle.png' },
{ key: 'bmr', label: '基础代谢', unit: 'kcal', icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/clock.png' },
{ key: 'bodyWater', label: '体水分', unit: '%', icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/shield.png' },
{ key: 'boneMass', label: '骨量', unit: 'kg', icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/user.png' }
],
radarLabels: [
{ key: 'weight', label: '体重控制' },
{ key: 'bodyFat', label: '体脂肪' },
{ key: 'muscle', label: '肌肉量' },
{ key: 'bone', label: '骨量' },
{ key: 'water', label: '体水分' },
{ key: 'bmr', label: '基础代谢' }
],
trendMetrics: [
{ key: 'weight', label: '体重' },
{ key: 'bodyFat', label: '体脂率' },
{ key: 'muscleMass', label: '肌肉量' },
{ key: 'bmi', label: 'BMI' }
],
recommendedCourses: [
{
id: 1,
title: '燃脂 HIIT 团课',
coach: '李明教练',
schedule: '每周二、四 19:00',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC1Banner.png',
tag: '减脂推荐'
},
{
id: 2,
title: '核心力量塑形',
coach: '王强教练',
schedule: '每周一、三 18:30',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC2Banner.png',
tag: '塑形推荐'
}
],
records: [
{
id: 4,
date: '2024-07-12',
time: '09:05',
score: 85,
grade: 'B+',
gradeLabel: '良好',
status: '比较健康',
bodyAge: 27,
realAge: 29,
metrics: {
weight: 63.5,
bmi: 22.1,
bodyFat: 24.8,
muscleMass: 22.6,
visceralFat: 6,
bmr: 1385,
bodyWater: 52.8,
boneMass: 2.42,
protein: 16.4
},
radar: { weight: 78, bodyFat: 72, muscle: 74, bone: 81, water: 79, bmr: 73 },
bodySegments: [
{ part: '左臂', level: 'normal', value: '2.1kg' },
{ part: '右臂', level: 'normal', value: '2.2kg' },
{ part: '躯干', level: 'high', value: '28.5kg' },
{ part: '左腿', level: 'normal', value: '8.6kg' },
{ part: '右腿', level: 'normal', value: '8.7kg' }
],
advice: [
'体脂率略高,建议增加有氧训练频率至每周 3-4 次',
'核心肌群表现良好,可尝试进阶力量课程',
'保持当前蛋白质摄入,有助于维持肌肉量'
],
recommendedCourseIds: [1, 2]
},
{
id: 3,
date: '2024-06-28',
time: '18:40',
score: 82,
grade: 'B+',
gradeLabel: '良好',
status: '比较健康',
bodyAge: 28,
realAge: 29,
metrics: {
weight: 64.7,
bmi: 22.5,
bodyFat: 25.3,
muscleMass: 22.2,
visceralFat: 7,
bmr: 1370,
bodyWater: 52.1,
boneMass: 2.4,
protein: 16.1
},
radar: { weight: 74, bodyFat: 68, muscle: 70, bone: 80, water: 76, bmr: 70 },
bodySegments: [
{ part: '左臂', level: 'normal', value: '2.0kg' },
{ part: '右臂', level: 'normal', value: '2.1kg' },
{ part: '躯干', level: 'high', value: '28.2kg' },
{ part: '左腿', level: 'normal', value: '8.5kg' },
{ part: '右腿', level: 'normal', value: '8.6kg' }
],
advice: [
'体重较上次下降 0.8kg,减脂方向正确',
'建议配合拉伸课程改善体态'
],
recommendedCourseIds: [1]
},
{
id: 2,
date: '2024-06-10',
time: '10:15',
score: 79,
grade: 'B',
gradeLabel: '中等',
status: '需关注',
bodyAge: 30,
realAge: 29,
metrics: {
weight: 65.5,
bmi: 22.8,
bodyFat: 26.1,
muscleMass: 21.8,
visceralFat: 8,
bmr: 1355,
bodyWater: 51.5,
boneMass: 2.38,
protein: 15.8
},
radar: { weight: 70, bodyFat: 62, muscle: 66, bone: 78, water: 72, bmr: 66 },
bodySegments: [
{ part: '左臂', level: 'low', value: '1.9kg' },
{ part: '右臂', level: 'normal', value: '2.0kg' },
{ part: '躯干', level: 'high', value: '28.0kg' },
{ part: '左腿', level: 'normal', value: '8.4kg' },
{ part: '右腿', level: 'normal', value: '8.5kg' }
],
advice: [
'内脏脂肪偏高,建议减少高糖饮食',
'增加抗阻训练提升肌肉量'
],
recommendedCourseIds: [2]
},
{
id: 1,
date: '2024-05-20',
time: '14:30',
score: 76,
grade: 'B',
gradeLabel: '中等',
status: '需关注',
bodyAge: 31,
realAge: 29,
metrics: {
weight: 66.2,
bmi: 23.1,
bodyFat: 26.8,
muscleMass: 21.5,
visceralFat: 9,
bmr: 1340,
bodyWater: 51.0,
boneMass: 2.35,
protein: 15.5
},
radar: { weight: 66, bodyFat: 58, muscle: 62, bone: 76, water: 68, bmr: 62 },
bodySegments: [
{ part: '左臂', level: 'low', value: '1.8kg' },
{ part: '右臂', level: 'low', value: '1.9kg' },
{ part: '躯干', level: 'high', value: '27.8kg' },
{ part: '左腿', level: 'normal', value: '8.3kg' },
{ part: '右腿', level: 'normal', value: '8.4kg' }
],
advice: [
'建议制定 8 周减脂计划并定期复测',
'每日饮水量建议达到 2000ml'
],
recommendedCourseIds: [1, 2]
}
]
}
export const bookingMock = {
upcomingAlert: '明天 09:00 有一堂瑜伽课,请提前 30 分钟到场',
tabs: [
{ key: 'ongoing', label: '进行中' },
{ key: 'history', label: '历史预约' }
],
ongoing: [
{
id: 1,
title: '瑜伽基础班',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC1Banner.png',
status: 'booked',
statusLabel: '已预约',
schedule: '07月15日 09:00-10:00',
dateDay: '07',
dateMonth: '月15日',
timeRange: '09:00-10:00',
coach: '李明教练',
coachShort: '李明',
location: '一楼 大厅',
footerText: '可取消(截止 07/15 07:00',
canCancel: true
},
{
id: 2,
title: '私教健身课',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC2Banner.png',
status: 'pending',
statusLabel: '待上课',
schedule: '07月18日 14:00-15:00',
dateDay: '07',
dateMonth: '月18日',
timeRange: '14:00-15:00',
coach: '王强教练',
coachShort: '王强',
location: 'B区私教室',
footerText: '地点:B区私教室',
canCancel: true
}
],
history: [
{
id: 3,
title: '动感单车',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC1Banner.png',
status: 'completed',
statusLabel: '已完成',
schedule: '07月10日 19:00-20:00',
coach: '赵敏教练',
footerText: '已签到',
canCancel: false
},
{
id: 4,
title: '普拉提进阶',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC2Banner.png',
status: 'cancelled',
statusLabel: '已取消',
schedule: '07月05日 10:00-11:00',
coach: '李明教练',
footerText: '用户主动取消',
canCancel: false
}
]
}
/** 可预约课程 catalog */
export const courseCatalogMock = {
coaches: ['全部', '李明教练', '王强教练', '赵敏教练'],
periodOptions: [
{ key: 'all', label: '全部时段' },
{ key: 'morning', label: '上午' },
{ key: 'afternoon', label: '下午' },
{ key: 'evening', label: '晚上' }
],
typeOptions: [
{ key: 'all', label: '全部' },
{ key: 'group', label: '团课' },
{ key: 'private', label: '私教' }
],
courses: [
{
id: 101,
title: '瑜伽基础班',
type: 'group',
coach: '李明教练',
coachAvatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/user0.png',
date: '2024-07-15',
startTime: '09:00',
endTime: '10:00',
location: '一楼大厅',
enrolled: 12,
capacity: 20,
price: '次卡扣 1 次',
payType: 'session',
period: 'morning',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC1Banner.png',
intro: '适合零基础学员,重点提升柔韧性与呼吸控制。',
suitable: '久坐办公族、初学者、想改善体态者',
coachBio: '国家一级瑜伽指导员,5年教学经验',
coachRating: 4.9,
reviews: [
{ user: '会员 A', score: 5, text: '教练讲解很细致,氛围很好' },
{ user: '会员 B', score: 5, text: '适合新手,推荐' }
],
cancelRule: '至少提前 2 小时取消,否则视为爽约'
},
{
id: 102,
title: 'HIIT 燃脂团课',
type: 'group',
coach: '赵敏教练',
coachAvatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/user1.png',
date: '2024-07-15',
startTime: '19:00',
endTime: '20:00',
location: '有氧区',
enrolled: 18,
capacity: 20,
price: '时长卡',
payType: 'duration',
period: 'evening',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC1Banner.png',
intro: '高强度间歇训练,快速燃脂提升心肺。',
suitable: '有一定运动基础、目标减脂者',
coachBio: 'ACE 认证教练,擅长 HIIT 与动感单车',
coachRating: 4.8,
reviews: [{ user: '会员 C', score: 5, text: '强度够,出汗很多' }],
cancelRule: '至少提前 2 小时取消'
},
{
id: 103,
title: '私教 · 力量训练',
type: 'private',
coach: '王强教练',
coachAvatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/user2.png',
date: '2024-07-16',
startTime: '14:00',
endTime: '15:00',
location: 'B区私教室',
enrolled: 1,
capacity: 1,
price: '私教课时卡',
payType: 'private',
period: 'afternoon',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC2Banner.png',
intro: '一对一力量训练,定制训练计划。',
suitable: '增肌塑形、康复训练',
coachBio: 'NSCA 认证私教,8年从业经验',
coachRating: 5.0,
reviews: [{ user: '会员 D', score: 5, text: '非常专业' }],
cancelRule: '至少提前 2 小时取消'
},
{
id: 104,
title: '普拉提进阶',
type: 'group',
coach: '李明教练',
coachAvatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/user0.png',
date: '2024-07-17',
startTime: '10:30',
endTime: '11:30',
location: '二楼瑜伽室',
enrolled: 8,
capacity: 15,
price: '次卡扣 1 次',
payType: 'session',
period: 'morning',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC2Banner.png',
intro: '核心稳定与体态矫正进阶课程。',
suitable: '有普拉提基础者',
coachBio: '国家一级瑜伽指导员',
coachRating: 4.9,
reviews: [],
cancelRule: '至少提前 2 小时取消'
},
{
id: 105,
title: '动感单车',
type: 'group',
coach: '赵敏教练',
coachAvatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/user1.png',
date: '2024-07-18',
startTime: '18:30',
endTime: '19:30',
location: '单车房',
enrolled: 20,
capacity: 20,
price: '储值卡 ¥39',
payType: 'stored',
period: 'evening',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC1Banner.png',
intro: '音乐骑行,团队氛围燃脂。',
suitable: '所有级别,可调节阻力',
coachBio: 'ACE 认证教练',
coachRating: 4.7,
reviews: [{ user: '会员 E', score: 4, text: '音乐很带感' }],
cancelRule: '至少提前 2 小时取消'
}
]
}
/** 个人中心其它模块 mock 数据 */
export const moduleMock = {
trainingReport: {
periodLabel: '本周训练',
summary: {
sessions: 4,
hours: 6.5,
calories: 2180,
streak: 3,
visits: 5
},
monthlyHours: [
{ label: '第1周', value: 4.2 },
{ label: '第2周', value: 5.8 },
{ label: '第3周', value: 6.5 },
{ label: '第4周', value: 5.0 }
],
monthlyCalories: [
{ label: '第1周', value: 1200 },
{ label: '第2周', value: 1680 },
{ label: '第3周', value: 2180 },
{ label: '第4周', value: 1850 }
],
weeklyHours: [
{ label: '一', value: 1.2 },
{ label: '二', value: 0 },
{ label: '三', value: 1.5 },
{ label: '四', value: 0.8 },
{ label: '五', value: 1.0 },
{ label: '六', value: 2.0 },
{ label: '日', value: 0 }
],
sessions: [
{
id: 1,
title: '瑜伽基础班',
coach: '李明教练',
date: '2024-07-12',
time: '09:00-10:00',
duration: '60分钟',
calories: 320,
type: 'group',
typeLabel: '团课'
},
{
id: 2,
title: '自由训练 · 力量',
coach: '自主训练',
date: '2024-07-11',
time: '18:30-19:45',
duration: '75分钟',
calories: 480,
type: 'free',
typeLabel: '自由'
},
{
id: 3,
title: '私教 · 核心塑形',
coach: '王强教练',
date: '2024-07-10',
time: '14:00-15:00',
duration: '60分钟',
calories: 410,
type: 'private',
typeLabel: '私教'
},
{
id: 4,
title: '动感单车',
coach: '赵敏教练',
date: '2024-07-08',
time: '19:00-20:00',
duration: '60分钟',
calories: 520,
type: 'group',
typeLabel: '团课'
}
]
},
couponTabs: [
{ key: 'available', label: '可用' },
{ key: 'used', label: '已使用' },
{ key: 'expired', label: '已过期' }
],
coupons: [
{
id: 1,
status: 'available',
amount: 50,
title: '满500减50',
desc: '全场团课/私教可用',
expire: '2024-12-31',
minSpend: 500,
tag: '通用券',
rules: '1. 满500元可用\n2. 适用于团课/私教\n3. 不可与其他优惠叠加\n4. 有效期至2024-12-31',
scope: '全门店 · 团课/私教',
flow: '选择课程 → 确认订单 → 选择优惠券 → 完成支付'
},
{
id: 2,
status: 'available',
amount: 30,
title: '新人专享',
desc: '首次购课立减',
expire: '2024-08-31',
minSpend: 200,
tag: '新人券',
rules: '1. 限新注册用户首次购课\n2. 满200可用',
scope: '全门店 · 首次购课',
flow: '首次预约课程时自动提示使用'
},
{
id: 3,
status: 'used',
amount: 20,
title: '签到奖励券',
desc: '连续签到7天获得',
expire: '2024-07-01',
minSpend: 100,
tag: '奖励券',
usedAt: '2024-06-28',
rules: '满100可用',
scope: '团课',
flow: '预约时使用'
},
{
id: 4,
status: 'expired',
amount: 100,
title: '周年庆特惠',
desc: '满1000可用',
expire: '2024-06-01',
minSpend: 1000,
tag: '活动券',
rules: '满1000可用,已过期',
scope: '全门店',
flow: '—'
}
],
couponCenter: [
{
id: 11,
amount: 20,
title: '周末团课券',
desc: '周末团课满200减20',
expireDays: 30,
minSpend: 200,
tag: '可领取',
claimed: false
},
{
id: 12,
amount: 50,
title: '私教体验券',
desc: '私教课满500减50',
expireDays: 15,
minSpend: 500,
tag: '限时',
claimed: false
},
{
id: 13,
amount: 10,
title: '签到加油券',
desc: '无门槛10元券',
expireDays: 7,
minSpend: 0,
tag: '每日',
claimed: true
}
],
pointsConfig: {
rate: '100积分 = 1元',
rule: '签到、训练、邀请好友、购课均可获得积分;积分可用于商城兑换。'
},
pointsRewards: [
{ id: 1, name: '团课体验券', cost: 500, stock: 12, icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/ticket.png' },
{ id: 2, name: '运动毛巾', cost: 800, stock: 5, icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/dumbbell.png' },
{ id: 3, name: '私教体验30分钟', cost: 2000, stock: 3, icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/usercheck.png' },
{ id: 4, name: '蛋白粉小样', cost: 350, stock: 20, icon: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/star.png' }
],
pointsHistory: [
{ id: 1, type: 'earn', title: '团课签到', amount: 50, time: '2024-07-12 09:10', balance: 1250 },
{ id: 2, type: 'earn', title: '邀请好友注册', amount: 200, time: '2024-07-08 15:30', balance: 1200 },
{ id: 3, type: 'spend', title: '兑换团课体验券', amount: -500, time: '2024-07-01 11:00', balance: 1000 },
{ id: 4, type: 'earn', title: '会员卡续费奖励', amount: 100, time: '2024-07-01 10:05', balance: 1500 },
{ id: 5, type: 'earn', title: '体测完成奖励', amount: 30, time: '2024-06-28 18:45', balance: 1400 }
],
referralRules: [
'好友通过您的邀请码注册,双方各得 100 积分',
'好友首次购课成功后,您额外获得 300 积分',
'每月邀请奖励上限 10 人,超出不再计奖',
'积分可用于兑换课程体验券及周边礼品'
],
referralRecords: [
{ id: 1, name: '李**', avatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/user0.png', status: 'purchased', statusLabel: '已购课', time: '2024-07-05', reward: '+300积分', rewardStatus: '已发放' },
{ id: 2, name: '王**', avatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/user1.png', status: 'registered', statusLabel: '已注册', time: '2024-06-20', reward: '+100积分', rewardStatus: '已发放' },
{ id: 3, name: '陈**', avatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/user2.png', status: 'invited', statusLabel: '已邀请', time: '2024-06-15', reward: '待注册', rewardStatus: '待发放' },
{ id: 4, name: '赵**', avatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/user3.png', status: 'purchased', statusLabel: '已购课', time: '2024-06-01', reward: '+300积分', rewardStatus: '已发放' },
{ id: 5, name: '刘**', avatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/user0.png', status: 'registered', statusLabel: '已注册', time: '2024-05-28', reward: '+100积分', rewardStatus: '已发放' }
],
referralRewardSummary: {
totalPoints: 800,
totalCoupons: 2,
pendingCount: 1
},
myCourseTabs: [
{ key: 'group', label: '团课' },
{ key: 'private', label: '私教' },
{ key: 'online', label: '线上课' },
{ key: 'package', label: '训练营' }
],
myCourses: {
group: {
ongoing: [
{
id: 1,
title: '瑜伽基础班',
coach: '李明教练',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC1Banner.png',
progress: 6,
total: 12,
schedule: '每周二、四 09:00',
location: '一楼大厅',
nextClass: '07月16日 09:00',
canCancel: true,
bookingId: 1
}
],
completed: [
{
id: 3,
title: '动感单车入门',
coach: '赵敏教练',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC1Banner.png',
progress: 8,
total: 8,
schedule: '已结课',
location: '单车房',
completedAt: '2024-06-30',
canEvaluate: true
}
]
},
private: {
remaining: 7,
coach: '王强教练',
coachAvatar: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/user2.png',
nextClass: '07月15日 14:00',
bookings: [
{ id: 2, title: '私教 · 力量训练', time: '07月18日 14:00', status: '已预约', location: 'B区私教室' }
],
completed: [
{ id: 5, title: '私教 · 核心塑形', time: '2024-07-10 14:00', coach: '王强教练' }
]
},
online: [
{
id: 201,
title: '居家核心训练',
cover: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC2Banner.png',
duration: '45分钟',
progress: 60,
chapters: 6,
watched: 4,
type: 'video'
},
{
id: 202,
title: '直播 · 晨间拉伸',
cover: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC1Banner.png',
duration: '30分钟',
progress: 0,
liveTime: '07月20日 07:00',
type: 'live'
}
],
package: [
{
id: 301,
title: '28天减脂训练营',
banner: 'https://gymfuture.oss-cn-chengdu.aliyuncs.com/static/images/AC1Banner.png',
progress: 3,
total: 10,
coach: '李明教练',
schedule: '每周5练'
}
]
},
checkInTabs: [
{ key: 'all', label: '全部' },
{ key: 'group', label: '团课' },
{ key: 'private', label: '私教' },
{ key: 'free', label: '自由' }
],
checkInHistory: [
{
id: 1,
title: '今日签到 · 瑜伽初级班',
time: '2024-07-12 09:05',
tag: '团课',
tagTheme: 'group',
location: '一楼大厅'
},
{
id: 2,
title: '自由训练 · 进馆记录',
time: '2024-07-11 18:30',
tag: '自由',
tagTheme: 'free',
location: '器械区'
},
{
id: 3,
title: '私教课 · 力量训练',
time: '2024-07-10 14:00',
tag: '私教',
tagTheme: 'private',
location: 'B区私教室'
},
{
id: 4,
title: '团课签到 · 动感单车',
time: '2024-07-08 19:02',
tag: '团课',
tagTheme: 'group',
location: '单车房'
},
{
id: 5,
title: '自由训练 · 进馆记录',
time: '2024-07-06 17:45',
tag: '自由',
tagTheme: 'free',
location: '有氧区'
}
]
}