feat: 完整重构小程序匹配功能 + 修复UI对齐 + 文章数据API

主要更新:
1. 按H5网页端完全重构匹配功能(match页面)
   - 4种匹配类型: 创业合伙/资源对接/导师顾问/团队招募
   - 资源对接等类型弹出手机号/微信号输入框
   - 去掉重新匹配按钮,改为返回按钮

2. 修复所有卡片对齐和宽度问题
   - 目录页附录卡片居中
   - 首页阅读进度卡片满宽度
   - 我的页面菜单卡片对齐
   - 推广中心分享卡片统一宽度

3. 修复目录页图标和文字对齐
   - section-icon固定40rpx宽高
   - section-title与图标垂直居中

4. 更新真实完整文章标题(62篇)
   - 从book目录读取真实markdown文件名
   - 替换之前的简化标题

5. 新增文章数据API
   - /api/db/chapters - 获取完整书籍结构
   - 支持按ID获取单篇文章内容
This commit is contained in:
卡若
2026-01-21 15:49:12 +08:00
parent 1ee25e3dab
commit b60edb3d47
197 changed files with 34430 additions and 7345 deletions

View File

@@ -1,3 +1,8 @@
/**
* Zustand 状态管理
* 开发: 卡若
* 技术支持: 存客宝
*/
"use client"
import { create } from "zustand"
@@ -18,6 +23,8 @@ export interface User {
withdrawnEarnings: number
referralCount: number
createdAt: string
wechat?: string
alipay?: string
}
export interface Withdrawal {
@@ -193,9 +200,9 @@ const initialSettings: Settings = {
authorShare: 10,
paymentMethods: {
alipay: {
enabled: true,
qrCode: "",
account: "",
enabled: false, // 已禁用支付宝
qrCode: "/images/alipay.png",
account: "卡若",
partnerId: "2088511801157159",
securityKey: "lz6ey1h3kl9zqkgtjz3avb5gk37wzbrp",
mobilePayEnabled: true,
@@ -203,8 +210,8 @@ const initialSettings: Settings = {
},
wechat: {
enabled: true,
qrCode: "",
account: "",
qrCode: "/images/wechat-pay.png",
account: "卡若",
websiteAppId: "wx432c93e275548671",
websiteAppSecret: "25b7e7fdb7998e5107e242ebb6ddabd0",
serviceAppId: "wx7c0dbf34ddba300d",
@@ -212,10 +219,10 @@ const initialSettings: Settings = {
mpVerifyCode: "SP8AfZJyAvprRORT",
merchantId: "1318592501",
apiKey: "wx3e31b068be59ddc131b068be59ddc2",
groupQrCode: "",
groupQrCode: "/images/party-group-qr.png",
},
usdt: {
enabled: true,
enabled: false,
network: "TRC20",
address: "",
exchangeRate: 7.2,
@@ -263,8 +270,8 @@ const initialSettings: Settings = {
platform: "Soul派对房",
},
siteConfig: {
siteName: "卡若日记",
siteTitle: "一场SOUL的创业实验",
siteName: "一场soul的创业实验",
siteTitle: "一场soul的创业实验",
siteDescription: "来自Soul派对房的真实商业故事",
logo: "/logo.png",
favicon: "/favicon.ico",
@@ -277,7 +284,7 @@ const initialSettings: Settings = {
my: { enabled: true, label: "我的" },
},
pageConfig: {
homeTitle: "一场SOUL的创业实验",
homeTitle: "一场soul的创业实验",
homeSubtitle: "来自Soul派对房的真实商业故事",
chaptersTitle: "我要看",
matchTitle: "语音匹配",
@@ -296,6 +303,8 @@ export const useStore = create<StoreState>()(
settings: initialSettings,
login: async (phone: string, code: string) => {
// 真实场景下应该调用后端API验证验证码
// 这里暂时保留简单验证用于演示
if (code !== "123456") {
return false
}