press-next
Version:
Vue3 组件库,支持 Composition API
55 lines (51 loc) • 1.35 kB
text/typescript
// 报名信息类型定义
export interface SignUpInfo {
mode: string;
play: string;
requireTeamType: string;
other: string;
time: string;
address: string;
process: Array<{
process: string;
processDesc: string;
}>;
}
// 生成模拟数据的函数
export function getMockData() {
return {
tabs: ['报名须知', '如何参赛', '开赛准备', '详细规则'],
signUpInfo: {
mode: '1v1',
play: '经典模式',
requireTeamType: '城市赛队伍',
other: '账号下拥有16个角色(含限免角色)可参赛',
time: '2024年7月7日 14:00',
address: '深圳市南山区腾讯滨海大厦',
process: [
{
process: '队长报名',
processDesc: '满2人方可进入赛程',
},
{
process: '裁判签到',
processDesc: '7/7 14:00前满2人才可参赛',
},
{
process: '生成赛程',
processDesc: '已签到队伍不能调整队员',
},
{
process: '比赛开始',
processDesc: '通过本页面进入比赛房间',
},
],
},
matchQRCode: 'https://tencent.com',
groupQRCode: 'https://tencent.com',
matchDate: '7月7日',
matchTime: '14:00',
};
}
const DEMO_DATA = getMockData();
export default DEMO_DATA;