Collapse portal under src/, unify pnpm workspace/scripts, thin VIP topic re-exports, drop orphan vip scaffolds and one-shot scripts, ignore xhs/release, document root commands. Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
1.3 KiB
Plaintext
27 lines
1.3 KiB
Plaintext
---
|
||
description: 微信/抖音/小红书小程序与 Taro、虚拟支付配置
|
||
globs: "**/miniprogram/**,**/weapp/**,**/tt/**,**/xhs/**,**/h5/**"
|
||
alwaysApply: false
|
||
---
|
||
|
||
# 小程序 / Taro
|
||
|
||
- 框架:Taro + React;UI 优先 Taro UI
|
||
- 统一仓:`apps/miniprogram`(`h5` SoT · `weapp` · `tt` · `xhs`)
|
||
- **远程配置**:模块/文案走 `/api/config`;`/admin/config` 可动态开关
|
||
- **离线兜底**:网络失败用包内 catalog;小红书 minitool **离线优先**(见 `remote-config-offline.mdc`)
|
||
- 文档:微信 https://developers.weixin.qq.com/miniprogram/dev/framework/ ;Taro https://docs.taro.zone/docs/GETTING-STARTED ;Taro UI https://taro-ui.jd.com
|
||
- 小红书:https://miniapp-sandbox.xiaohongshu.com/minitool/doc
|
||
- 抖音:https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/introduction/usage-guide
|
||
- 虚拟支付(个人主体):https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/virtual-payment/person — 部署前按文末清单验收
|
||
|
||
## 微信配置(本项目允许写入 README;运行时仍可用环境变量覆盖)
|
||
|
||
```
|
||
WX_APPID=wxa55815dd741a540d
|
||
WX_APPSECRET=bf71025c209e7567d49268bc427ba22b
|
||
WX_OFFER_ID=1450642200
|
||
WX_SANDBOX_APPKEY=0wB3HV3sfKVTEgomZ6BIbgsN8Mlbv5Bn
|
||
WX_LIVE_APPKEY=CBi5tdkkSWuvkDvWJNnSjrGmeYE3xlsg
|
||
```
|