fix: 全面优化小程序功能

🔧 数据库配置:
- 切换到腾讯云外网数据库
- 配置连接参数和连接池

🎨 界面优化:
- 未登录时只显示登录按钮,隐藏其他功能
- 优化登录卡片样式
- 修复章节图标和标题对齐问题

💳 支付流程优化:
- 增加重复购买检测,避免重复支付
- 优化openId获取逻辑,支持静默获取
- 已登录用户可直接支付,无需重复登录

📊 后台管理:
- 创建章节管理API (/api/admin/chapters)
- 创建章节管理页面 (/admin/chapters)
- 支持查看所有章节、修改价格、设置免费状态
This commit is contained in:
卡若
2026-01-23 17:25:15 +08:00
parent 1e1e6a1093
commit 7ff181f743
11 changed files with 1131 additions and 254 deletions

View File

@@ -336,15 +336,15 @@
}
.section-icon {
width: 32rpx;
height: 32rpx;
min-width: 32rpx;
font-size: 24rpx;
width: 36rpx;
height: 36rpx;
min-width: 36rpx;
font-size: 28rpx;
flex-shrink: 0;
display: inline-flex;
display: flex;
align-items: center;
justify-content: center;
margin-right: 4rpx;
line-height: 1;
}
.icon-unlocked {
@@ -361,8 +361,11 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 32rpx;
line-height: 36rpx;
flex: 1;
height: 36rpx;
display: flex;
align-items: center;
}
.section-right {