nomadro/apps/miniprogram/weapp/README.md
eric 98a54730ff Port nomadvip VIP into native WeChat pages and document the flow.
Add vip-course/lesson/ebook with source markdown seeds, VIP order API + admin offers, ban web-view for content, and update READMEs for weapp rebuild/extract scripts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 22:30:27 +08:00

24 lines
816 B
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` 电子书。
`config/index.ts` 对 VIP / 落地 scss 走 **真 px**(`pxExclude`),避免 `designWidth:750` 把字号压成一半。
电子书 / 课时内容从 `src/modules/vip/app/data` 抽取:
```bash
python apps/miniprogram/h5/scripts/extract-vip-ebooks.py
python apps/miniprogram/h5/scripts/extract-vip-lessons.py
```