mama-box: real 小程序授权入口 — box_app /mp/public/mama-box/profile/auth (code→手机号, 昵称, 头像落库); H5 我的页加『授权完善资料』(postMessage)

This commit is contained in:
2026-09-07 17:53:24 +08:00
parent 0c1f11ac6b
commit 95a25ad3c3
2 changed files with 18 additions and 0 deletions

View File

@@ -765,6 +765,15 @@
</div>
<div class="page-body no-top">
<!-- 授权完善资料:H5 → postMessage → 宿主小程序弹原生授权面板(手机号/昵称/头像) → box_app /profile/auth 落库 -->
<div class="list-card" style="margin-top:12px">
<button class="li ripple" id="meAuthCard">
<span class="li-ico o"><svg viewBox="0 0 24 24" width="19" height="19" aria-hidden="true"><rect x="5" y="10.5" width="14" height="9.5" rx="2.5" fill="none" stroke="currentColor" stroke-width="1.8"/><path d="M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/><path d="M12 15v2" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg></span>
<span class="li-t">授权完善资料</span>
<span class="li-v">获取手机号 / 昵称 / 头像</span>
<i class="chev">›</i>
</button>
</div>
<!-- ⚠️ 这两处的 data-modal 从 modalPreg 改成了 modalProfile:
「编辑孕期信息」那张弹窗已整个并进「我的资料」(见文件末尾那段说明)。
小名 / 性别 / 预产期现在只有一处能改,改完照样 syncPregnancy() 回刷这张卡。 -->