Files
qipai/docs/devlogs/2026-06-18-M03-C-地图选店与距离.md
T

30 lines
1.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.
# M03-C 地图选店与距离
- 日期:2026-06-18
- 起始 commit`9417064`
- 工程 commit:本阶段工程提交
- ENGINEERING_DELTA=YES
- 子阶段状态:待 push 与远端校验
## 工程增量
- 公开门店发现 API,按 AppID/tenant 绑定解析租户。
- 后端 Haversine 距离计算、最近门店排序和最大距离筛选。
- 城市、营业状态和实时营业中筛选。
- 按门店时区和每周营业时间计算营业状态,支持跨午夜。
- 小程序首页接入定位附近门店和手工城市查询;拒绝定位不会阻断选店。
## 验证
- Windows 全量 `npm test` 通过。
- 小程序 JSON 解析和 JavaScript 静态语法检查通过。
- WSL MySQL 8.4.9 `up → verify → down → up → verify` 通过。
- 迁移语句:up 46、verify 29、down 43。
- 实测同城筛选、距离排序、无匹配城市空结果。
## 影响
- 数据库迁移:`2026061809_m03c_store_discovery`
- 小程序新增固定域名门店查询封装。
- 无新增环境变量和秘密。