feat: 适配5.x后端,重构前端架构

主要变更:
1. 重构API目录结构,采用模块化设计,适配5.x后端接口规范
2. 优化布局组件,提升用户界面体验
3. 增强国际化支持,完善多语言配置
4. 新增权限控制功能,支持前端路由权限管理
5. 优化认证流程,支持JWT认证机制
6. 新增中间件和插件,提升系统扩展性
7. 优化状态管理,采用更清晰的模块化设计
8. 新增搜索框、广告等组件,丰富页面功能
9. 更改包管理工具从npm到pnpm,提升依赖管理效率
10. 完善配置系统,支持多环境配置

适配5.x后端特性:
- 采用新的API接口规范
- 支持JWT认证机制
- 适配后端权限控制体系
- 支持后端国际化接口
- 优化数据交互方式
This commit is contained in:
Mr.April
2026-04-07 11:01:11 +08:00
parent 1b83f1890b
commit d84d972e73
127 changed files with 103052 additions and 14661 deletions
+16
View File
@@ -0,0 +1,16 @@
{
"page_title": "余额记录",
"current_balance": "当前余额",
"total_transaction": "总交易额",
"record_id": "记录ID",
"type": "类型",
"type_income": "收入",
"type_expense": "支出",
"amount": "金额",
"description": "描述",
"time": "时间",
"loading": "加载中",
"no_data": "暂无数据",
"recharge": "充值",
"withdraw": "提现"
}
@@ -0,0 +1,21 @@
{
"page_title": "修改密码",
"current_password": "当前密码",
"current_password_placeholder": "请输入当前密码",
"new_password": "新密码",
"new_password_placeholder": "请输入新密码",
"confirm_password": "确认新密码",
"confirm_password_placeholder": "请确认新密码",
"password_error": "两次输入的密码不一致",
"submit_button": "提交修改",
"reset_button": "重置",
"success": "密码修改成功",
"failed": "密码修改失败",
"validation": {
"current_password_required": "请输入当前密码",
"new_password_required": "请输入新密码",
"new_password_min_length": "密码长度不能少于6位",
"confirm_password_required": "请确认新密码",
"confirm_password_mismatch": "两次输入的密码不一致"
}
}
+15
View File
@@ -0,0 +1,15 @@
{
"page_title": "积分记录",
"current_points": "当前积分",
"monthly_points": "本月获得",
"total_points": "总获得",
"record_id": "记录ID",
"type": "类型",
"type_earn": "获得",
"type_deduct": "扣除",
"points": "积分",
"reason": "原因",
"time": "时间",
"loading": "加载中",
"no_data": "暂无数据"
}
+27
View File
@@ -0,0 +1,27 @@
{
"page_title": "个人资料",
"username": "用户名",
"email": "邮箱",
"email_placeholder": "请输入邮箱",
"phone": "手机号",
"nickname": "昵称",
"nickname_placeholder": "请输入昵称",
"gender": "性别",
"gender_male": "男",
"gender_female": "女",
"gender_other": "其他",
"birthday": "生日",
"birthday_placeholder": "请选择生日",
"bio": "个人简介",
"bio_placeholder": "请输入个人简介",
"save_button": "保存修改",
"reset_button": "重置",
"avatar": "头像",
"upload_avatar": "上传头像",
"update_success": "个人资料保存成功",
"update_failed": "保存失败",
"validation": {
"nickname_required": "请输入昵称",
"email_format": "请输入正确的邮箱地址"
}
}
@@ -0,0 +1,72 @@
{
"page_title": "用户设置",
"account_info": "账户信息",
"login_phone": "登录手机",
"change_phone": "更换号码",
"email": "邮箱",
"change_email": "修改邮箱",
"login_password": "登录密码",
"change_password": "修改密码",
"third_party_bind": "第三方账号绑定",
"bind": "绑定",
"bind_time": "绑定时间",
"status": "状态",
"options": "操作",
"unbind": "解绑",
"bind_success": "绑定成功",
"unbind_success": "解绑成功",
"bind_failed": "绑定失败",
"unbind_failed": "解绑失败",
"confirm_unbind": "确定要解绑{name}吗?",
"wechat": "微信",
"qq": "QQ",
"weibo": "微博",
"douyin": "抖音",
"using": "使用中",
"not_bound": "未绑定",
"phone_bind": "手机号绑定",
"phone_bind_dialog": "更换手机号码",
"old_phone": "旧手机号",
"old_phone_placeholder": "请输入旧手机号",
"new_phone": "新手机号",
"new_phone_placeholder": "请输入新手机号",
"verification_code": "验证码",
"verification_code_placeholder": "请输入验证码",
"get_code": "获取验证码",
"confirm": "确定",
"cancel": "取消",
"email_bind": "邮箱绑定",
"email_bind_dialog": "修改邮箱",
"new_email": "新邮箱",
"new_email_placeholder": "请输入新邮箱",
"qr_bind_title": "绑定{name}",
"qr_generating": "正在生成二维码...",
"qr_expired": "二维码已过期",
"qr_regenerate": "重新生成",
"qr_success": "绑定成功!",
"qr_tip": "请使用{name}扫描二维码进行绑定",
"phone_update_success": "手机号更新成功",
"phone_update_failed": "手机号更新失败",
"email_update_success": "邮箱更新成功",
"email_update_failed": "邮箱更新失败",
"code_send_success": "验证码发送成功",
"code_send_failed": "验证码发送失败",
"please_enter_phone": "请输入新手机号",
"please_enter_email": "请输入邮箱",
"please_enter_old_phone": "请输入旧手机号",
"please_enter_code": "请输入验证码",
"confirm_unbind_title": "提示",
"cancel_unbind": "已取消解绑",
"opening_app": "正在唤起{name}...",
"open_app_failed": "唤起{name}失败,请确保已安装{name}客户端",
"please_bind": "请点击绑定{name}",
"qr_generate_failed": "生成二维码失败",
"validation": {
"old_phone_required": "请输入旧手机号",
"new_phone_required": "请输入新手机号",
"code_required": "请输入验证码",
"email_required": "请输入邮箱",
"new_email_required": "请输入新邮箱",
"new_email_code_required": "请输入验证码"
}
}
+14
View File
@@ -0,0 +1,14 @@
{
"page_title": "每日签到",
"sign_rules": "签到规则",
"sign_button": "签到",
"signed": "已签到",
"consecutive_days": "连续签到",
"days": "天",
"tomorrow_points": "明天继续签到可获得 {points} 积分~",
"sign_success": "签到成功!获得{points}积分",
"sign_failed": "签到失败",
"get_sign_status_failed": "获取签到状态失败",
"get_sign_calendar_failed": "获取签到日历失败",
"rules_content": "签到规则:\n1. 每日签到可获得1-5积分\n2. 连续签到天数越多,获得积分越多\n3. 连续签到7天可获得额外奖励"
}