diff --git a/index.html b/index.html index e8665a3..dff4b74 100644 --- a/index.html +++ b/index.html @@ -2,12 +2,12 @@ - + 兜爸心选 · 孕育陪伴 - + diff --git a/js/app.js b/js/app.js index 9685fc8..e02f5c9 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26100104'; + var VER = '26100105'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); @@ -2983,6 +2983,12 @@ if (c) c.textContent = state.kickQuick || 0; } + /* 禁止双指缩放(2026-10-01 用户要求首页固定)。iOS 微信会忽略 viewport 的 user-scalable=no, + 所以再拦一道:iOS 的 gesture 事件 + 多指 touchmove;双击放大由 CSS touch-action:manipulation 处理。 */ + (function noZoom() { + ['gesturestart', 'gesturechange', 'gestureend'].forEach(t => document.addEventListener(t, e => e.preventDefault(), { passive: false })); + document.addEventListener('touchmove', e => { if (e.touches.length > 1) e.preventDefault(); }, { passive: false }); + })(); /* ================= 首页「孕育工具」卡片(box_app 封装数胎动平台数据,2026-09-22) ================= 数据源:GET /api/mp/public/mama-box/tool-cards(box_app 归一化后的稳定契约; 上游是数胎动平台的 GET /taidong/api/user/app-cards,H5 不直连、也不持有上游 token)。 diff --git a/mama-box.css b/mama-box.css index b2403bc..2cfe5e9 100644 --- a/mama-box.css +++ b/mama-box.css @@ -91,7 +91,7 @@ em{font-style:normal} /* ---------- 无障碍 / 触控 / 动效(WK 审计补齐) ---------- */ html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%} -body,button,a,input,textarea,select{-webkit-touch-callout:none;touch-action:manipulation} +html,body,button,a,input,textarea,select{-webkit-touch-callout:none;touch-action:manipulation} button,a,input,textarea,select,summary,[tabindex]{transition:box-shadow .15s ease} :focus{outline:none} :focus-visible{outline:3px solid rgba(244,89,60,.55);outline-offset:2px;border-radius:6px}