nomadro/apps/miniprogram/weapp/README.md
Eric 3f7528f824 Add VIP knowledge community and device shop with native weapp UX.
Document memo/shop admin routes, deploy scripts, and cache-first feed performance in README.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 16:58:17 +08:00

29 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 微信 weapp
源码与 Taro H5 **共用** `../h5/src`(`sourceRoot: ../h5/src`)。
```bash
pnpm install
pnpm --dir apps/miniprogram/weapp build:weapp # 或根目录 pnpm build:weapp / dev:weapp
# 微信开发者工具打开本目录(读 dist/)
```
改页面请改 `apps/miniprogram/h5/src`,不要再复制一份 weapp/src。
## VIP(原生页,禁止 web-view)
对齐门户 / nomadvip:`vip` 落地 · `vip-course` 专题 · `vip-lesson` 课时 · `vip-ebook` 电子书 · **`vip-memo` 知识社群** · **`vip-store` 设备商城**。
`config/index.ts` 对 VIP / 商城 / 社群 scss 走 **真 px**(`pxExclude`),避免 `designWidth:750` 把字号压成一半。
| 页 | 说明 |
|----|------|
| `vip-memo` / `vip-memo-detail` | 知识星球风格:精华/收藏/Markdown;本地缓存秒开 + 静默刷新 |
| `vip-store` / `vip-store-detail` / `vip-store-orders` | 虚拟卡 + 实物;微信收货地址 |
电子书 / 课时内容从 `src/modules/vip/app/data` 抽取:
```bash
python apps/miniprogram/h5/scripts/extract-vip-ebooks.py
python apps/miniprogram/h5/scripts/extract-vip-lessons.py
```