mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
feat: 添加签到功能及相关设置
- 更新 .gitignore,添加 SpecStory 说明文件 - 在 App.vue 中引入 NGlobalStyle 组件 - 更新 api-models.ts,添加签到相关数据模型 - 在 CheckInSettings.vue 中实现签到功能的配置界面 - 添加签到排行榜功能,允许用户查看签到情况 - 更新 PointHistoryCard.vue,增加签到记录显示 - 在 PointSettings.vue 中添加签到相关设置项 - 更新路由,添加签到排行页面
This commit is contained in:
@@ -37,14 +37,24 @@ const message = useMessage()
|
||||
|
||||
// 默认积分设置
|
||||
const defaultSettingPoint: Setting_Point = {
|
||||
allowType: [EventDataTypes.Guard], // 默认只允许舰长积分
|
||||
jianzhangPoint: 10, // 舰长积分
|
||||
tiduPoint: 100, // 提督积分
|
||||
zongduPoint: 1000, // 总督积分
|
||||
giftPercentMap: {}, // 礼物积分映射表
|
||||
scPointPercent: 0.1, // SC积分比例 (10%)
|
||||
giftPointPercent: 0.1, // 礼物积分比例 (10%)
|
||||
allowType: [EventDataTypes.Guard], // 默认只允许舰长积分
|
||||
jianzhangPoint: 10, // 舰长积分
|
||||
tiduPoint: 100, // 提督积分
|
||||
zongduPoint: 1000, // 总督积分
|
||||
giftPercentMap: {}, // 礼物积分映射表
|
||||
scPointPercent: 0.1, // SC积分比例 (10%)
|
||||
giftPointPercent: 0.1, // 礼物积分比例 (10%)
|
||||
giftAllowType: SettingPointGiftAllowType.All, // 默认允许所有礼物
|
||||
enableCheckIn: false,
|
||||
checkInKeyword: '签到',
|
||||
givePointsForCheckIn: false,
|
||||
baseCheckInPoints: 10,
|
||||
enableConsecutiveBonus: false,
|
||||
bonusPointsPerDay: 2,
|
||||
maxBonusPoints: 0,
|
||||
allowSelfCheckIn: false,
|
||||
requireAuth: false,
|
||||
allowCheckInRanking: false
|
||||
}
|
||||
|
||||
// 响应式设置对象
|
||||
|
||||
Reference in New Issue
Block a user