-
{{ msg }}
+
+ {{ msg }}
+
diff --git a/src/components/ImageSync/index.vue b/src/components/ImageSync/index.vue
index 00e982d..6dd2ae0 100644
--- a/src/components/ImageSync/index.vue
+++ b/src/components/ImageSync/index.vue
@@ -1,41 +1,40 @@
-
+
diff --git a/src/components/PlayMusic/index.vue b/src/components/PlayMusic/index.vue
index c12a3c3..b85d020 100644
--- a/src/components/PlayMusic/index.vue
+++ b/src/components/PlayMusic/index.vue
@@ -1,119 +1,127 @@
-
-
-
-
-
+
diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue
index ddca7f8..028e6a3 100644
--- a/src/components/SvgIcon/index.vue
+++ b/src/components/SvgIcon/index.vue
@@ -1,5 +1,6 @@
+
+
diff --git a/src/layout/index.vue b/src/layout/index.vue
index f1c2593..acd521c 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -1,16 +1,16 @@
@@ -19,16 +19,16 @@ const scrollToTop=()=>{
-
+
-
-
+
+
diff --git a/src/locales/en.ts b/src/locales/en.ts
index 67e7a15..c585461 100644
--- a/src/locales/en.ts
+++ b/src/locales/en.ts
@@ -1,149 +1,149 @@
export default {
- button: {
- enterLottery: 'Enter Lottery',
- start:'Start',
- selectLucky:'Draw the Lucky',
- continue: 'Continue',
- confirm: 'Confirm',
- cancel: 'Cancel',
- setting: 'Setting',
- delete: 'Delete',
- allDelete: 'Delete All',
- downloadTemplate: 'Download Template',
- importData: 'Import Data',
- resetData: 'Reset Data',
- exportResult: 'Export Result',
- add: 'Add',
- resetDefault: 'Reset Default',
- resetAllData: 'Reset All Data',
- clearPattern: 'Clear Pattern',
- DefaultPattern: 'Default Pattern',
- upload: 'Upload',
- reset: 'Reset',
- play: 'Play',
- setLayout:'Set Layout',
- close:'Close'
- },
- sidebar:{
- personConfiguration:'Person Configuration',
- personList:'Person List',
- winnerList:'Winner List',
- prizeConfiguration:'Prize Configuration',
- globalSetting:'Global Configuration',
- viewSetting:'View Setting',
- imagesManagement:'Images Management',
- musicManagement:'Music Management',
- operatingInstructions:'Operating Instructions'
- },
- viewTitle:{
- personManagement:'Person Management',
- winnerManagement:'Winner Management',
- prizeManagement:'Prize Management',
- globalSetting:'Global Setting',
- operatingInstructions:'Operating Instructions'
- },
- table:{
- // person configuration
- number:'Number',
- name:'Name',
- prizeName:'Name',
- department:'Department',
- identity:'Identity',
- isLucky:'Is Lucky',
- operation:'Operation',
- setLuckyNumber:'Set Lucky Number',
- luckyPeopleNumber:'Lucky People Number',
+ button: {
+ enterLottery: 'Enter Lottery',
+ start: 'Start',
+ selectLucky: 'Draw the Lucky',
+ continue: 'Continue',
+ confirm: 'Confirm',
+ cancel: 'Cancel',
+ setting: 'Setting',
+ delete: 'Delete',
+ allDelete: 'Delete All',
+ downloadTemplate: 'Download Template',
+ importData: 'Import Data',
+ resetData: 'Reset Data',
+ exportResult: 'Export Result',
+ add: 'Add',
+ resetDefault: 'Reset Default',
+ resetAllData: 'Reset All Data',
+ clearPattern: 'Clear Pattern',
+ DefaultPattern: 'Default Pattern',
+ upload: 'Upload',
+ reset: 'Reset',
+ play: 'Play',
+ setLayout: 'Set Layout',
+ close: 'Close',
+ noInfoAndImport: 'No Info and import it',
+ useDefault: 'Use Default Data',
+ },
+ sidebar: {
+ personConfiguration: 'Person Configuration',
+ personList: 'Person List',
+ winnerList: 'Winner List',
+ prizeConfiguration: 'Prize Configuration',
+ globalSetting: 'Global Configuration',
+ viewSetting: 'View Setting',
+ imagesManagement: 'Images Management',
+ musicManagement: 'Music Management',
+ operatingInstructions: 'Operating Instructions',
+ },
+ viewTitle: {
+ personManagement: 'Person Management',
+ winnerManagement: 'Winner Management',
+ prizeManagement: 'Prize Management',
+ globalSetting: 'Global Setting',
+ operatingInstructions: 'Operating Instructions',
+ },
+ table: {
+ // person configuration
+ number: 'Number',
+ name: 'Name',
+ prizeName: 'Name',
+ department: 'Department',
+ identity: 'Identity',
+ isLucky: 'Is Lucky',
+ operation: 'Operation',
+ setLuckyNumber: 'Set Lucky Number',
+ luckyPeopleNumber: 'Lucky People Number',
- detail:'Detail',
- noneData:'No Data',
- // prize configuration
- fullParticipation:'FullParticipation',
- numberParticipants:'NumberParticipants',
- isDone:'is Done',
- image:'Image',
- onceNumber:'Once Number',
- time:'Time',
- // view setting
- title:'Main Title',
- columnNumber:'Column Number',
- theme:'Theme',
- language:'Language',
- cardColor:'Card Color',
- winnerColor:'Winner Color',
- textColor:'Text Color',
- cardWidth:'Card Width',
- cardHeight:'Card Height',
- textSize:'Text Size',
- highlightColor:'HighLight Color',
- patternSetting:'Pattern Setting',
- alwaysDisplay:'Always Display Prize List',
- selectPicture:'Select a Picture'
- },
- dialog:{
- titleTip:'Tip!',
- titleTemporary:'Add Temporary Activity',
- dialogPCWeb:'Please use a PC browser to access for optimal display performance',
- dialogDelAllPerson:'This operation will delete all personnel list data. Do you want to continue?',
- dialogResetWinner:'This operation will clear the winning information of personnel. Do you want to continue?',
- dialogResetAllData:'This operation will reset all data. Do you want to continue?',
- dialogSingleDrawLimit:'Only 10 characters can be extracted in a single draw',
- dialogLatestBrowser:'Please use the latest version of Chrome or Edge browser',
- tipResetPrize:'Performing operations may reset data, please proceed with caution',
- },
- tooltip:{
- settingConfiguration:'Setting/Configuration',
- nextSong:'Right Click to Next Song',
- noSongPlay:'No Song to Play',
- prizeList:'Prize List',
- addActivity:'Add Activity',
- downloadTemplateTip:'After downloading the file, please fill in the data in Excel and save it in xlsx format',
- uploadExcelTip:'Upload the modified Excel file',
- leftClick:'Left Click to Slice',
- toHome:'to Home',
- resetLayout:'This item is time-consuming and performance intensive',
- defaultLayout:'The default pattern setting is valid for 17 columns, please set the number of other columns yourself',
- doneCount:'Number of winners',
- edit:'Edit',
- delete:'Delete'
- },
- error:{
- require:'required field',
- requireNumber:'please enter a number',
- minNumber1:'the minimum is 1',
- maxNumber100:'the maximum is 100',
- uploadSuccess:'Upload Success',
- uploadFail:'Upload Failed',
- notImage:'Not Image',
- personIsAllDone:'All Person Is Done',
- personNotEnough:'Person Is Not Enough',
- noInfoAndImport:'No Info and import it',
- useDefault:'Use Default Data',
- completeInformation:'Please provide complete information'
- },
- placeHolder:{
- enterTitle:'Enter Title',
- name:'Name',
- winnerCount:'Lucky Person Count',
- },
- data:{
- yes:'Yes',
- no:'No',
- number:'Number',
- isWin:'isWin',
- department:'Department',
- name:'Name',
- identity:'Identity',
- prizeName:'Prize Name',
- prizeTime:'Prize Time',
- operation:'Operation',
- delete:'Delete',
- removePerson:'Remove the Person',
- defaultTitle:'The Prelude to the Six Ministries of the Ming Dynasty Cabinet',
- xlsxName:'personListTemplate-en.xlsx',
- readmeName:'readme-en.md'
- },
- footer:{
- 'self-reflection':'Turn inward and examine yourself when you encounter difficulties in life.',
- 'thiefEasy':'Thief difficult mountain thief easily, breaking heart.'
- }
+ detail: 'Detail',
+ noneData: 'No Data',
+ // prize configuration
+ fullParticipation: 'FullParticipation',
+ numberParticipants: 'NumberParticipants',
+ isDone: 'is Done',
+ image: 'Image',
+ onceNumber: 'Once Number',
+ time: 'Time',
+ // view setting
+ title: 'Main Title',
+ columnNumber: 'Column Number',
+ theme: 'Theme',
+ language: 'Language',
+ cardColor: 'Card Color',
+ winnerColor: 'Winner Color',
+ textColor: 'Text Color',
+ cardWidth: 'Card Width',
+ cardHeight: 'Card Height',
+ textSize: 'Text Size',
+ highlightColor: 'HighLight Color',
+ patternSetting: 'Pattern Setting',
+ alwaysDisplay: 'Always Display Prize List',
+ selectPicture: 'Select a Picture',
+ },
+ dialog: {
+ titleTip: 'Tip!',
+ titleTemporary: 'Add Temporary Activity',
+ dialogPCWeb: 'Please use a PC browser to access for optimal display performance',
+ dialogDelAllPerson: 'This operation will delete all personnel list data. Do you want to continue?',
+ dialogResetWinner: 'This operation will clear the winning information of personnel. Do you want to continue?',
+ dialogResetAllData: 'This operation will reset all data. Do you want to continue?',
+ dialogSingleDrawLimit: 'Only 10 characters can be extracted in a single draw',
+ dialogLatestBrowser: 'Please use the latest version of Chrome or Edge browser',
+ tipResetPrize: 'Performing operations may reset data, please proceed with caution',
+ },
+ tooltip: {
+ settingConfiguration: 'Setting/Configuration',
+ nextSong: 'Right Click to Next Song',
+ noSongPlay: 'No Song to Play',
+ prizeList: 'Prize List',
+ addActivity: 'Add Activity',
+ downloadTemplateTip: 'After downloading the file, please fill in the data in Excel and save it in xlsx format',
+ uploadExcelTip: 'Upload the modified Excel file',
+ leftClick: 'Left Click to Slice',
+ toHome: 'to Home',
+ resetLayout: 'This item is time-consuming and performance intensive',
+ defaultLayout: 'The default pattern setting is valid for 17 columns, please set the number of other columns yourself',
+ doneCount: 'Number of winners',
+ edit: 'Edit',
+ delete: 'Delete',
+ },
+ error: {
+ require: 'required field',
+ requireNumber: 'please enter a number',
+ minNumber1: 'the minimum is 1',
+ maxNumber100: 'the maximum is 100',
+ uploadSuccess: 'Upload Success',
+ uploadFail: 'Upload Failed',
+ notImage: 'Not Image',
+ personIsAllDone: 'All Person Is Done',
+ personNotEnough: 'Person Is Not Enough',
+ completeInformation: 'Please provide complete information',
+ },
+ placeHolder: {
+ enterTitle: 'Enter Title',
+ name: 'Name',
+ winnerCount: 'Lucky Person Count',
+ },
+ data: {
+ yes: 'Yes',
+ no: 'No',
+ number: 'Number',
+ isWin: 'isWin',
+ department: 'Department',
+ name: 'Name',
+ identity: 'Identity',
+ prizeName: 'Prize Name',
+ prizeTime: 'Prize Time',
+ operation: 'Operation',
+ delete: 'Delete',
+ removePerson: 'Remove the Person',
+ defaultTitle: 'The Prelude to the Six Ministries of the Ming Dynasty Cabinet',
+ xlsxName: 'personListTemplate-en.xlsx',
+ readmeName: 'readme-en.md',
+ },
+ footer: {
+ 'self-reflection': 'Turn inward and examine yourself when you encounter difficulties in life.',
+ 'thiefEasy': 'Thief difficult mountain thief easily, breaking heart.',
+ },
}
diff --git a/src/locales/i18n.ts b/src/locales/i18n.ts
index 7659795..4a31aad 100644
--- a/src/locales/i18n.ts
+++ b/src/locales/i18n.ts
@@ -1,32 +1,32 @@
// i18n配置
-import { createI18n } from "vue-i18n";
-import zhCn from "./zhCn";
-import en from "./en";
-export type Language='en'|'zhCn'
+import { createI18n } from 'vue-i18n'
+import en from './en'
+import zhCn from './zhCn'
-export const languageList=[
- {
- key:'zhCn',
- name:'中文',
- flag:'zh-cn'
- },
- {
- key:'en',
- name:'English',
- flag:'en-us'
- }
+export type Language = 'en' | 'zhCn'
+
+export const languageList = [
+ {
+ key: 'zhCn',
+ name: '中文',
+ flag: 'zh-cn',
+ },
+ {
+ key: 'en',
+ name: 'English',
+ flag: 'en-us',
+ },
]
-export const browserLanguage=navigator.language.toLowerCase().indexOf('zh')>=0?'zhCn':'en';
-const globalConfig=JSON.parse(localStorage.getItem('globalConfig')||'{}').globalConfig||{}
+export const browserLanguage = navigator.language.toLowerCase().includes('zh') ? 'zhCn' : 'en'
+const globalConfig = JSON.parse(localStorage.getItem('globalConfig') || '{}').globalConfig || {}
// 创建i18n
const i18n = createI18n({
- locale: globalConfig.language||browserLanguage,
- globalInjection: true, // 全局注入,可以直接使用$t
- legacy:false,
+ locale: globalConfig.language || browserLanguage,
+ legacy: false,
messages: {
zhCn,
- en
- }
+ en,
+ },
})
-export default i18n;
+export default i18n
diff --git a/src/locales/zhCn.ts b/src/locales/zhCn.ts
index e5006ca..d6da00a 100644
--- a/src/locales/zhCn.ts
+++ b/src/locales/zhCn.ts
@@ -1,150 +1,150 @@
export default {
- button: {
- enterLottery: '进入抽奖',
- start:'开始',
- selectLucky:'抽取幸运儿',
- continue: '继续',
- confirm: '确认',
- cancel: '取消',
- setting: '设置',
- delete: '删除',
- allDelete: '删除全部',
- downloadTemplate: '下载模板',
- importData: '导入数据',
- resetData: '重置数据',
- exportResult: '导出结果',
- add: '添加',
- resetDefault: '重置为默认',
- resetAllData: '重置所有数据',
- clearPattern: '清除图案',
- DefaultPattern: '默认图案',
- upload: '上传',
- reset: '重置',
- play: '播放',
- setLayout:'重设布局',
- close:'关闭',
- noInfoAndImport:'暂无人员信息,前往导入',
- useDefault:'使用默认数据'
- },
- sidebar:{
- personConfiguration:'人员配置',
- personList:'人员列表',
- winnerList:'中奖人员',
- prizeConfiguration:'奖品配置',
- globalSetting:'全局配置',
- viewSetting:'界面设置',
- imagesManagement:'图片管理',
- musicManagement:'音乐管理',
- operatingInstructions:'操作说明'
- },
- viewTitle:{
- personManagement:'人员管理',
- winnerManagement:'已中奖人员管理',
- prizeManagement:'奖项配置',
- globalSetting:'全局配置',
- operatingInstructions:'操作说明'
- },
- table:{
- // person configuration
- number:'编号',
- name:'姓名',
- prizeName:'名称',
- department:'部门',
- identity:'身份',
- isLucky:'是否中奖',
- operation:'操作',
- setLuckyNumber:'设置中奖人数',
- luckyPeopleNumber:'中奖人数',
+ button: {
+ enterLottery: '进入抽奖',
+ start: '开始',
+ selectLucky: '抽取幸运儿',
+ continue: '继续',
+ confirm: '确认',
+ cancel: '取消',
+ setting: '设置',
+ delete: '删除',
+ allDelete: '删除全部',
+ downloadTemplate: '下载模板',
+ importData: '导入数据',
+ resetData: '重置数据',
+ exportResult: '导出结果',
+ add: '添加',
+ resetDefault: '重置为默认',
+ resetAllData: '重置所有数据',
+ clearPattern: '清除图案',
+ DefaultPattern: '默认图案',
+ upload: '上传',
+ reset: '重置',
+ play: '播放',
+ setLayout: '重设布局',
+ close: '关闭',
+ noInfoAndImport: '暂无人员信息,前往导入',
+ useDefault: '使用默认数据',
+ },
+ sidebar: {
+ personConfiguration: '人员配置',
+ personList: '人员列表',
+ winnerList: '中奖人员',
+ prizeConfiguration: '奖品配置',
+ globalSetting: '全局配置',
+ viewSetting: '界面设置',
+ imagesManagement: '图片管理',
+ musicManagement: '音乐管理',
+ operatingInstructions: '操作说明',
+ },
+ viewTitle: {
+ personManagement: '人员管理',
+ winnerManagement: '已中奖人员管理',
+ prizeManagement: '奖项配置',
+ globalSetting: '全局配置',
+ operatingInstructions: '操作说明',
+ },
+ table: {
+ // person configuration
+ number: '编号',
+ name: '姓名',
+ prizeName: '名称',
+ department: '部门',
+ identity: '身份',
+ isLucky: '是否中奖',
+ operation: '操作',
+ setLuckyNumber: '设置中奖人数',
+ luckyPeopleNumber: '中奖人数',
- detail:'详细信息',
- noneData:'暂无数据',
- // prize configuration
- fullParticipation:'全员参加',
- numberParticipants:'抽奖人数',
- isDone:'已抽取',
- image:'图片',
- onceNumber:'单次抽取个数',
- time:'时间',
- // view setting
- title:'主标题',
- columnNumber:'列数',
- theme:'主题',
- language:'语言',
- cardColor:'卡片颜色',
- winnerColor:'中奖卡片颜色',
- textColor:'文字颜色',
- cardWidth:'卡片宽度',
- cardHeight:'卡片高度',
- textSize:'文字大小',
- highlightColor:'高亮颜色',
- patternSetting:'图案设置',
- alwaysDisplay:'常显奖项列表',
- selectPicture:'选择一张图片'
- },
- dialog:{
- titleTip:'提示!',
- titleTemporary:'增加临时抽奖',
- dialogPCWeb:'请使用PC进行访问以获得最佳显示效果',
- dialogDelAllPerson:'该操作会删除所有人员数据,是否继续?',
- dialogResetWinner:'该操作会清空人员中奖信息,是否继续?',
- dialogResetAllData:'该操作会重置所有数据,是否继续?',
- dialogSingleDrawLimit:'单次抽取只能抽取10位',
- dialogLatestBrowser:'请使用最新版Chrome或者Edge浏览器',
- tipResetPrize:'进行操作可能会重置数据,请谨慎操作',
- },
- tooltip:{
- settingConfiguration:'设置/配置',
- nextSong:'右键点击下一首',
- noSongPlay:'没有音乐可以播放',
- prizeList:'奖项列表',
- addActivity:'添加抽奖',
- downloadTemplateTip:'下载文件后,请在excel中填写数据,并保存为xlsx格式',
- uploadExcelTip:'上传修改好的excel文件',
- leftClick:'左键切割',
- toHome:'主页',
- resetLayout:'该项比较耗费时间和性能',
- defaultLayout:'默认图案设置针对17列时有效,其他列数请自行设置',
- doneCount:'已抽取',
- edit:'编辑',
- delete:'删除'
- },
- error:{
- require:'必填项',
- requireNumber:'请输入数字',
- minNumber1:'最小为1',
- maxNumber100:'最大为100',
- uploadSuccess:'上传成功',
- uploadFail:'上传失败',
- notImage:'不是图片',
- personIsAllDone:'抽奖抽完了',
- personNotEnough:'抽奖人数不足',
- startDraw:'现在抽取{count}{leftover}人',
- completeInformation:'请填写完整信息'
- },
- placeHolder:{
- enterTitle:'输入标题',
- name:'名称',
- winnerCount:'中奖人数',
- },
- data:{
- yes:'是',
- no:'否',
- number:'编号',
- isWin:'是否中奖',
- department:'部门',
- name:'姓名',
- identity:'身份',
- prizeName:'获奖',
- prizeTime:'获奖时间',
- operation:'操作',
- delete:'删除',
- removePerson:'移入未中奖名单',
- defaultTitle:'大明内阁六部御前奏对',
- xlsxName:'人口登记表-zhCn.xlsx',
- readmeName:'readme-zhCn.md'
- },
- footer:{
- 'self-reflection':'行有不得,反求诸己',
- 'thiefEasy':'破山中贼易,破心中贼难'
- }
+ detail: '详细信息',
+ noneData: '暂无数据',
+ // prize configuration
+ fullParticipation: '全员参加',
+ numberParticipants: '抽奖人数',
+ isDone: '已抽取',
+ image: '图片',
+ onceNumber: '单次抽取个数',
+ time: '时间',
+ // view setting
+ title: '主标题',
+ columnNumber: '列数',
+ theme: '主题',
+ language: '语言',
+ cardColor: '卡片颜色',
+ winnerColor: '中奖卡片颜色',
+ textColor: '文字颜色',
+ cardWidth: '卡片宽度',
+ cardHeight: '卡片高度',
+ textSize: '文字大小',
+ highlightColor: '高亮颜色',
+ patternSetting: '图案设置',
+ alwaysDisplay: '常显奖项列表',
+ selectPicture: '选择一张图片',
+ },
+ dialog: {
+ titleTip: '提示!',
+ titleTemporary: '增加临时抽奖',
+ dialogPCWeb: '请使用PC进行访问以获得最佳显示效果',
+ dialogDelAllPerson: '该操作会删除所有人员数据,是否继续?',
+ dialogResetWinner: '该操作会清空人员中奖信息,是否继续?',
+ dialogResetAllData: '该操作会重置所有数据,是否继续?',
+ dialogSingleDrawLimit: '单次抽取只能抽取10位',
+ dialogLatestBrowser: '请使用最新版Chrome或者Edge浏览器',
+ tipResetPrize: '进行操作可能会重置数据,请谨慎操作',
+ },
+ tooltip: {
+ settingConfiguration: '设置/配置',
+ nextSong: '右键点击下一首',
+ noSongPlay: '没有音乐可以播放',
+ prizeList: '奖项列表',
+ addActivity: '添加抽奖',
+ downloadTemplateTip: '下载文件后,请在excel中填写数据,并保存为xlsx格式',
+ uploadExcelTip: '上传修改好的excel文件',
+ leftClick: '左键切割',
+ toHome: '主页',
+ resetLayout: '该项比较耗费时间和性能',
+ defaultLayout: '默认图案设置针对17列时有效,其他列数请自行设置',
+ doneCount: '已抽取',
+ edit: '编辑',
+ delete: '删除',
+ },
+ error: {
+ require: '必填项',
+ requireNumber: '请输入数字',
+ minNumber1: '最小为1',
+ maxNumber100: '最大为100',
+ uploadSuccess: '上传成功',
+ uploadFail: '上传失败',
+ notImage: '不是图片',
+ personIsAllDone: '抽奖抽完了',
+ personNotEnough: '抽奖人数不足',
+ startDraw: '现在抽取{count}{leftover}人',
+ completeInformation: '请填写完整信息',
+ },
+ placeHolder: {
+ enterTitle: '输入标题',
+ name: '名称',
+ winnerCount: '中奖人数',
+ },
+ data: {
+ yes: '是',
+ no: '否',
+ number: '编号',
+ isWin: '是否中奖',
+ department: '部门',
+ name: '姓名',
+ identity: '身份',
+ prizeName: '获奖',
+ prizeTime: '获奖时间',
+ operation: '操作',
+ delete: '删除',
+ removePerson: '移入未中奖名单',
+ defaultTitle: '大明内阁六部御前奏对',
+ xlsxName: '人口登记表-zhCn.xlsx',
+ readmeName: 'readme-zhCn.md',
+ },
+ footer: {
+ 'self-reflection': '行有不得,反求诸己',
+ 'thiefEasy': '破山中贼易,破心中贼难',
+ },
}
diff --git a/src/main.ts b/src/main.ts
index 5550e90..b90b4ea 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,25 +1,25 @@
-import { createApp } from 'vue';
-import './style.css';
+import svgIcon from '@/components/SvgIcon/index.vue'
+import i18n from '@/locales/i18n'
+import * as THREE from 'three'
+import { createApp } from 'vue'
+import VueDOMPurifyHTML from 'vue-dompurify-html'
+import App from './App.vue'
+import './style.css'
import './style/markdown.css'
import './style/style.scss'
-import * as THREE from 'three';
-import App from './App.vue';
-import VueDOMPurifyHTML from 'vue-dompurify-html'
-import i18n from '@/locales/i18n'
-
-const app = createApp(App);
// 全局svg组件
-import 'virtual:svg-icons-register';
-import svgIcon from '@/components/SvgIcon/index.vue';
+import 'virtual:svg-icons-register'
// svg全局组件// 路由
-import router from '@/router';
+import router from '@/router'
// pinia
-import { createPinia } from 'pinia';
+import { createPinia } from 'pinia'
// pinia持久化
-import piniaPluginPersist from 'pinia-plugin-persist';
-const pinia = createPinia();
-pinia.use(piniaPluginPersist);
+import piniaPluginPersist from 'pinia-plugin-persist'
-app.config.globalProperties.$THREE = THREE; //挂载到原型
-app.component('svg-icon', svgIcon);
-app.use(router).use(VueDOMPurifyHTML).use(pinia).use(i18n).mount('#app');
+const app = createApp(App)
+const pinia = createPinia()
+pinia.use(piniaPluginPersist)
+
+app.config.globalProperties.$THREE = THREE // 挂载到原型
+app.component('svg-icon', svgIcon)
+app.use(router).use(VueDOMPurifyHTML).use(pinia).use(i18n).mount('#app')
diff --git a/src/router/index.ts b/src/router/index.ts
index 8f742d8..7df6e6b 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,116 +1,117 @@
-import { createRouter, createWebHistory } from 'vue-router';
-import Layout from '@/layout/index.vue';
-import Home from '@/views/Home/index.vue';
+import Layout from '@/layout/index.vue'
import i18n from '@/locales/i18n'
-export const configRoutes={
- path: '/log-lottery/config',
- name: 'Config',
- component: () => import('@/views/Config/index.vue'),
- children: [
+import Home from '@/views/Home/index.vue'
+import { createRouter, createWebHistory } from 'vue-router'
+
+export const configRoutes = {
+ path: '/log-lottery/config',
+ name: 'Config',
+ component: () => import('@/views/Config/index.vue'),
+ children: [
+ {
+ path: '',
+ redirect: '/log-lottery/config/person',
+ },
+ {
+ path: '/log-lottery/config/person',
+ name: 'PersonConfig',
+ component: () => import('@/views/Config/Person/PersonConfig.vue'),
+ meta: {
+ title: i18n.global.t('sidebar.personConfiguration'),
+ icon: 'person',
+ },
+ children: [
{
- path: '',
- redirect: '/log-lottery/config/person',
- },
- {
- path: '/log-lottery/config/person',
- name: 'PersonConfig',
- component: () => import('@/views/Config/Person/PersonConfig.vue'),
- meta: {
- title: i18n.global.t('sidebar.personConfiguration'),
- icon: 'person',
+ path: '',
+ redirect: '/log-lottery/config/person/all',
},
- children:[
- {
- path:'',
- redirect: '/log-lottery/config/person/all',
- },
- {
- path:'/log-lottery/config/person/all',
- name:'AllPersonConfig',
- component:()=>import('@/views/Config/Person/PersonAll.vue'),
- meta:{
- title:i18n.global.t('sidebar.personList'),
- icon:'all'
- }
- },
- {
- path:'/log-lottery/config/person/already',
- name:'AlreadyPerson',
- component:()=>import('@/views/Config/Person/PersonAlready.vue'),
- meta:{
- title:i18n.global.t('sidebar.winnerList'),
- icon:'already'
- }
- },
- // {
- // path:'other',
- // name:'OtherPersonConfig',
- // component:()=>import('@/views/Config/Person/OtherPersonConfig.vue'),
- // meta:{
- // title:'其他配置',
- // icon:'other'
- // }
- // }
- ]
- },
- {
- path: '/log-lottery/config/prize',
- name: 'PrizeConfig',
- component: () => import('@/views/Config/Prize/PrizeConfig.vue'),
- meta:{
- title: i18n.global.t('sidebar.prizeConfiguration'),
- icon: 'prize'
- }
- },
- {
- path:'/log-lottery/config/global',
- name:'GlobalConfig',
- redirect: '/log-lottery/config/global/all',
- meta:{
- title:i18n.global.t('sidebar.globalSetting'),
- icon:'global'
+ {
+ path: '/log-lottery/config/person/all',
+ name: 'AllPersonConfig',
+ component: () => import('@/views/Config/Person/PersonAll.vue'),
+ meta: {
+ title: i18n.global.t('sidebar.personList'),
+ icon: 'all',
+ },
},
- children:[
- {
- path:'/log-lottery/config/global/face',
- name:'FaceConfig',
- component:()=>import('@/views/Config/Global/FaceConfig.vue'),
- meta:{
- title:i18n.global.t('sidebar.viewSetting'),
- icon:'face'
- }
- },
- {
- path:'/log-lottery/config/global/image',
- name:'ImageConfig',
- component:()=>import('@/views/Config/Global/ImageConfig.vue'),
- meta:{
- title:i18n.global.t('sidebar.imagesManagement'),
- icon:'image'
- }
- },
- {
- path:'/log-lottery/config/global/music',
- name:'MusicConfig',
- component:()=>import('@/views/Config/Global/MusicConfig.vue'),
- meta:{
- title:i18n.global.t('sidebar.musicManagement'),
- icon:'music'
- }
- }
- ]
+ {
+ path: '/log-lottery/config/person/already',
+ name: 'AlreadyPerson',
+ component: () => import('@/views/Config/Person/PersonAlready.vue'),
+ meta: {
+ title: i18n.global.t('sidebar.winnerList'),
+ icon: 'already',
+ },
+ },
+ // {
+ // path:'other',
+ // name:'OtherPersonConfig',
+ // component:()=>import('@/views/Config/Person/OtherPersonConfig.vue'),
+ // meta:{
+ // title:'其他配置',
+ // icon:'other'
+ // }
+ // }
+ ],
+ },
+ {
+ path: '/log-lottery/config/prize',
+ name: 'PrizeConfig',
+ component: () => import('@/views/Config/Prize/PrizeConfig.vue'),
+ meta: {
+ title: i18n.global.t('sidebar.prizeConfiguration'),
+ icon: 'prize',
},
- {
- path: '/log-lottery/config/readme',
- name: 'Readme',
- component: () => import('@/views/Config/Readme/index.vue'),
- meta:{
- title: i18n.global.t('sidebar.operatingInstructions') ,
- icon: 'readme'
- }
+ },
+ {
+ path: '/log-lottery/config/global',
+ name: 'GlobalConfig',
+ redirect: '/log-lottery/config/global/all',
+ meta: {
+ title: i18n.global.t('sidebar.globalSetting'),
+ icon: 'global',
},
- ]
- }
+ children: [
+ {
+ path: '/log-lottery/config/global/face',
+ name: 'FaceConfig',
+ component: () => import('@/views/Config/Global/FaceConfig.vue'),
+ meta: {
+ title: i18n.global.t('sidebar.viewSetting'),
+ icon: 'face',
+ },
+ },
+ {
+ path: '/log-lottery/config/global/image',
+ name: 'ImageConfig',
+ component: () => import('@/views/Config/Global/ImageConfig.vue'),
+ meta: {
+ title: i18n.global.t('sidebar.imagesManagement'),
+ icon: 'image',
+ },
+ },
+ {
+ path: '/log-lottery/config/global/music',
+ name: 'MusicConfig',
+ component: () => import('@/views/Config/Global/MusicConfig.vue'),
+ meta: {
+ title: i18n.global.t('sidebar.musicManagement'),
+ icon: 'music',
+ },
+ },
+ ],
+ },
+ {
+ path: '/log-lottery/config/readme',
+ name: 'Readme',
+ component: () => import('@/views/Config/Readme/index.vue'),
+ meta: {
+ title: i18n.global.t('sidebar.operatingInstructions'),
+ icon: 'readme',
+ },
+ },
+ ],
+}
const routes = [
{
path: '/log-lottery',
@@ -123,18 +124,18 @@ const routes = [
component: Home,
},
{
- path:'/log-lottery/demo',
- name:'Demo',
- component:()=>import('@/views/Demo/index.vue')
+ path: '/log-lottery/demo',
+ name: 'Demo',
+ component: () => import('@/views/Demo/index.vue'),
},
configRoutes,
],
},
-];
+]
const router = createRouter({
history: createWebHistory(),
routes,
-});
+})
-export default router;
+export default router
diff --git a/src/store/data.ts b/src/store/data.ts
index 1e0310c..0ef5de1 100644
--- a/src/store/data.ts
+++ b/src/store/data.ts
@@ -1,241 +1,278 @@
-import { IPrizeConfig, IPersonConfig } from '@/types/storeType';
+import type { IPersonConfig, IPrizeConfig } from '@/types/storeType'
+
export const defaultPersonList =
[
- { uid: 'U100156001', name: '朱厚熜', department: '皇室', identity: '万岁爷', x: 1, y: 1, id: 0, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156002', name: '朱载垕', department: '皇室', identity: '裕王', x: 2, y: 1, id: 1, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156003', name: '朱翊钧 ', department: '皇室', identity: '裕王世子', x: 3, y: 1, id: 2, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156004', name: '严嵩', department: '内阁', identity: '首辅', x: 4, y: 1, id: 3, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156005', name: '徐阶', department: '内阁', identity: '次辅、户部尚书', x: 5, y: 1, id: 4, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156006', name: '张居正', department: '内阁', identity: '阁臣、兵部侍郞', x: 6, y: 1, id: 5, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156007', name: '高拱', department: '内阁', identity: '阁臣、户部侍郞', x: 7, y: 1, id: 6, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156008', name: '严世蕃', department: '内阁', identity: '吏部侍郞', x: 8, y: 1, id: 7, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156009', name: '胡宗宪', department: '大臣', identity: '浙直总督', x: 9, y: 1, id: 8, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156010', name: '戚继光', department: '大臣', identity: '都督佥事', x: 10, y: 1, id: 9, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156011', name: '高瀚文', department: '大臣', identity: '杭州知府', x: 11, y: 1, id: 10, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156012', name: '赵贞吉', department: '大臣', identity: '江苏巡抚', x: 12, y: 1, id: 11, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156013', name: '海瑞', department: '大臣', identity: '淳安知县', x: 13, y: 1, id: 12, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156014', name: '何茂才', department: '大臣', identity: '浙江布政使兼按察使', x: 14, y: 1, id: 13, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156015', name: '郑泌昌', department: '大臣', identity: '浙江巡抚', x: 15, y: 1, id: 14, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156016', name: '王用汲', department: '大臣', identity: '建德知县', x: 16, y: 1, id: 15, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156017', name: '谭纶', department: '大臣', identity: '浙直总督府参军', x: 17, y: 1, id: 16, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156018', name: '朱七', department: '大臣', identity: '北镇抚司', x: 1, y: 2, id: 17, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156019', name: '罗龙文', department: '大臣', identity: '通政使司通政使', x: 2, y: 2, id: 18, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156020', name: '马宁远', department: '大臣', identity: '杭州知府', x: 3, y: 2, id: 19, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156021', name: '田有禄 ', department: '大臣', identity: '淳安县丞', x: 4, y: 2, id: 20, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156022', name: '周云逸', department: '大臣', identity: '钦天监监正', x: 5, y: 2, id: 21, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156023', name: '蒋千户', department: '大臣', identity: '浙江按察使司', x: 6, y: 2, id: 22, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156024', name: '徐千户', department: '大臣', identity: '浙江按察使司', x: 7, y: 2, id: 23, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156025', name: '王牢头 ', department: '大臣', identity: '牢头', x: 8, y: 2, id: 24, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156026', name: '赵班头', department: '大臣', identity: '班头', x: 9, y: 2, id: 25, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156027', name: '吕芳', department: '太监', identity: '掌印太监', x: 10, y: 2, id: 26, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156028', name: '杨金水', department: '太监', identity: '织造局', x: 11, y: 2, id: 27, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156029', name: '陈洪', department: '太监', identity: '首席秉笔太监', x: 12, y: 2, id: 28, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156030', name: '黄锦', department: '太监', identity: '秉笔太监', x: 13, y: 2, id: 29, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156031', name: '李玄', department: '太监', identity: '新安江河道监管', x: 14, y: 2, id: 30, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156032', name: '冯保', department: '太监', identity: '世子大伴', x: 15, y: 2, id: 31, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156033', name: '李时珍', department: '江湖', identity: '名医', x: 16, y: 2, id: 32, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156034', name: '沈一石 ', department: '江湖', identity: '商人', x: 17, y: 2, id: 33, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156035', name: '井上十四郎', department: '江湖', identity: '倭寇', x: 1, y: 3, id: 34, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }, { uid: 'U100156036', name: '芸娘', department: '江湖', x: 2, y: 3, id: 35, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] }]
+ { uid: 'U100156001', name: '朱厚熜', department: '皇室', identity: '万岁爷', x: 1, y: 1, id: 0, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156002', name: '朱载垕', department: '皇室', identity: '裕王', x: 2, y: 1, id: 1, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156003', name: '朱翊钧 ', department: '皇室', identity: '裕王世子', x: 3, y: 1, id: 2, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156004', name: '严嵩', department: '内阁', identity: '首辅', x: 4, y: 1, id: 3, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156005', name: '徐阶', department: '内阁', identity: '次辅、户部尚书', x: 5, y: 1, id: 4, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156006', name: '张居正', department: '内阁', identity: '阁臣、兵部侍郞', x: 6, y: 1, id: 5, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156007', name: '高拱', department: '内阁', identity: '阁臣、户部侍郞', x: 7, y: 1, id: 6, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156008', name: '严世蕃', department: '内阁', identity: '吏部侍郞', x: 8, y: 1, id: 7, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156009', name: '胡宗宪', department: '大臣', identity: '浙直总督', x: 9, y: 1, id: 8, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156010', name: '戚继光', department: '大臣', identity: '都督佥事', x: 10, y: 1, id: 9, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156011', name: '高瀚文', department: '大臣', identity: '杭州知府', x: 11, y: 1, id: 10, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156012', name: '赵贞吉', department: '大臣', identity: '江苏巡抚', x: 12, y: 1, id: 11, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156013', name: '海瑞', department: '大臣', identity: '淳安知县', x: 13, y: 1, id: 12, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156014', name: '何茂才', department: '大臣', identity: '浙江布政使兼按察使', x: 14, y: 1, id: 13, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156015', name: '郑泌昌', department: '大臣', identity: '浙江巡抚', x: 15, y: 1, id: 14, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156016', name: '王用汲', department: '大臣', identity: '建德知县', x: 16, y: 1, id: 15, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156017', name: '谭纶', department: '大臣', identity: '浙直总督府参军', x: 17, y: 1, id: 16, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156018', name: '朱七', department: '大臣', identity: '北镇抚司', x: 1, y: 2, id: 17, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156019', name: '罗龙文', department: '大臣', identity: '通政使司通政使', x: 2, y: 2, id: 18, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156020', name: '马宁远', department: '大臣', identity: '杭州知府', x: 3, y: 2, id: 19, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156021', name: '田有禄 ', department: '大臣', identity: '淳安县丞', x: 4, y: 2, id: 20, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156022', name: '周云逸', department: '大臣', identity: '钦天监监正', x: 5, y: 2, id: 21, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156023', name: '蒋千户', department: '大臣', identity: '浙江按察使司', x: 6, y: 2, id: 22, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156024', name: '徐千户', department: '大臣', identity: '浙江按察使司', x: 7, y: 2, id: 23, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156025', name: '王牢头 ', department: '大臣', identity: '牢头', x: 8, y: 2, id: 24, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156026', name: '赵班头', department: '大臣', identity: '班头', x: 9, y: 2, id: 25, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156027', name: '吕芳', department: '太监', identity: '掌印太监', x: 10, y: 2, id: 26, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156028', name: '杨金水', department: '太监', identity: '织造局', x: 11, y: 2, id: 27, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156029', name: '陈洪', department: '太监', identity: '首席秉笔太监', x: 12, y: 2, id: 28, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156030', name: '黄锦', department: '太监', identity: '秉笔太监', x: 13, y: 2, id: 29, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156031', name: '李玄', department: '太监', identity: '新安江河道监管', x: 14, y: 2, id: 30, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156032', name: '冯保', department: '太监', identity: '世子大伴', x: 15, y: 2, id: 31, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156033', name: '李时珍', department: '江湖', identity: '名医', x: 16, y: 2, id: 32, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156034', name: '沈一石 ', department: '江湖', identity: '商人', x: 17, y: 2, id: 33, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156035', name: '井上十四郎', department: '江湖', identity: '倭寇', x: 1, y: 3, id: 34, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ { uid: 'U100156036', name: '芸娘', department: '江湖', x: 2, y: 3, id: 35, isWin: false, createTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', updateTime: 'Tue Jan 09 2024 23:20:07 GMT+0800 (China Standard Time)', prizeName: [], prizeTime: [], prizeId: [] },
+ ]
export const defaultMusicList = [
- {
- id: 'Geoff Knorr - China (The Industrial Era).ogg' + new Date().getTime().toString(),
- name: 'Geoff Knorr - China (The Industrial Era).ogg',
- url: 'https://1kw20.fun/resource/audio/Geoff Knorr - China (The Industrial Era).ogg'
- },
- {
- id: 'Geoff Knorr&Phill Boucher - China (The Atomic Era).ogg' + new Date().getTime().toString(),
- name: 'Geoff Knorr&Phill Boucher - China (The Atomic Era).ogg',
- url: 'https://1kw20.fun/resource/audio/Geoff Knorr&Phill Boucher - China (The Atomic Era).ogg'
- },
- {
- id: 'Radetzky March.mp3' + new Date().getTime().toString(),
- name: 'Radetzky March.mp3',
- url: 'https://1kw20.fun/resource/audio/Radetzky March.mp3'
- },
- {
- id: 'Shanghai.mp3' + new Date().getTime().toString(),
- name: 'Shanghai.mp3',
- url: 'https://1kw20.fun/resource/audio/Shanghai.mp3'
- },
- {
- id: 'Waltz No.2.mp3' + new Date().getTime().toString(),
- name: 'Waltz No.2.mp3',
- url: 'https://1kw20.fun/resource/audio/Waltz No.2.mp3'
- },
- {
- id: 'WildChinaTheme.mp3' + new Date().getTime().toString(),
- name: 'WildChinaTheme.mp3',
- url: 'https://1kw20.fun/resource/audio/WildChinaTheme.mp3'
- },
- {
- id: '边程&房东的猫 - 美好事物-再遇少年.ogg' + new Date().getTime().toString(),
- name: '边程&房东的猫 - 美好事物-再遇少年.ogg',
- url: 'https://1kw20.fun/resource/audio/边程&房东的猫 - 美好事物-再遇少年.ogg'
- },
- {
- id: '大乔小乔 - 相见难别亦难.ogg' + new Date().getTime().toString(),
- name: '大乔小乔 - 相见难别亦难.ogg',
- url: 'https://1kw20.fun/resource/audio/大乔小乔 - 相见难别亦难.ogg'
- },
- {
- id: '你要跳舞吗-新裤子.mp3' + new Date().getTime().toString(),
- name: '你要跳舞吗-新裤子.mp3',
- url: 'https://1kw20.fun/resource/audio/你要跳舞吗-新裤子.mp3'
- },
- {
- id: '生命-声音玩具.mp3' + new Date().getTime().toString(),
- name: '生命-声音玩具.mp3',
- url: 'https://1kw20.fun/resource/audio/生命-声音玩具.mp3'
- },
- {
- id: '与非门 - Happy New Year.ogg' + new Date().getTime().toString(),
- name: '与非门 - Happy New Year.ogg',
- url: 'https://1kw20.fun/resource/audio/与非门 - Happy New Year.ogg'
- },
+ {
+ id: `Geoff Knorr - China (The Industrial Era).ogg${new Date().getTime().toString()}`,
+ name: 'Geoff Knorr - China (The Industrial Era).ogg',
+ url: 'https://1kw20.fun/resource/audio/Geoff Knorr - China (The Industrial Era).ogg',
+ },
+ {
+ id: `Geoff Knorr&Phill Boucher - China (The Atomic Era).ogg${new Date().getTime().toString()}`,
+ name: 'Geoff Knorr&Phill Boucher - China (The Atomic Era).ogg',
+ url: 'https://1kw20.fun/resource/audio/Geoff Knorr&Phill Boucher - China (The Atomic Era).ogg',
+ },
+ {
+ id: `Radetzky March.mp3${new Date().getTime().toString()}`,
+ name: 'Radetzky March.mp3',
+ url: 'https://1kw20.fun/resource/audio/Radetzky March.mp3',
+ },
+ {
+ id: `Shanghai.mp3${new Date().getTime().toString()}`,
+ name: 'Shanghai.mp3',
+ url: 'https://1kw20.fun/resource/audio/Shanghai.mp3',
+ },
+ {
+ id: `Waltz No.2.mp3${new Date().getTime().toString()}`,
+ name: 'Waltz No.2.mp3',
+ url: 'https://1kw20.fun/resource/audio/Waltz No.2.mp3',
+ },
+ {
+ id: `WildChinaTheme.mp3${new Date().getTime().toString()}`,
+ name: 'WildChinaTheme.mp3',
+ url: 'https://1kw20.fun/resource/audio/WildChinaTheme.mp3',
+ },
+ {
+ id: `边程&房东的猫 - 美好事物-再遇少年.ogg${new Date().getTime().toString()}`,
+ name: '边程&房东的猫 - 美好事物-再遇少年.ogg',
+ url: 'https://1kw20.fun/resource/audio/边程&房东的猫 - 美好事物-再遇少年.ogg',
+ },
+ {
+ id: `大乔小乔 - 相见难别亦难.ogg${new Date().getTime().toString()}`,
+ name: '大乔小乔 - 相见难别亦难.ogg',
+ url: 'https://1kw20.fun/resource/audio/大乔小乔 - 相见难别亦难.ogg',
+ },
+ {
+ id: `你要跳舞吗-新裤子.mp3${new Date().getTime().toString()}`,
+ name: '你要跳舞吗-新裤子.mp3',
+ url: 'https://1kw20.fun/resource/audio/你要跳舞吗-新裤子.mp3',
+ },
+ {
+ id: `生命-声音玩具.mp3${new Date().getTime().toString()}`,
+ name: '生命-声音玩具.mp3',
+ url: 'https://1kw20.fun/resource/audio/生命-声音玩具.mp3',
+ },
+ {
+ id: `与非门 - Happy New Year.ogg${new Date().getTime().toString()}`,
+ name: '与非门 - Happy New Year.ogg',
+ url: 'https://1kw20.fun/resource/audio/与非门 - Happy New Year.ogg',
+ },
]
export const defaultPrizeList = [
- {
- id: '001',
- name: '三等奖',
- sort: 1,
- isAll: false,
- count: 3,
- isUsedCount: 0,
- picture: {
- id: '2',
- name: '三等奖',
- url: 'https://1kw20.fun/resource/image/image3.png'
- },
- separateCount: {
- enable: true,
- countList: []
- },
- desc: '三等奖',
- isShow: true,
- isUsed: false,
- frequency: 1,
- },
- {
- id: '002',
- name: '二等奖',
- sort: 2,
- isAll: false,
- count: 2,
- isUsedCount: 0,
- picture: {
- id: '1',
- name: '二等奖',
- url: 'https://1kw20.fun/resource/image/image2.png'
- },
- separateCount: {
- enable: false,
- countList: []
- },
- desc: '二等奖',
- isShow: true,
- isUsed: false,
- frequency: 1,
- },
- {
- id: '003',
- name: '一等奖',
- sort: 3,
- isAll: false,
- count: 1,
- isUsedCount: 0,
- picture: {
- id: '0',
- name: '一等奖',
- url: 'https://1kw20.fun/resource/image/image1.png'
- },
- separateCount: {
- enable: false,
- countList: []
- },
- desc: '一等奖',
- isShow: true,
- isUsed: false,
- frequency: 1,
- },
- {
- id: '004',
- name: '超级大奖',
- sort: 4,
- isAll: false,
- count: 1,
- isUsedCount: 0,
- picture: {
- id: '3',
- name: '超级奖',
- url: 'https://1kw20.fun/resource/image/image4.png'
- },
- separateCount: {
- enable: false,
- countList: []
- },
- desc: '超级大奖',
- isShow: true,
- isUsed: false,
- frequency: 1,
- },
- {
- id: '005',
- name: '特别奖',
- sort: 5,
- isAll: false,
- count: 1,
- isUsedCount: 0,
- picture: {
- id: '4',
- name: '特别奖',
- url: 'https://1kw20.fun/resource/image/image5.png'
- },
- separateCount: {
- enable: false,
- countList: []
- },
- desc: '特别奖',
- isShow: true,
- isUsed: false,
- frequency: 1,
- }
-]
-export const defaultCurrentPrize = {
+ {
id: '001',
name: '三等奖',
sort: 1,
isAll: false,
- count: 12,
+ count: 3,
isUsedCount: 0,
picture: {
- id: '2',
- name: '三等奖',
- url: 'https://1kw20.fun/resource/image/image3.png'
+ id: '2',
+ name: '三等奖',
+ url: 'https://1kw20.fun/resource/image/image3.png',
},
separateCount: {
- enable: true,
- countList: []
+ enable: true,
+ countList: [],
},
desc: '三等奖',
isShow: true,
isUsed: false,
frequency: 1,
-}
-export const defaultTemporaryPrize = {
- id: '',
- name: '',
- sort: 0,
+ },
+ {
+ id: '002',
+ name: '二等奖',
+ sort: 2,
+ isAll: false,
+ count: 2,
+ isUsedCount: 0,
+ picture: {
+ id: '1',
+ name: '二等奖',
+ url: 'https://1kw20.fun/resource/image/image2.png',
+ },
+ separateCount: {
+ enable: false,
+ countList: [],
+ },
+ desc: '二等奖',
+ isShow: true,
+ isUsed: false,
+ frequency: 1,
+ },
+ {
+ id: '003',
+ name: '一等奖',
+ sort: 3,
isAll: false,
count: 1,
isUsedCount: 0,
picture: {
- id: '-1',
- name: '',
- url: ''
+ id: '0',
+ name: '一等奖',
+ url: 'https://1kw20.fun/resource/image/image1.png',
},
separateCount: {
- enable: true,
- countList: []
+ enable: false,
+ countList: [],
},
- desc: '',
- isShow: false,
+ desc: '一等奖',
+ isShow: true,
isUsed: false,
frequency: 1,
+ },
+ {
+ id: '004',
+ name: '超级大奖',
+ sort: 4,
+ isAll: false,
+ count: 1,
+ isUsedCount: 0,
+ picture: {
+ id: '3',
+ name: '超级奖',
+ url: 'https://1kw20.fun/resource/image/image4.png',
+ },
+ separateCount: {
+ enable: false,
+ countList: [],
+ },
+ desc: '超级大奖',
+ isShow: true,
+ isUsed: false,
+ frequency: 1,
+ },
+ {
+ id: '005',
+ name: '特别奖',
+ sort: 5,
+ isAll: false,
+ count: 1,
+ isUsedCount: 0,
+ picture: {
+ id: '4',
+ name: '特别奖',
+ url: 'https://1kw20.fun/resource/image/image5.png',
+ },
+ separateCount: {
+ enable: false,
+ countList: [],
+ },
+ desc: '特别奖',
+ isShow: true,
+ isUsed: false,
+ frequency: 1,
+ },
+]
+export const defaultCurrentPrize = {
+ id: '001',
+ name: '三等奖',
+ sort: 1,
+ isAll: false,
+ count: 12,
+ isUsedCount: 0,
+ picture: {
+ id: '2',
+ name: '三等奖',
+ url: 'https://1kw20.fun/resource/image/image3.png',
+ },
+ separateCount: {
+ enable: true,
+ countList: [],
+ },
+ desc: '三等奖',
+ isShow: true,
+ isUsed: false,
+ frequency: 1,
+}
+export const defaultTemporaryPrize = {
+ id: '',
+ name: '',
+ sort: 0,
+ isAll: false,
+ count: 1,
+ isUsedCount: 0,
+ picture: {
+ id: '-1',
+ name: '',
+ url: '',
+ },
+ separateCount: {
+ enable: true,
+ countList: [],
+ },
+ desc: '',
+ isShow: false,
+ isUsed: false,
+ frequency: 1,
}
export const defaultImageList = [
- {
- id: '0',
- name: '一等奖',
- url: 'https://1kw20.fun/resource/image/image1.png'
- },
- {
- id: '1',
- name: '二等奖',
- url: 'https://1kw20.fun/resource/image/image2.png'
- },
- {
- id: '2',
- name: '三等奖',
- url: 'https://1kw20.fun/resource/image/image3.png'
- },
- {
- id: '3',
- name: '超级奖',
- url: 'https://1kw20.fun/resource/image/image4.png'
- },
- {
- id: '4',
- name: '特别奖',
- url: 'https://1kw20.fun/resource/image/image5.png'
- }
+ {
+ id: '0',
+ name: '一等奖',
+ url: 'https://1kw20.fun/resource/image/image1.png',
+ },
+ {
+ id: '1',
+ name: '二等奖',
+ url: 'https://1kw20.fun/resource/image/image2.png',
+ },
+ {
+ id: '2',
+ name: '三等奖',
+ url: 'https://1kw20.fun/resource/image/image3.png',
+ },
+ {
+ id: '3',
+ name: '超级奖',
+ url: 'https://1kw20.fun/resource/image/image4.png',
+ },
+ {
+ id: '4',
+ name: '特别奖',
+ url: 'https://1kw20.fun/resource/image/image5.png',
+ },
]
export const defaultPatternList = [21, 38, 55, 54, 53, 70, 87, 88, 89, 23, 40, 57, 74, 91, 92, 93, 76, 59, 42, 25, 24, 27, 28, 29, 46, 63, 62, 61, 78, 95, 96, 97, 20, 19, 31, 48, 65, 66, 67, 84, 101, 100, 99, 32, 33]
diff --git a/src/store/globalConfig.ts b/src/store/globalConfig.ts
index b6bcfe2..aecddcf 100644
--- a/src/store/globalConfig.ts
+++ b/src/store/globalConfig.ts
@@ -1,260 +1,260 @@
-import { defineStore } from 'pinia';
-import { defaultMusicList, defaultImageList, defaultPatternList } from './data'
-import { IMusic, IImage } from '@/types/storeType';
-import i18n,{browserLanguage} from '@/locales/i18n'
+import type { IImage, IMusic } from '@/types/storeType'
+import i18n, { browserLanguage } from '@/locales/i18n'
+import { defineStore } from 'pinia'
+import { defaultImageList, defaultMusicList, defaultPatternList } from './data'
// import { IPrizeConfig } from '@/types/storeType';
export const useGlobalConfig = defineStore('global', {
- state() {
- return {
- globalConfig: {
- rowCount: 17,
- isSHowPrizeList: true,
- topTitle: i18n.global.t('data.defaultTitle'),
- language:browserLanguage,
- theme: {
- name: 'dracula',
- detail: { primary: '#0f5fd3' },
- cardColor: '#ff79c6',
- cardWidth: 140,
- cardHeight: 200,
- textColor: '#ffffff',
- luckyCardColor: '#ECB1AC',
- textSize: 30,
- patternColor: '#1b66c9',
- patternList: defaultPatternList as number[],
- },
- musicList: defaultMusicList as IMusic[],
- imageList: defaultImageList as IImage[],
- },
- currentMusic: {
- item: defaultMusicList[0],
- paused: true,
- },
- };
+ state() {
+ return {
+ globalConfig: {
+ rowCount: 17,
+ isSHowPrizeList: true,
+ topTitle: i18n.global.t('data.defaultTitle'),
+ language: browserLanguage,
+ theme: {
+ name: 'dracula',
+ detail: { primary: '#0f5fd3' },
+ cardColor: '#ff79c6',
+ cardWidth: 140,
+ cardHeight: 200,
+ textColor: '#ffffff',
+ luckyCardColor: '#ECB1AC',
+ textSize: 30,
+ patternColor: '#1b66c9',
+ patternList: defaultPatternList as number[],
+ },
+ musicList: defaultMusicList as IMusic[],
+ imageList: defaultImageList as IImage[],
+ },
+ currentMusic: {
+ item: defaultMusicList[0],
+ paused: true,
+ },
+ }
+ },
+ getters: {
+ // 获取全部配置
+ getGlobalConfig(state) {
+ return state.globalConfig
},
- getters: {
- // 获取全部配置
- getGlobalConfig(state) {
- return state.globalConfig;
- },
- // 获取标题
- getTopTitle(state) {
- return state.globalConfig.topTitle;
- },
- // 获取行数
- getRowCount(state) {
- return state.globalConfig.rowCount;
- },
- // 获取主题
- getTheme(state) {
- return state.globalConfig.theme;
- },
- // 获取卡片颜色
- getCardColor(state) {
- return state.globalConfig.theme.cardColor;
- },
- // 获取中奖颜色
- getLuckyColor(state) {
- return state.globalConfig.theme.luckyCardColor;
- },
- // 获取文字颜色
- getTextColor(state) {
- return state.globalConfig.theme.textColor;
- },
- // 获取卡片宽高
- getCardSize(state) {
- return {
- width: state.globalConfig.theme.cardWidth,
- height: state.globalConfig.theme.cardHeight
- }
- },
- // 获取文字大小
- getTextSize(state) {
- return state.globalConfig.theme.textSize;
- },
- // 获取图案颜色
- getPatterColor(state) {
- return state.globalConfig.theme.patternColor;
- },
- // 获取图案列表
- getPatternList(state) {
- return state.globalConfig.theme.patternList;
- },
- // 获取音乐列表
- getMusicList(state) {
- return state.globalConfig.musicList;
- },
- // 获取当前音乐
- getCurrentMusic(state) {
- return state.currentMusic;
- },
- // 获取图片列表
- getImageList(state) {
- return state.globalConfig.imageList;
- },
- // 获取是否显示奖品列表
- getIsShowPrizeList(state) {
- return state.globalConfig.isSHowPrizeList;
- },
- // 获取当前语言
- getLanguage(state) {
- return state.globalConfig.language;
+ // 获取标题
+ getTopTitle(state) {
+ return state.globalConfig.topTitle
+ },
+ // 获取行数
+ getRowCount(state) {
+ return state.globalConfig.rowCount
+ },
+ // 获取主题
+ getTheme(state) {
+ return state.globalConfig.theme
+ },
+ // 获取卡片颜色
+ getCardColor(state) {
+ return state.globalConfig.theme.cardColor
+ },
+ // 获取中奖颜色
+ getLuckyColor(state) {
+ return state.globalConfig.theme.luckyCardColor
+ },
+ // 获取文字颜色
+ getTextColor(state) {
+ return state.globalConfig.theme.textColor
+ },
+ // 获取卡片宽高
+ getCardSize(state) {
+ return {
+ width: state.globalConfig.theme.cardWidth,
+ height: state.globalConfig.theme.cardHeight,
+ }
+ },
+ // 获取文字大小
+ getTextSize(state) {
+ return state.globalConfig.theme.textSize
+ },
+ // 获取图案颜色
+ getPatterColor(state) {
+ return state.globalConfig.theme.patternColor
+ },
+ // 获取图案列表
+ getPatternList(state) {
+ return state.globalConfig.theme.patternList
+ },
+ // 获取音乐列表
+ getMusicList(state) {
+ return state.globalConfig.musicList
+ },
+ // 获取当前音乐
+ getCurrentMusic(state) {
+ return state.currentMusic
+ },
+ // 获取图片列表
+ getImageList(state) {
+ return state.globalConfig.imageList
+ },
+ // 获取是否显示奖品列表
+ getIsShowPrizeList(state) {
+ return state.globalConfig.isSHowPrizeList
+ },
+ // 获取当前语言
+ getLanguage(state) {
+ return state.globalConfig.language
+ },
+ },
+ actions: {
+ // 设置rowCount
+ setRowCount(rowCount: number) {
+ this.globalConfig.rowCount = rowCount
+ },
+ // 设置标题
+ setTopTitle(topTitle: string) {
+ this.globalConfig.topTitle = topTitle
+ },
+ // 设置主题
+ setTheme(theme: any) {
+ const { name, detail } = theme
+ this.globalConfig.theme.name = name
+ this.globalConfig.theme.detail = detail
+ },
+ // 设置卡片颜色
+ setCardColor(cardColor: string) {
+ this.globalConfig.theme.cardColor = cardColor
+ },
+ // 设置中奖颜色
+ setLuckyCardColor(luckyCardColor: string) {
+ this.globalConfig.theme.luckyCardColor = luckyCardColor
+ },
+ // 设置文字颜色
+ setTextColor(textColor: string) {
+ this.globalConfig.theme.textColor = textColor
+ },
+ // 设置卡片宽高
+ setCardSize(cardSize: { width: number, height: number }) {
+ this.globalConfig.theme.cardWidth = cardSize.width
+ this.globalConfig.theme.cardHeight = cardSize.height
+ },
+ // 设置文字大小
+ setTextSize(textSize: number) {
+ this.globalConfig.theme.textSize = textSize
+ },
+ // 设置图案颜色
+ setPatterColor(patterColor: string) {
+ this.globalConfig.theme.patternColor = patterColor
+ },
+ // 设置图案列表
+ setPatternList(patternList: number[]) {
+ this.globalConfig.theme.patternList = patternList
+ },
+ // 重置图案列表
+ resetPatternList() {
+ this.globalConfig.theme.patternList = defaultPatternList
+ },
+ // 添加音乐
+ addMusic(music: IMusic) {
+ // 验证音乐是否已存在,看name字段
+ for (let i = 0; i < this.globalConfig.musicList.length; i++) {
+ if (this.globalConfig.musicList[i].name === music.name) {
+ return
}
+ }
+ this.globalConfig.musicList.push(music)
},
- actions: {
- // 设置rowCount
- setRowCount(rowCount: number) {
- this.globalConfig.rowCount = rowCount;
- },
- // 设置标题
- setTopTitle(topTitle: string) {
- this.globalConfig.topTitle = topTitle;
- },
- // 设置主题
- setTheme(theme: any) {
- const { name, detail } = theme;
- this.globalConfig.theme.name = name;
- this.globalConfig.theme.detail = detail;
- },
- // 设置卡片颜色
- setCardColor(cardColor: string) {
- this.globalConfig.theme.cardColor = cardColor;
- },
- // 设置中奖颜色
- setLuckyCardColor(luckyCardColor: string) {
- this.globalConfig.theme.luckyCardColor = luckyCardColor;
- },
- // 设置文字颜色
- setTextColor(textColor: string) {
- this.globalConfig.theme.textColor = textColor;
- },
- // 设置卡片宽高
- setCardSize(cardSize: { width: number, height: number }) {
- this.globalConfig.theme.cardWidth = cardSize.width;
- this.globalConfig.theme.cardHeight = cardSize.height;
- },
- // 设置文字大小
- setTextSize(textSize: number) {
- this.globalConfig.theme.textSize = textSize;
- },
- // 设置图案颜色
- setPatterColor(patterColor: string) {
- this.globalConfig.theme.patternColor = patterColor;
- },
- // 设置图案列表
- setPatternList(patternList: number[]) {
- this.globalConfig.theme.patternList = patternList;
- },
- // 重置图案列表
- resetPatternList() {
- this.globalConfig.theme.patternList = defaultPatternList;
- },
- // 添加音乐
- addMusic(music: IMusic) {
- // 验证音乐是否已存在,看name字段
- for (let i = 0; i < this.globalConfig.musicList.length; i++) {
- if (this.globalConfig.musicList[i].name === music.name) {
- return;
- }
- }
- this.globalConfig.musicList.push(music);
- },
- // 删除音乐
- removeMusic(musicId: string) {
- for (let i = 0; i < this.globalConfig.musicList.length; i++) {
- if (this.globalConfig.musicList[i].id === musicId) {
- this.globalConfig.musicList.splice(i, 1);
- break;
- }
- }
- },
- // 设置当前播放音乐
- setCurrentMusic(musicItem: IMusic, paused: boolean = true) {
- this.currentMusic = {
- item: musicItem,
- paused: paused,
- }
- },
- // 重置音乐列表
- resetMusicList() {
- this.globalConfig.musicList = defaultMusicList as IMusic[];
- },
- // 清空音乐列表
- clearMusicList() {
- this.globalConfig.musicList = [] as IMusic[];
- },
- // 添加图片
- addImage(image: IImage) {
- for (let i = 0; i < this.globalConfig.imageList.length; i++) {
- if (this.globalConfig.imageList[i].name === image.name) {
- return;
- }
- }
- this.globalConfig.imageList.push(image);
- },
- // 删除图片
- removeImage(imageId: string) {
- for (let i = 0; i < this.globalConfig.imageList.length; i++) {
- if (this.globalConfig.imageList[i].id === imageId) {
- this.globalConfig.imageList.splice(i, 1);
- break;
- }
- }
- },
- // 重置图片列表
- resetImageList() {
- this.globalConfig.imageList = defaultImageList as IImage[];
- },
- // 清空图片列表
- clearImageList() {
- this.globalConfig.imageList = [] as IImage[]
- },
- // 设置是否显示奖品列表
- setIsShowPrizeList(isShowPrizeList: boolean) {
- this.globalConfig.isSHowPrizeList = isShowPrizeList;
- },
- // 设置
- setLanguage(language: string) {
- this.globalConfig.language = language;
- i18n.global.locale.value=language
- },
- // 重置所有配置
- reset() {
- this.globalConfig = {
- rowCount: 17,
- isSHowPrizeList: true,
- topTitle: i18n.global.t('data.defaultTitle'),
- language: browserLanguage,
- theme: {
- name: 'dracula',
- detail: { primary: '#0f5fd3' },
- cardColor: '#ff79c6',
- cardWidth: 140,
- cardHeight: 200,
- textColor: '#ffffff',
- luckyCardColor: '#ECB1AC',
- textSize: 30,
- patternColor: '#1b66c9',
- patternList: defaultPatternList as number[],
- },
- musicList: defaultMusicList as IMusic[],
- imageList: defaultImageList as IImage[],
- },
- this.currentMusic = {
- item: defaultMusicList[0],
- paused: true,
- }
+ // 删除音乐
+ removeMusic(musicId: string) {
+ for (let i = 0; i < this.globalConfig.musicList.length; i++) {
+ if (this.globalConfig.musicList[i].id === musicId) {
+ this.globalConfig.musicList.splice(i, 1)
+ break
}
+ }
},
- persist: {
- enabled: true,
- strategies: [
- {
- // 如果要存储在localStorage中
- storage: localStorage,
- key: 'globalConfig',
- paths: ['globalConfig'],
- },
- ],
+ // 设置当前播放音乐
+ setCurrentMusic(musicItem: IMusic, paused: boolean = true) {
+ this.currentMusic = {
+ item: musicItem,
+ paused,
+ }
},
+ // 重置音乐列表
+ resetMusicList() {
+ this.globalConfig.musicList = defaultMusicList as IMusic[]
+ },
+ // 清空音乐列表
+ clearMusicList() {
+ this.globalConfig.musicList = [] as IMusic[]
+ },
+ // 添加图片
+ addImage(image: IImage) {
+ for (let i = 0; i < this.globalConfig.imageList.length; i++) {
+ if (this.globalConfig.imageList[i].name === image.name) {
+ return
+ }
+ }
+ this.globalConfig.imageList.push(image)
+ },
+ // 删除图片
+ removeImage(imageId: string) {
+ for (let i = 0; i < this.globalConfig.imageList.length; i++) {
+ if (this.globalConfig.imageList[i].id === imageId) {
+ this.globalConfig.imageList.splice(i, 1)
+ break
+ }
+ }
+ },
+ // 重置图片列表
+ resetImageList() {
+ this.globalConfig.imageList = defaultImageList as IImage[]
+ },
+ // 清空图片列表
+ clearImageList() {
+ this.globalConfig.imageList = [] as IImage[]
+ },
+ // 设置是否显示奖品列表
+ setIsShowPrizeList(isShowPrizeList: boolean) {
+ this.globalConfig.isSHowPrizeList = isShowPrizeList
+ },
+ // 设置
+ setLanguage(language: string) {
+ this.globalConfig.language = language
+ i18n.global.locale.value = language
+ },
+ // 重置所有配置
+ reset() {
+ this.globalConfig = {
+ rowCount: 17,
+ isSHowPrizeList: true,
+ topTitle: i18n.global.t('data.defaultTitle'),
+ language: browserLanguage,
+ theme: {
+ name: 'dracula',
+ detail: { primary: '#0f5fd3' },
+ cardColor: '#ff79c6',
+ cardWidth: 140,
+ cardHeight: 200,
+ textColor: '#ffffff',
+ luckyCardColor: '#ECB1AC',
+ textSize: 30,
+ patternColor: '#1b66c9',
+ patternList: defaultPatternList as number[],
+ },
+ musicList: defaultMusicList as IMusic[],
+ imageList: defaultImageList as IImage[],
+ }
+ this.currentMusic = {
+ item: defaultMusicList[0],
+ paused: true,
+ }
+ },
+ },
+ persist: {
+ enabled: true,
+ strategies: [
+ {
+ // 如果要存储在localStorage中
+ storage: localStorage,
+ key: 'globalConfig',
+ paths: ['globalConfig'],
+ },
+ ],
+ },
})
diff --git a/src/store/index.ts b/src/store/index.ts
index 532b46d..5c4d226 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -1,12 +1,13 @@
-import {usePersonConfig} from './personConfig';
-import { usePrizeConfig } from './prizeConfig';
-import {useGlobalConfig} from './globalConfig';
-import {useSystem} from './system';
+import { useGlobalConfig } from './globalConfig'
+import { usePersonConfig } from './personConfig'
+import { usePrizeConfig } from './prizeConfig'
+import { useSystem } from './system'
+
export default function useStore() {
return {
- personConfig:usePersonConfig(),
- prizeConfig:usePrizeConfig(),
- globalConfig:useGlobalConfig(),
- system:useSystem(),
- };
+ personConfig: usePersonConfig(),
+ prizeConfig: usePrizeConfig(),
+ globalConfig: useGlobalConfig(),
+ system: useSystem(),
+ }
}
diff --git a/src/store/personConfig.ts b/src/store/personConfig.ts
index 7029d2f..06df7d1 100644
--- a/src/store/personConfig.ts
+++ b/src/store/personConfig.ts
@@ -1,158 +1,159 @@
-import { defineStore } from 'pinia';
-import { IPersonConfig } from '@/types/storeType';
-import { IPrizeConfig } from '@/types/storeType';
-import { defaultPersonList } from './data'
-import { usePrizeConfig } from './prizeConfig';
+import type { IPersonConfig, IPrizeConfig } from '@/types/storeType'
+
import dayjs from 'dayjs'
+import { defineStore } from 'pinia'
+import { defaultPersonList } from './data'
+import { usePrizeConfig } from './prizeConfig'
+
export const usePersonConfig = defineStore('person', {
- state() {
- return {
- personConfig: {
- allPersonList: [] as IPersonConfig[],
- alreadyPersonList: [] as IPersonConfig[],
- }
- };
+ state() {
+ return {
+ personConfig: {
+ allPersonList: [] as IPersonConfig[],
+ alreadyPersonList: [] as IPersonConfig[],
+ },
+ }
+ },
+ getters: {
+ // 获取全部配置
+ getPersonConfig(state) {
+ return state.personConfig
},
- getters: {
- // 获取全部配置
- getPersonConfig(state) {
- return state.personConfig;
- },
- // 获取全部人员名单
- getAllPersonList(state) {
- return state.personConfig.allPersonList.filter((item: IPersonConfig) => {
- return item
- });
- },
- // 获取未获此奖的人员名单
- getNotThisPrizePersonList(state: any) {
- const currentPrize = usePrizeConfig().prizeConfig.currentPrize;
- const data = state.personConfig.allPersonList.filter((item: IPersonConfig) => {
- return !item.prizeId.includes(currentPrize.id as string);
- });
-
- return data
- },
- // 获取已中奖人员名单
- getAlreadyPersonList(state) {
- return state.personConfig.allPersonList.filter((item: IPersonConfig) => {
- return item.isWin === true;
- });
- },
- // 获取中奖人员详情
- getAlreadyPersonDetail(state) {
- return state.personConfig.alreadyPersonList
- },
- // 获取未中奖人员名单
- getNotPersonList(state) {
- return state.personConfig.allPersonList.filter((item: IPersonConfig) => {
- return item.isWin === false;
- });
- },
+ // 获取全部人员名单
+ getAllPersonList(state) {
+ return state.personConfig.allPersonList.filter((item: IPersonConfig) => {
+ return item
+ })
},
- actions: {
- // 添加未中奖人员
- addNotPersonList(personList: IPersonConfig[]) {
- if (personList.length <= 0) {
- return
- }
- personList.forEach((item: IPersonConfig) => {
- this.personConfig.allPersonList.push(item);
- });
- },
- // 添加已中奖人员
- addAlreadyPersonList(personList: IPersonConfig[], prize: IPrizeConfig | null) {
- if (personList.length <= 0) {
- return
- }
- personList.forEach((person: IPersonConfig) => {
- this.personConfig.allPersonList.map((item: IPersonConfig) => {
- if (item.id === person.id && prize != null) {
- item.isWin = true
- // person.isWin = true
- item.prizeName.push(prize.name)
- // person.prizeName += prize.name
- item.prizeTime.push(dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'))
- // person.prizeTime = new Date().toString()
- item.prizeId.push(prize.id as string)
- }
+ // 获取未获此奖的人员名单
+ getNotThisPrizePersonList(state: any) {
+ const currentPrize = usePrizeConfig().prizeConfig.currentPrize
+ const data = state.personConfig.allPersonList.filter((item: IPersonConfig) => {
+ return !item.prizeId.includes(currentPrize.id as string)
+ })
- return item
- });
- this.personConfig.alreadyPersonList.push(person);
- });
- },
- // 从已中奖移动到未中奖
- moveAlreadyToNot(person: IPersonConfig) {
- if (person.id == undefined || person.id == null) {
- return
- }
- const alreadyPersonListLength = this.personConfig.alreadyPersonList.length
- for (let i = 0; i < this.personConfig.allPersonList.length; i++) {
- if (person.id === this.personConfig.allPersonList[i].id) {
- this.personConfig.allPersonList[i].isWin = false
- this.personConfig.allPersonList[i].prizeName = []
- this.personConfig.allPersonList[i].prizeTime = []
- this.personConfig.allPersonList[i].prizeId = []
-
- break
- }
- }
- for (let i = 0; i < alreadyPersonListLength; i++) {
- this.personConfig.alreadyPersonList = this.personConfig.alreadyPersonList.filter((item: IPersonConfig) =>
- item.id !== person.id
- )
- }
- },
- // 删除指定人员
- deletePerson(person: IPersonConfig) {
- if (person.id != undefined || person.id != null) {
- this.personConfig.allPersonList = this.personConfig.allPersonList.filter((item: IPersonConfig) => item.id !== person.id);
- this.personConfig.alreadyPersonList = this.personConfig.alreadyPersonList.filter((item: IPersonConfig) => item.id !== person.id);
- }
- },
- // 删除所有人员
- deleteAllPerson() {
- this.personConfig.allPersonList = [];
- this.personConfig.alreadyPersonList = [];
- },
-
- // 删除所有人员
- resetPerson() {
- this.personConfig.allPersonList = [];
- this.personConfig.alreadyPersonList = [];
- },
- // 重置已中奖人员
- resetAlreadyPerson() {
- // 把已中奖人员合并到未中奖人员,要验证是否已存在
- this.personConfig.allPersonList.forEach((item: IPersonConfig) => {
- item.isWin = false;
- item.prizeName = [];
- item.prizeTime = [];
- item.prizeId = []
- });
- this.personConfig.alreadyPersonList = [];
- },
- setDefaultPersonList() {
- this.personConfig.allPersonList = defaultPersonList;
- this.personConfig.alreadyPersonList = [];
- },
- // 重置所有配置
- reset() {
- this.personConfig = {
- allPersonList: [] as IPersonConfig[],
- alreadyPersonList: [] as IPersonConfig[],
- }
- },
+ return data
},
- persist: {
- enabled: true,
- strategies: [
- {
- // 如果要存储在localStorage中
- storage: localStorage,
- key: 'personConfig',
- },
- ],
+ // 获取已中奖人员名单
+ getAlreadyPersonList(state) {
+ return state.personConfig.allPersonList.filter((item: IPersonConfig) => {
+ return item.isWin === true
+ })
},
-});
+ // 获取中奖人员详情
+ getAlreadyPersonDetail(state) {
+ return state.personConfig.alreadyPersonList
+ },
+ // 获取未中奖人员名单
+ getNotPersonList(state) {
+ return state.personConfig.allPersonList.filter((item: IPersonConfig) => {
+ return item.isWin === false
+ })
+ },
+ },
+ actions: {
+ // 添加未中奖人员
+ addNotPersonList(personList: IPersonConfig[]) {
+ if (personList.length <= 0) {
+ return
+ }
+ personList.forEach((item: IPersonConfig) => {
+ this.personConfig.allPersonList.push(item)
+ })
+ },
+ // 添加已中奖人员
+ addAlreadyPersonList(personList: IPersonConfig[], prize: IPrizeConfig | null) {
+ if (personList.length <= 0) {
+ return
+ }
+ personList.forEach((person: IPersonConfig) => {
+ this.personConfig.allPersonList.map((item: IPersonConfig) => {
+ if (item.id === person.id && prize != null) {
+ item.isWin = true
+ // person.isWin = true
+ item.prizeName.push(prize.name)
+ // person.prizeName += prize.name
+ item.prizeTime.push(dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'))
+ // person.prizeTime = new Date().toString()
+ item.prizeId.push(prize.id as string)
+ }
+
+ return item
+ })
+ this.personConfig.alreadyPersonList.push(person)
+ })
+ },
+ // 从已中奖移动到未中奖
+ moveAlreadyToNot(person: IPersonConfig) {
+ if (person.id === undefined || person.id == null) {
+ return
+ }
+ const alreadyPersonListLength = this.personConfig.alreadyPersonList.length
+ for (let i = 0; i < this.personConfig.allPersonList.length; i++) {
+ if (person.id === this.personConfig.allPersonList[i].id) {
+ this.personConfig.allPersonList[i].isWin = false
+ this.personConfig.allPersonList[i].prizeName = []
+ this.personConfig.allPersonList[i].prizeTime = []
+ this.personConfig.allPersonList[i].prizeId = []
+
+ break
+ }
+ }
+ for (let i = 0; i < alreadyPersonListLength; i++) {
+ this.personConfig.alreadyPersonList = this.personConfig.alreadyPersonList.filter((item: IPersonConfig) =>
+ item.id !== person.id,
+ )
+ }
+ },
+ // 删除指定人员
+ deletePerson(person: IPersonConfig) {
+ if (person.id !== undefined || person.id != null) {
+ this.personConfig.allPersonList = this.personConfig.allPersonList.filter((item: IPersonConfig) => item.id !== person.id)
+ this.personConfig.alreadyPersonList = this.personConfig.alreadyPersonList.filter((item: IPersonConfig) => item.id !== person.id)
+ }
+ },
+ // 删除所有人员
+ deleteAllPerson() {
+ this.personConfig.allPersonList = []
+ this.personConfig.alreadyPersonList = []
+ },
+
+ // 删除所有人员
+ resetPerson() {
+ this.personConfig.allPersonList = []
+ this.personConfig.alreadyPersonList = []
+ },
+ // 重置已中奖人员
+ resetAlreadyPerson() {
+ // 把已中奖人员合并到未中奖人员,要验证是否已存在
+ this.personConfig.allPersonList.forEach((item: IPersonConfig) => {
+ item.isWin = false
+ item.prizeName = []
+ item.prizeTime = []
+ item.prizeId = []
+ })
+ this.personConfig.alreadyPersonList = []
+ },
+ setDefaultPersonList() {
+ this.personConfig.allPersonList = defaultPersonList
+ this.personConfig.alreadyPersonList = []
+ },
+ // 重置所有配置
+ reset() {
+ this.personConfig = {
+ allPersonList: [] as IPersonConfig[],
+ alreadyPersonList: [] as IPersonConfig[],
+ }
+ },
+ },
+ persist: {
+ enabled: true,
+ strategies: [
+ {
+ // 如果要存储在localStorage中
+ storage: localStorage,
+ key: 'personConfig',
+ },
+ ],
+ },
+})
diff --git a/src/store/prizeConfig.ts b/src/store/prizeConfig.ts
index f434a55..0732894 100644
--- a/src/store/prizeConfig.ts
+++ b/src/store/prizeConfig.ts
@@ -1,176 +1,177 @@
-import { defineStore } from 'pinia';
-import { IPrizeConfig } from '@/types/storeType';
-import { defaultPrizeList, defaultCurrentPrize } from './data';
+import type { IPrizeConfig } from '@/types/storeType'
+import { defineStore } from 'pinia'
+import { defaultCurrentPrize, defaultPrizeList } from './data'
+
export const usePrizeConfig = defineStore('prize', {
- state() {
- return {
- prizeConfig: {
- prizeList: defaultPrizeList,
- currentPrize: defaultCurrentPrize,
- temporaryPrize: {
- id: '',
- name: '',
- sort: 0,
- isAll: false,
- count: 1,
- isUsedCount: 0,
- picture: {
- id: '-1',
- name: '',
- url: ''
- },
- separateCount: {
- enable: true,
- countList: []
- },
- desc: '',
- isShow: false,
- isUsed: false,
- frequency: 1,
- } as IPrizeConfig
- }
- };
+ state() {
+ return {
+ prizeConfig: {
+ prizeList: defaultPrizeList,
+ currentPrize: defaultCurrentPrize,
+ temporaryPrize: {
+ id: '',
+ name: '',
+ sort: 0,
+ isAll: false,
+ count: 1,
+ isUsedCount: 0,
+ picture: {
+ id: '-1',
+ name: '',
+ url: '',
+ },
+ separateCount: {
+ enable: true,
+ countList: [],
+ },
+ desc: '',
+ isShow: false,
+ isUsed: false,
+ frequency: 1,
+ } as IPrizeConfig,
+ },
+ }
+ },
+ getters: {
+ // 获取全部配置
+ getPrizeConfigAll(state) {
+ return state.prizeConfig
},
- getters: {
- // 获取全部配置
- getPrizeConfigAll(state) {
- return state.prizeConfig;
- },
- // 获取奖品列表
- getPrizeConfig(state) {
- return state.prizeConfig.prizeList;
- },
- // 根据id获取配置
- getPrizeConfigById(state) {
- return (id: number | string) => {
- return state.prizeConfig.prizeList.find(item => item.id === id);
- }
- },
- // 获取当前奖项
- getCurrentPrize(state) {
- return state.prizeConfig.currentPrize;
- },
- // 获取临时的奖项
- getTemporaryPrize(state) {
- return state.prizeConfig.temporaryPrize;
- },
-
+ // 获取奖品列表
+ getPrizeConfig(state) {
+ return state.prizeConfig.prizeList
+ },
+ // 根据id获取配置
+ getPrizeConfigById(state) {
+ return (id: number | string) => {
+ return state.prizeConfig.prizeList.find(item => item.id === id)
+ }
+ },
+ // 获取当前奖项
+ getCurrentPrize(state) {
+ return state.prizeConfig.currentPrize
+ },
+ // 获取临时的奖项
+ getTemporaryPrize(state) {
+ return state.prizeConfig.temporaryPrize
},
- actions: {
- // 设置奖项
- setPrizeConfig(prizeList: IPrizeConfig[]) {
- this.prizeConfig.prizeList = prizeList;
- },
- // 添加奖项
- addPrizeConfig(prizeConfigItem: IPrizeConfig) {
- this.prizeConfig.prizeList.push(prizeConfigItem);
- },
- // 删除奖项
- deletePrizeConfig(prizeConfigItemId: number | string) {
- this.prizeConfig.prizeList = this.prizeConfig.prizeList.filter(item => item.id !== prizeConfigItemId);
- },
- // 更新奖项数据
- updatePrizeConfig(prizeConfigItem: IPrizeConfig) {
- const prizeListLength = this.prizeConfig.prizeList.length;
- if (prizeConfigItem.isUsed && prizeListLength) {
- for (let i = 0; i < prizeListLength; i++) {
- if (!this.prizeConfig.prizeList[i].isUsed) {
- this.setCurrentPrize(this.prizeConfig.prizeList[i]);
- break;
- }
- }
- }
- else {
- return
- }
- this.resetTemporaryPrize()
- },
- // 删除全部奖项
- deleteAllPrizeConfig() {
- this.prizeConfig.prizeList = [] as IPrizeConfig[];
- },
- // 设置当前奖项
- setCurrentPrize(prizeConfigItem: IPrizeConfig) {
- this.prizeConfig.currentPrize = prizeConfigItem
- },
- // 设置临时奖项
- setTemporaryPrize(prizeItem: IPrizeConfig) {
- if (prizeItem.isShow == false) {
- for (let i = 0; i < this.prizeConfig.prizeList.length; i++) {
- if (this.prizeConfig.prizeList[i].isUsed == false) {
- this.setCurrentPrize(this.prizeConfig.prizeList[i]);
- break
- }
- }
- this.resetTemporaryPrize()
-
- return
- }
-
- this.prizeConfig.temporaryPrize = prizeItem
- },
- // 重置临时奖项
- resetTemporaryPrize() {
- this.prizeConfig.temporaryPrize = {
- id: '',
- name: '',
- sort: 0,
- isAll: false,
- count: 1,
- isUsedCount: 0,
- picture: {
- id: '-1',
- name: '',
- url: ''
- },
- separateCount: {
- enable: true,
- countList: []
- },
- desc: '',
- isShow: false,
- isUsed: false,
- frequency: 1,
- } as IPrizeConfig;
- },
- // 重置所有配置
- resetDefault() {
- this.prizeConfig = {
- prizeList: defaultPrizeList,
- currentPrize: defaultCurrentPrize,
- temporaryPrize: {
- id: '',
- name: '',
- sort: 0,
- isAll: false,
- count: 1,
- isUsedCount: 0,
- picture: {
- id: '-1',
- name: '',
- url: ''
- },
- separateCount: {
- enable: true,
- countList: []
- },
- desc: '',
- isShow: false,
- isUsed: false,
- frequency: 1,
- } as IPrizeConfig
- }
+ },
+ actions: {
+ // 设置奖项
+ setPrizeConfig(prizeList: IPrizeConfig[]) {
+ this.prizeConfig.prizeList = prizeList
+ },
+ // 添加奖项
+ addPrizeConfig(prizeConfigItem: IPrizeConfig) {
+ this.prizeConfig.prizeList.push(prizeConfigItem)
+ },
+ // 删除奖项
+ deletePrizeConfig(prizeConfigItemId: number | string) {
+ this.prizeConfig.prizeList = this.prizeConfig.prizeList.filter(item => item.id !== prizeConfigItemId)
+ },
+ // 更新奖项数据
+ updatePrizeConfig(prizeConfigItem: IPrizeConfig) {
+ const prizeListLength = this.prizeConfig.prizeList.length
+ if (prizeConfigItem.isUsed && prizeListLength) {
+ for (let i = 0; i < prizeListLength; i++) {
+ if (!this.prizeConfig.prizeList[i].isUsed) {
+ this.setCurrentPrize(this.prizeConfig.prizeList[i])
+ break
+ }
}
+ }
+ else {
+ return
+ }
+ this.resetTemporaryPrize()
},
- persist: {
- enabled: true,
- strategies: [
- {
- // 如果要存储在localStorage中
- storage: localStorage,
- key: 'prizeConfig',
- },
- ],
+ // 删除全部奖项
+ deleteAllPrizeConfig() {
+ this.prizeConfig.prizeList = [] as IPrizeConfig[]
},
-});
+ // 设置当前奖项
+ setCurrentPrize(prizeConfigItem: IPrizeConfig) {
+ this.prizeConfig.currentPrize = prizeConfigItem
+ },
+ // 设置临时奖项
+ setTemporaryPrize(prizeItem: IPrizeConfig) {
+ if (prizeItem.isShow === false) {
+ for (let i = 0; i < this.prizeConfig.prizeList.length; i++) {
+ if (this.prizeConfig.prizeList[i].isUsed === false) {
+ this.setCurrentPrize(this.prizeConfig.prizeList[i])
+
+ break
+ }
+ }
+ this.resetTemporaryPrize()
+
+ return
+ }
+
+ this.prizeConfig.temporaryPrize = prizeItem
+ },
+ // 重置临时奖项
+ resetTemporaryPrize() {
+ this.prizeConfig.temporaryPrize = {
+ id: '',
+ name: '',
+ sort: 0,
+ isAll: false,
+ count: 1,
+ isUsedCount: 0,
+ picture: {
+ id: '-1',
+ name: '',
+ url: '',
+ },
+ separateCount: {
+ enable: true,
+ countList: [],
+ },
+ desc: '',
+ isShow: false,
+ isUsed: false,
+ frequency: 1,
+ } as IPrizeConfig
+ },
+ // 重置所有配置
+ resetDefault() {
+ this.prizeConfig = {
+ prizeList: defaultPrizeList,
+ currentPrize: defaultCurrentPrize,
+ temporaryPrize: {
+ id: '',
+ name: '',
+ sort: 0,
+ isAll: false,
+ count: 1,
+ isUsedCount: 0,
+ picture: {
+ id: '-1',
+ name: '',
+ url: '',
+ },
+ separateCount: {
+ enable: true,
+ countList: [],
+ },
+ desc: '',
+ isShow: false,
+ isUsed: false,
+ frequency: 1,
+ } as IPrizeConfig,
+ }
+ },
+ },
+ persist: {
+ enabled: true,
+ strategies: [
+ {
+ // 如果要存储在localStorage中
+ storage: localStorage,
+ key: 'prizeConfig',
+ },
+ ],
+ },
+})
diff --git a/src/store/system.ts b/src/store/system.ts
index d13ba88..771d98f 100644
--- a/src/store/system.ts
+++ b/src/store/system.ts
@@ -1,37 +1,37 @@
-import { defineStore } from 'pinia';
+import { defineStore } from 'pinia'
// import { IPrizeConfig } from '@/types/storeType';
export const useSystem = defineStore('system', {
- state() {
- return {
- isMobile:false,
- isChrome:true
- };
+ state() {
+ return {
+ isMobile: false,
+ isChrome: true,
+ }
+ },
+ getters: {
+ getIsMobile(state) {
+ return state.isMobile
},
- getters: {
- getIsMobile(state) {
- return state.isMobile;
- },
- getIsChrome(state) {
- return state.isChrome;
- },
+ getIsChrome(state) {
+ return state.isChrome
},
- actions: {
- setIsMobile(isMobile: boolean) {
- this.isMobile = isMobile;
- },
- setIsChrome(isChrome: boolean) {
- this.isChrome = isChrome;
- },
+ },
+ actions: {
+ setIsMobile(isMobile: boolean) {
+ this.isMobile = isMobile
},
- persist: {
- enabled: true,
- strategies: [
- {
- // 如果要存储在localStorage中
- // storage: localStorage,
- // key: 'globalConfig',
- // paths: ['globalConfig'],
- },
- ],
+ setIsChrome(isChrome: boolean) {
+ this.isChrome = isChrome
},
+ },
+ persist: {
+ enabled: true,
+ strategies: [
+ {
+ // 如果要存储在localStorage中
+ // storage: localStorage,
+ // key: 'globalConfig',
+ // paths: ['globalConfig'],
+ },
+ ],
+ },
})
diff --git a/src/types/storeType.ts b/src/types/storeType.ts
index 9ab7682..fc9e781 100644
--- a/src/types/storeType.ts
+++ b/src/types/storeType.ts
@@ -1,52 +1,52 @@
export interface IPersonConfig {
- id: number;
- uid: string;
- name: string;
- department: string;
- identity: string;
- isWin: boolean;
- x: number;
- y: number
- createTime: string;
- updateTime: string;
- prizeName: string[];
- prizeId: string[];
- prizeTime: string[];
+ id: number
+ uid: string
+ name: string
+ department: string
+ identity: string
+ isWin: boolean
+ x: number
+ y: number
+ createTime: string
+ updateTime: string
+ prizeName: string[]
+ prizeId: string[]
+ prizeTime: string[]
}
-export type Separate = {
- id: string,
- count: number,
- isUsedCount: number,
+export interface Separate {
+ id: string
+ count: number
+ isUsedCount: number
}
export interface IPrizeConfig {
- id: number | string;
- name: string;
- sort: number;
- isAll: boolean;
- count: number;
- isUsedCount: number,
- picture: {
- id: string | number,
- name: string,
- url: string
- };
- separateCount: {
- enable: boolean,
- countList: Separate[],
- };
- desc: string;
- isShow: boolean;
- isUsed: boolean,
- frequency: number;
+ id: number | string
+ name: string
+ sort: number
+ isAll: boolean
+ count: number
+ isUsedCount: number
+ picture: {
+ id: string | number
+ name: string
+ url: string
+ }
+ separateCount: {
+ enable: boolean
+ countList: Separate[]
+ }
+ desc: string
+ isShow: boolean
+ isUsed: boolean
+ frequency: number
}
export interface IMusic {
- id: string,
- name: string,
- url: string,
+ id: string
+ name: string
+ url: string
}
export interface IImage {
- id: string,
- name: string,
- url: string,
+ id: string
+ name: string
+ url: string
}
diff --git a/src/utils/auth.ts b/src/utils/auth.ts
index 4162234..17034bf 100644
--- a/src/utils/auth.ts
+++ b/src/utils/auth.ts
@@ -1,3 +1,3 @@
export function getToken() {
- return window.localStorage.getItem('userToken');
+ return window.localStorage.getItem('userToken')
}
diff --git a/src/utils/color.ts b/src/utils/color.ts
index 0fa9767..f8fb388 100644
--- a/src/utils/color.ts
+++ b/src/utils/color.ts
@@ -1,41 +1,41 @@
// 判断颜色是否rgb或者rgba
export function isRgbOrRgba(color: string) {
- return color.indexOf('rgb') > -1 || color.indexOf('rgba') > -1;
+ return color.includes('rgb') || color.includes('rgba')
}
// 判断是否hex形式
export function isHex(color: string) {
- return color.indexOf('#') > -1;
+ return color.includes('#')
}
// 把hex颜色转成rgb数值类型
export function hexToRgba(hex: string) {
- const r = parseInt(hex.slice(1, 3), 16);
- const g = parseInt(hex.slice(3, 5), 16);
- const b = parseInt(hex.slice(5, 7), 16);
-
-return {r,g,b}
+ const r = Number.parseInt(hex.slice(1, 3), 16)
+ const g = Number.parseInt(hex.slice(3, 5), 16)
+ const b = Number.parseInt(hex.slice(5, 7), 16)
+
+ return { r, g, b }
}
// 把rgb数组转化成r g b 数值
export function rgbToRgba(rgb: string) {
- const rgbArr = rgb.split('(')[1].split(')')[0].split(',');
-
-return {r:rgbArr[0],g:rgbArr[1],b:rgbArr[2]}
+ const rgbArr = rgb.split('(')[1].split(')')[0].split(',')
+
+ return { r: rgbArr[0], g: rgbArr[1], b: rgbArr[2] }
}
// 组成rgb颜色添加透明度
export function rgba(color: string, opacity: number) {
- opacity = opacity || 1;
- let rgbaStr=''
- // 判断是否是hex颜色
- if (isHex(color)) {
- const {r,g,b} = hexToRgba(color);
- rgbaStr = `rgba(${r},${g},${b},${opacity})`
- }
- else{
- const {r,g,b} = rgbToRgba(color)
- rgbaStr = `rgba(${r},${g},${b},${opacity})`
- }
-
-return rgbaStr
+ opacity = opacity || 1
+ let rgbaStr = ''
+ // 判断是否是hex颜色
+ if (isHex(color)) {
+ const { r, g, b } = hexToRgba(color)
+ rgbaStr = `rgba(${r},${g},${b},${opacity})`
+ }
+ else {
+ const { r, g, b } = rgbToRgba(color)
+ rgbaStr = `rgba(${r},${g},${b},${opacity})`
+ }
+
+ return rgbaStr
}
diff --git a/src/utils/file.ts b/src/utils/file.ts
index 2084926..5cc7aa5 100644
--- a/src/utils/file.ts
+++ b/src/utils/file.ts
@@ -1,19 +1,19 @@
-export const readFileBinary = (file: any): Promise => {
- return new Promise(resolve => {
- const reader = new FileReader()
- reader.readAsBinaryString(file)
- reader.onload = (ev: any) => {
- resolve(ev.target.result)
- }
- })
+export function readFileBinary(file: any): Promise {
+ return new Promise((resolve) => {
+ const reader = new FileReader()
+ reader.readAsBinaryString(file)
+ reader.onload = (ev: any) => {
+ resolve(ev.target.result)
+ }
+ })
}
-export const readFileData = (file: any): Promise<{dataUrl:string,fileName:string}> => {
- return new Promise(resolve => {
- const reader = new FileReader()
- reader.readAsDataURL(file)
- reader.onload = (ev: any) => {
- resolve({dataUrl:ev.target.result,fileName:file.name})
- }
- })
+export function readFileData(file: any): Promise<{ dataUrl: string, fileName: string }> {
+ return new Promise((resolve) => {
+ const reader = new FileReader()
+ reader.readAsDataURL(file)
+ reader.onload = (ev: any) => {
+ resolve({ dataUrl: ev.target.result, fileName: file.name })
+ }
+ })
}
diff --git a/src/utils/index.ts b/src/utils/index.ts
index 2d5eca9..08e7678 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -1,41 +1,41 @@
-import dayjs from 'dayjs';
+import dayjs from 'dayjs'
// 筛选人员数据
-export const filterData = (tableData: any[], localRowCount: number, startIndex = 0) => {
- const dataLength = tableData.length
- let j = 0;
- for (let i = 0; i < dataLength; i++) {
- if (i % localRowCount === 0) {
- j++;
- }
- tableData[i].x = i % localRowCount + 1;
- tableData[i].y = j;
- tableData[i].id = i;
- // 是否中奖
+export function filterData(tableData: any[], localRowCount: number) {
+ const dataLength = tableData.length
+ let j = 0
+ for (let i = 0; i < dataLength; i++) {
+ if (i % localRowCount === 0) {
+ j++
}
+ tableData[i].x = i % localRowCount + 1
+ tableData[i].y = j
+ tableData[i].id = i
+ // 是否中奖
+ }
- return tableData
+ return tableData
}
-export const addOtherInfo = (personList: any[]) => {
- const len = personList.length;
- for (let i = 0; i < len; i++) {
- personList[i].id = i
- personList[i].createTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss');
- personList[i].updateTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss');
- personList[i].prizeName = [] as string[];
- personList[i].prizeTime = [] as string[];
- personList[i].prizeId = [];
- personList[i].isWin = false
- }
+export function addOtherInfo(personList: any[]) {
+ const len = personList.length
+ for (let i = 0; i < len; i++) {
+ personList[i].id = i
+ personList[i].createTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss')
+ personList[i].updateTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss')
+ personList[i].prizeName = [] as string[]
+ personList[i].prizeTime = [] as string[]
+ personList[i].prizeId = []
+ personList[i].isWin = false
+ }
- return personList
+ return personList
}
-export const selectCard = (cardIndexArr: number[], tableLength: number, personId: number): number => {
- const cardIndex = Math.round(Math.random() * (tableLength - 1));
- if (cardIndexArr.includes(cardIndex)) {
- return selectCard(cardIndexArr, tableLength, personId)
- }
+export function selectCard(cardIndexArr: number[], tableLength: number, personId: number): number {
+ const cardIndex = Math.round(Math.random() * (tableLength - 1))
+ if (cardIndexArr.includes(cardIndex)) {
+ return selectCard(cardIndexArr, tableLength, personId)
+ }
- return cardIndex
+ return cardIndex
}
diff --git a/src/utils/store.ts b/src/utils/store.ts
index adee905..6d2efdc 100644
--- a/src/utils/store.ts
+++ b/src/utils/store.ts
@@ -1,11 +1,10 @@
// 提取有哪些字段
-export const extractFields = (data: any) => {
- const item=data[0];
- // 排除id x y,其他都加入数组
- const keys = Object.keys(item).filter(key => key!== 'id' && key!== 'x' && key!== 'y');
- if(keys.length>0){
- // 返回数组key value
- return keys.map(key => ({label:key,value:true}));
- }
-};
-
+export function extractFields(data: any) {
+ const item = data[0]
+ // 排除id x y,其他都加入数组
+ const keys = Object.keys(item).filter(key => key !== 'id' && key !== 'x' && key !== 'y')
+ if (keys.length > 0) {
+ // 返回数组key value
+ return keys.map(key => ({ label: key, value: true }))
+ }
+}
diff --git a/src/views/Config/Global/FaceConfig.vue b/src/views/Config/Global/FaceConfig.vue
index e20336f..7db5777 100644
--- a/src/views/Config/Global/FaceConfig.vue
+++ b/src/views/Config/Global/FaceConfig.vue
@@ -1,27 +1,30 @@
-
-
-
{{$t('viewTitle.globalSetting')}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
{{ t('viewTitle.globalSetting') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Config/Global/ImageConfig.vue b/src/views/Config/Global/ImageConfig.vue
index 4674e17..8e8a221 100644
--- a/src/views/Config/Global/ImageConfig.vue
+++ b/src/views/Config/Global/ImageConfig.vue
@@ -1,111 +1,118 @@
-
-
- {{ $t('error.uploadFail') }}
-
-
- {{ $t('error.uploadSuccess') }}
-
-
- {{ $t('error.notImage') }}
-
+
+
+ {{ t('error.uploadFail') }}
+
+ {{ t('error.uploadSuccess') }}
+
+
+ {{ t('error.notImage') }}
+
+
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Config/Global/MusicConfig.vue b/src/views/Config/Global/MusicConfig.vue
index 8084b4c..441f0b6 100644
--- a/src/views/Config/Global/MusicConfig.vue
+++ b/src/views/Config/Global/MusicConfig.vue
@@ -1,102 +1,113 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/src/views/Config/Global/components/PatternSetting.vue b/src/views/Config/Global/components/PatternSetting.vue
index 338a85a..b1a614c 100644
--- a/src/views/Config/Global/components/PatternSetting.vue
+++ b/src/views/Config/Global/components/PatternSetting.vue
@@ -1,45 +1,46 @@
-
-
- - updatePatternList(event,item)" class="w-5 h-5" v-for="item in data.rowCount*7" :key="item" :style="{backgroundColor:data.patternList.includes(item)?data.patternColor:data.cardColor}">
-
+
+
+ - updatePatternList(event, item)" />
-
+
diff --git a/src/views/Config/Person/PersonAlready.vue b/src/views/Config/Person/PersonAlready.vue
index 94bf2ec..e523426 100644
--- a/src/views/Config/Person/PersonAlready.vue
+++ b/src/views/Config/Person/PersonAlready.vue
@@ -1,11 +1,14 @@
-
-
-
{{ $t('viewTitle.winnerManagement') }}
-
-
- {{$t('table.luckyPeopleNumber')}}:
- {{ alreadyPersonList.length }}
-
-
-
-
-
-
+
+
{{ t('viewTitle.winnerManagement') }}
+
+
+ {{ t('table.luckyPeopleNumber') }}:
+ {{ alreadyPersonList.length }}
+
+
+
+
-
-
-
+
+
+
+
+
diff --git a/src/views/Config/Person/PersonConfig.vue b/src/views/Config/Person/PersonConfig.vue
index 62b9dda..8d0241b 100644
--- a/src/views/Config/Person/PersonConfig.vue
+++ b/src/views/Config/Person/PersonConfig.vue
@@ -1,11 +1,9 @@
-
-
+
diff --git a/src/views/Config/Readme/index.vue b/src/views/Config/Readme/index.vue
index 5d17a32..0265930 100644
--- a/src/views/Config/Readme/index.vue
+++ b/src/views/Config/Readme/index.vue
@@ -1,26 +1,27 @@
-
+
diff --git a/src/views/Demo/index.vue b/src/views/Demo/index.vue
index 0b1c04e..5e05a68 100644
--- a/src/views/Demo/index.vue
+++ b/src/views/Demo/index.vue
@@ -2,9 +2,11 @@
-
-
-
+
+
+
+}
+
diff --git a/src/views/Home/index.vue b/src/views/Home/index.vue
index 876423d..ee32dd0 100644
--- a/src/views/Home/index.vue
+++ b/src/views/Home/index.vue
@@ -1,30 +1,26 @@
-
-
-
-
-
-
+
+
+
+
+
-
+
+
+
+