# farm-mobile **Repository Path**: ztcbaba/farm-mobile ## Basic Information - **Project Name**: farm-mobile - **Description**: 移动端/小程序 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-05-20 - **Last Updated**: 2026-05-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # farm-mobile 智慧农业移动端 — **自研 UI + UnoCSS** 路线(见 [DESIGN.md](./DESIGN.md))。 ## 阶段 B(当前) - **正式首页**:`/pages/home/index` — 自研 `Farm*` 组件,无 Wot/TDesign - 组件目录:`src/components/farm/`(`FarmHeader`、`FarmSummaryCard`、`FarmGreenhouseScroller` 等) - [DESIGN.md](./DESIGN.md):设计规范(单一事实来源) ## 阶段 A(已完成) - `src/styles/farm-tokens.scss`、`uno.config.ts` - `/pages/design-tokens/index` — Token 预览 ## 快速开始 ```bash npm install --cache ./.npm-cache npm run dev:h5 ``` 入口: 1. `/pages/home/index` — **农户首页(正式)** 2. `/pages/index/index` — 开发导航(样张 / Tokens) 3. `/pages/design-tokens/index` — Design Tokens 预览 4. `/pages/mockup-wot|tdesign/index` — 阶段 0 库对比(归档) ## 脚本 | 命令 | 说明 | |------|------| | `npm run dev:h5` | H5 预览 | | `npm run dev:mp-weixin` | 微信小程序 | | `npm run build:h5` | 构建验证 | | `npm run type-check` | TypeScript | ## 后续 - 补齐大棚实拍图至 `src/static/images/home/`(当前为 token 渐变占位) - 微信小程序 / Android 真机验收滚动与 Tab FAB - 按需卸载 `wot-design-uni`、`@tdesign/uniapp`(样张页仍引用时可保留)