Files
soul-yongping/.cursor/agent/小程序开发工程师/evolution/2026-02-28.md

32 lines
2.0 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.

# 小程序开发工程师 经验记录 - 2026-02-28
## stitch_soul 需求评审会议
- **页面范围**:首页、目录、导师列表/详情、会员落地页、个人资料/编辑;全部接口走 `/api/miniprogram/*`
- **支付**:会员购买、导师预约支付需按微信支付规范实现。
- **时机**:待需求与接口确定后按优先级分阶段排期(建议:内容→会员→导师→资料编辑)。
## 个人资料页实现评估会议
- **profile-show**:已按 enhanced_professional_profile 完成accent #5EEAD4profile-edit 需与其视觉统一。
- **profile-edit 待做**:① 增加「我擅长」输入框skills 后端已支持);② 配色统一为 enhanced#5EEAD4 / #050B14 / #0F1720)。
- **流程**:我的 → profile-show → ⋯ 编辑 → profile-edit → 保存 → 返回;已打通,无需改。
## input/textarea padding 规范
- **原则**:给 input 或 textarea 设置 padding 时,必须用 view 包裹padding 写在 view 上;不在 input/textarea 自身上设 padding避免原生组件光标截断、布局异常。
- **口诀**:外边包 view内部 input width 100%。
- **已升级**miniprogram-dev SKILL §6 加入口诀admin-dev §4.1 同步补充。
## 找伙伴-资源对接弹窗 input 边距修正
- **问题**:弹窗内 input 文字贴边padding 直接写在 input 上导致布局异常。
- **正确做法**:按 Skill §6用 view 包裹padding 写 view内部 input 设 `width: 100%`
- **修改**match 页资源对接两个输入框 + 联系方式输入框,统一改为 `form-input-wrap` + `form-input-inner` / `input-field-wrap` + `input-field-inner` 结构。
## 文章类型(普通版/增值版)需求分析会议
- **选购**:目录/书籍页区分普通版 9.9 与增值版(基础价 + 增值章按章付费)。
- **解锁**:进入增值章节未购时展示「该章需额外 ¥X.X 解锁」,点击发起支付。
- **依赖**purchase-status 需返回 editionType、premiumPurchasedSections。