diff --git a/src/App.vue b/src/App.vue index 4446bdd..d96267a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,7 +5,7 @@ import Page1 from './pages/Page1.vue'; import assets from './assets'; import Loader from './pages/Loader.vue'; -const stage = ref(-1); +const stage = ref(1); const userData = ref({ region: '奥莱', diff --git a/src/assets/ani/答题标题.zip b/src/assets/ani/答题标题.zip new file mode 100644 index 0000000..70e7e6a Binary files /dev/null and b/src/assets/ani/答题标题.zip differ diff --git a/src/assets/index.ts b/src/assets/index.ts index 8b40d03..e544f64 100644 --- a/src/assets/index.ts +++ b/src/assets/index.ts @@ -30,6 +30,7 @@ export default { 结尾主标: new URL('./ani/结尾主标.zip', import.meta.url).href, 海报p1: new URL('./ani/海报p1.zip', import.meta.url).href, 海报p2: new URL('./ani/海报p2.zip', import.meta.url).href, + 答题标题: new URL('./ani/答题标题.zip', import.meta.url).href, }, icons: [ [new URL('./icons/icon1.webp', import.meta.url).href, new URL('./icons/bigicon1.webp', import.meta.url).href], diff --git a/src/assets/sounds/index.ts b/src/assets/sounds/index.ts index a82c3ea..4ff5f2e 100644 --- a/src/assets/sounds/index.ts +++ b/src/assets/sounds/index.ts @@ -6,6 +6,8 @@ import 弹簧蓄力下拉音效 from "./弹簧蓄力下拉音效.mp3" import 风声 from "./风声.mp3" import 标题出现 from "./首页标题、尾标出现音效.mp3" import 结算 from "./最终结算音效.mp3" +import 正确 from "./正确.mp3" +import 错误 from "./错误.mp3" const ea = new EasyAudio([ {name: "按钮音效", audioUrl: 按钮音效, volume: 0.5}, @@ -14,6 +16,8 @@ const ea = new EasyAudio([ {name: "风声", audioUrl: 风声, volume: 0.5}, {name: "标题出现", audioUrl: 标题出现, volume: 0.5}, {name: "结算", audioUrl: 结算, volume: 0.5}, + {name: "正确", audioUrl: 正确, volume: 0.5}, + {name: "错误", audioUrl: 错误, volume: 0.5}, ]); export default ea; \ No newline at end of file diff --git a/src/assets/sounds/正确.mp3 b/src/assets/sounds/正确.mp3 new file mode 100644 index 0000000..14fd3be Binary files /dev/null and b/src/assets/sounds/正确.mp3 differ diff --git a/src/assets/sounds/错误.mp3 b/src/assets/sounds/错误.mp3 new file mode 100644 index 0000000..b7dd41c Binary files /dev/null and b/src/assets/sounds/错误.mp3 differ diff --git a/src/data/index.ts b/src/data/index.ts index 352faa9..8480a70 100644 --- a/src/data/index.ts +++ b/src/data/index.ts @@ -460,4 +460,173 @@ export const regions: RegionData = { "备注": "DFT0001-三亚海棠湾免税店" } ] -} \ No newline at end of file +} + +// 定义题目对象的接口,以确保数据类型的一致性 +export interface QuizQuestion { + id: number; // 题目唯一ID + type: 'single' | 'multiple'; // 题目类型:'single' 为单选, 'multiple' 为多选 + question: string; // 题目问题 + options: string[]; // 所有选项 + answers: string[]; // 正确答案(单选也使用数组,方便统一处理) +} + +// ARC Retail 弹性福利平台答题竞赛题库 +export const arcRetailQuiz: QuizQuestion[] = [ + // --- 一、单选题 --- + { + id: 1, + type: 'single', + question: '弹性福利平台的核心功能是?', + options: [ + '发放基本工资', + '实现福利积分兑换', + '进行绩效评估', + '规划职业发展', + ], + answers: ['实现福利积分兑换'], + }, + { + id: 2, + type: 'single', + question: '弹性福利平台上线后,健康福利的变化是?', + options: [ + '只能选体检', + '可在体检和牙齿清洁中自主选择', + '同时免费领体检 + 洁牙', + '取消健康福利', + ], + answers: ['可在体检和牙齿清洁中自主选择'], + }, + { + id: 3, + type: 'single', + question: '员工想知道自己有多少福利积分,最便捷的方式是?', + options: [ + '每月找 HR 查', + '登录弹性福利平台实时查看', + '等年底邮件通知', + '问同事打听', + ], + answers: ['登录弹性福利平台实时查看'], + }, + { + id: 4, + type: 'single', + question: '以下哪项是 2025 年 新增 的福利兑换项目?', + options: ['节日礼品', '员工洁牙', '法定社保', '商业保险'], + answers: ['员工洁牙'], + }, + { + id: 5, + type: 'single', + question: '福利积分 主要通过什么方式获取?', + options: ['日常加班', '参与景仰计划', '绩效满分', '达成销售业绩'], + answers: ['参与景仰计划'], + }, + { + id: 6, + type: 'single', + question: '员工每年最多可以参加多少次公司组织的景仰计划?', + options: ['1次', '2次', '3次', '无限制'], + answers: ['2次'], + }, + { + id: 7, + type: 'single', + question: '如果觉得近期压力大,心情低落,哪一项解决路径是公司平台提供的?', + options: [ + '可以求助公司专业的EAP服务', + '和朋友吐苦水', + '大吃大喝', + '睡一觉', + ], + answers: ['可以求助公司专业的EAP服务'], + }, + { + id: 8, + type: 'single', + question: '员工商保属于哪类福利?', + options: ['法定福利', '企业补充福利', '带薪休假', '绩效奖金'], + answers: ['企业补充福利'], + }, + + // --- 二、多选题 --- + { + id: 9, + type: 'multiple', + question: '弹性福利平台可兑换的福利包含哪些?', + options: ['员工体检', '员工洁牙', '节日礼包', '基本工资'], + answers: ['员工体检', '员工洁牙', '节日礼包'], + }, + { + id: 10, + type: 'multiple', + question: '关于弹性福利平台,这些 “新体验” 是真的!', + options: ['福利能自己选', '积分随时看', '福利都搬到线上', '只有经理能使用'], + answers: ['福利能自己选', '积分随时看', '福利都搬到线上'], + }, + { + id: 11, + type: 'multiple', + question: '家属也能通过弹性福利平台享受哪些福利?', + options: ['家属商保自选', '家属体检自选', '家属洁牙自选', '员工生日积分'], + answers: ['家属商保自选', '家属体检自选', '家属洁牙自选'], + }, + { + id: 12, + type: 'multiple', + question: '2025 年,福利积分新增了哪些类型?', + options: ['生日积分', '周年积分', '长期服务积分', '景仰积分'], + answers: ['生日积分', '周年积分', '长期服务积分', '景仰积分'], + }, + { + id: 13, + type: 'multiple', + question: '弹性福利平台上线后,福利的 “获取和使用” 发生了哪些改变?', + options: [ + '获取:从 “等公司发”→“参与景仰计划赚积分”', + '使用:从 “被动接受固定福利”→“自主选想要的福利”', + '管理:从 “找 HR 咨询”→“平台随时查、限时兑”', + '福利变少了', + ], + answers: [ + '获取:从 “等公司发”→“参与景仰计划赚积分”', + '使用:从 “被动接受固定福利”→“自主选想要的福利”', + '管理:从 “找 HR 咨询”→“平台随时查、限时兑”', + ], + }, + { + id: 14, + type: 'multiple', + question: '景仰计划包含哪些层级的活动?', + options: [ + 'T1最美鸟人,面向优秀员工', + 'T2探界鸟人,硬核挑战,自主报名', + 'T3领航鸟人,领导力发展,面向店铺管理', + 'T4起翼新鸟,新手入门,自主报名', + ], + answers: [ + 'T1最美鸟人,面向优秀员工', + 'T2探界鸟人,硬核挑战,自主报名', + 'T3领航鸟人,领导力发展,面向店铺管理', + 'T4起翼新鸟,新手入门,自主报名', + ], + }, + { + id: 15, + type: 'multiple', + question: '员工360关爱计划(EAP)的联系途径有哪些?', + options: [ + '400电话(400 920 3300)', + '微信公众号(职选)', + '网站(https://global.helpwhereyouare.com)', + '小红书', + ], + answers: [ + '400电话(400 920 3300)', + '微信公众号(职选)', + '网站(https://global.helpwhereyouare.com)', + ], + }, +]; \ No newline at end of file diff --git a/src/pages/Game.vue b/src/pages/Game.vue index 42d42aa..172aabd 100644 --- a/src/pages/Game.vue +++ b/src/pages/Game.vue @@ -1,9 +1,12 @@