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

816 B
Raw Blame History

微信 weapp

源码与 Taro H5 共用 ../h5/src(sourceRoot: ../h5/src)。

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 抽取:

python apps/miniprogram/h5/scripts/extract-vip-ebooks.py
python apps/miniprogram/h5/scripts/extract-vip-lessons.py