Freeze pre4 as the in-review weapp package; document pre5 as the next iteration branch. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
735 B
Plaintext
18 lines
735 B
Plaintext
---
|
||
description: 多端 UI 比例铁律 — Web/微信/抖音/小红书;禁止把 Web px 弹窗原样搬进小程序
|
||
alwaysApply: true
|
||
---
|
||
|
||
# 多端 UI 比例(强制)
|
||
|
||
**Web 只参考结构;尺寸必须按端适配。** 详情见 `.cursor/skills/multi-platform-ui-scale/SKILL.md`。
|
||
|
||
| 端 | 要点 |
|
||
|----|------|
|
||
| Web VIP | 可居中 `max-w-[400px]` |
|
||
| Taro H5/weapp/tt/xhs | `designWidth: 750`;**裸 `px` → rpx 会缩水**;弹窗/表单用 **`rem` 或 `rpx`** |
|
||
| 小程序弹窗 | **全宽底栏** + 触控 ≥44px;勿抄 Web 桌面小卡片 |
|
||
|
||
反模式:VIP LoginModal 在微信里变成拇指盖大的居中框。
|
||
正确参考:`apps/miniprogram/h5/src/components/VipLoginModal.scss`、`vip-landing.scss`。
|