feat: 小程序连接服务器IP + 同步未提交开发

- miniprogram/config.js: BASE_URL 指向 http://192.227.237.8:3001
- 动作标题中文化(nameZh),搜索匹配 name/nameZh/nameEn
- 新增计划/收藏/我的 等页面与组件
- 后端 Docker 化(Dockerfile/.dockerignore)与翻译脚本
- .gitignore 补充 .DS_Store
This commit is contained in:
2026-07-22 14:05:30 +08:00
parent b3b58e66fb
commit 70ff806042
79 changed files with 2397 additions and 146070 deletions

View File

@@ -1,12 +1,13 @@
Component({
properties: {
active: { type: String, value: 'home' } // 'home' | 'category' | 'plan'
active: { type: String, value: 'home' } // 'home' | 'category' | 'mine'
},
data: {
items: [
{ key: 'home', label: '首页', emoji: '🏠', page: '/pages/index/index' },
{ key: 'category', label: '分类', emoji: '📚', page: '/pages/category/category' },
{ key: 'plan', label: '计划', emoji: '📋', page: '/pages/collection/collection' }
{ key: 'plans', label: '计划', emoji: '📋', page: '/pages/my-plans/my-plans' },
{ key: 'mine', label: '我的', emoji: '👤', page: '/pages/profile/profile' }
]
},
methods: {

View File

@@ -9,6 +9,7 @@
z-index: 60;
}
.bn__item {
position: relative;
flex: 1;
display: flex;
flex-direction: column;
@@ -16,6 +17,15 @@
padding: 16rpx 0 14rpx;
color: var(--text-3);
}
.bn__item--active::before {
content: '';
position: absolute;
top: 0; left: 50%;
transform: translateX(-50%);
width: 48rpx; height: 4rpx;
border-radius: 999rpx;
background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.bn__item--active { color: var(--gold); }
.bn__emoji { font-size: 40rpx; line-height: 1; }
.bn__label { font-size: 22rpx; margin-top: 6rpx; }