From cc750dc1d6ed998477bef604f4e4499d977a85b2 Mon Sep 17 00:00:00 2001 From: jacy <18049821889@163.com> Date: Mon, 17 Aug 2026 21:34:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20v3.4.18=20=E9=97=A8=E5=BA=97=E4=BD=93?= =?UTF-8?q?=E9=AA=8C=E4=B8=8E=E7=99=BB=E5=BD=95=E6=80=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - mini-user 门店座机电话中间四位脱敏(保留区号与前后位) - mini-user 套餐详情图增加 1/N 计数与自动轮播 - h5-partner 账号暂停(DISABLED)禁止登录并提示客服 - h5-shop 提现/筛选栏左右留白与页面一致 - h5-shop 休息中核销改为弹「是否开启营业」并支持开张后继续 Co-Authored-By: WorkBuddy --- apps/h5-partner/src/pages/LoginPage.tsx | 16 ++- apps/h5-shop/src/pages/PhoneRedeemPage.tsx | 74 +++++++++++--- apps/h5-shop/src/pages/RedeemConfirmPage.tsx | 66 +++++++++++-- apps/h5-shop/src/styles.css | 74 +++++++++++++- .../src/components/ProductCarousel.tsx | 4 + apps/mini-user/src/lib/phone.ts | 15 ++- apps/mini-user/src/styles/product-detail.css | 14 +++ apps/mini-user/src/styles/store-detail.css | 15 +++ .../src/modules/iam/auth.service.ts | 6 +- 杜康好客-v3.4.18-门店体验与登录态优化.md | 98 +++++++++++++++++++ 10 files changed, 351 insertions(+), 31 deletions(-) create mode 100644 杜康好客-v3.4.18-门店体验与登录态优化.md diff --git a/apps/h5-partner/src/pages/LoginPage.tsx b/apps/h5-partner/src/pages/LoginPage.tsx index 6c958ec..640338e 100644 --- a/apps/h5-partner/src/pages/LoginPage.tsx +++ b/apps/h5-partner/src/pages/LoginPage.tsx @@ -71,16 +71,24 @@ function formatPartnerError(e: unknown): string { if (text.includes('合伙人账号不存在') || text.includes('未找到合伙人账号')) { return '未找到合伙人账号'; } - if (text.includes('合伙人账号已停用') || text.includes('账号已停用')) { - return '合伙人账号已暂停,无法登录'; + if ( + text.includes('合伙人账号已停用') || + text.includes('账号已停用') || + text.includes('暂停使用') + ) { + return '该账号已暂停使用,请联系客服人员'; } return text; } function formatWechatError(e: unknown): string { const text = e instanceof Error ? e.message : '微信登录失败'; - if (text.includes('合伙人账号已停用') || text.includes('账号已停用')) { - return '合伙人账号已暂停,无法登录'; + if ( + text.includes('合伙人账号已停用') || + text.includes('账号已停用') || + text.includes('暂停使用') + ) { + return '该账号已暂停使用,请联系客服人员'; } if (text.includes('首次登录') || text.includes('手机验证码')) { return '该微信尚未绑定合伙人账号,请先使用手机验证码登录,登录后将自动关联微信'; diff --git a/apps/h5-shop/src/pages/PhoneRedeemPage.tsx b/apps/h5-shop/src/pages/PhoneRedeemPage.tsx index db418ba..9b4d677 100644 --- a/apps/h5-shop/src/pages/PhoneRedeemPage.tsx +++ b/apps/h5-shop/src/pages/PhoneRedeemPage.tsx @@ -20,6 +20,8 @@ export default function PhoneRedeemPage() { const [msg, setMsg] = useState(''); const [loading, setLoading] = useState(false); const [confirmCooldown, setConfirmCooldown] = useState(0); + const [showOpenModal, setShowOpenModal] = useState(false); + const [opening, setOpening] = useState(false); useEffect(() => { request>('SHOP_H5', '/shop/store') @@ -36,15 +38,7 @@ export default function PhoneRedeemPage() { return () => window.clearTimeout(timer); }, [confirmCooldown]); - async function sendConfirmSms() { - if (!/^1\d{10}$/.test(phone.trim())) { - setMsg('请输入正确的手机号'); - return; - } - if (storeClosed) { - setMsg('门店未营业,无法核销'); - return; - } + async function prepareDirectRedeem() { const value = Number(amount); if (!Number.isFinite(value) || value <= 0) { setMsg('请输入有效核销金额'); @@ -69,6 +63,37 @@ export default function PhoneRedeemPage() { } } + async function sendConfirmSms() { + if (!/^1\d{10}$/.test(phone.trim())) { + setMsg('请输入正确的手机号'); + return; + } + if (storeClosed) { + setShowOpenModal(true); + return; + } + await prepareDirectRedeem(); + } + + async function openStoreAndContinue() { + if (opening) return; + setOpening(true); + try { + await request('SHOP_H5', '/shop/store/status', { + method: 'PUT', + body: JSON.stringify({ status: 'OPEN' }), + }); + setStoreClosed(false); + setShowOpenModal(false); + await prepareDirectRedeem(); + } catch (e) { + setShowOpenModal(false); + setMsg(e instanceof Error ? e.message : '开启营业失败'); + } finally { + setOpening(false); + } + } + async function confirmRedeem() { if (!prepared) { setMsg('请先发送核销验证码'); @@ -114,7 +139,7 @@ export default function PhoneRedeemPage() {
{storeClosed && ( -

门店当前未营业,无法核销

+

门店当前休息中(未营业),暂不支持核销

)}
@@ -181,7 +206,7 @@ export default function PhoneRedeemPage() {
+ + {showOpenModal && ( +
+
+

是否开启营业?

+

门店当前休息中,开启营业后即可继续核销。

+
+ + +
+
+
+ )} ); } diff --git a/apps/h5-shop/src/pages/RedeemConfirmPage.tsx b/apps/h5-shop/src/pages/RedeemConfirmPage.tsx index 8cf8bcd..ee198a4 100644 --- a/apps/h5-shop/src/pages/RedeemConfirmPage.tsx +++ b/apps/h5-shop/src/pages/RedeemConfirmPage.tsx @@ -29,6 +29,8 @@ export default function RedeemConfirmPage() { const [storeClosed, setStoreClosed] = useState(false); const [failCount, setFailCount] = useState(0); const [showWeakNet, setShowWeakNet] = useState(false); + const [showOpenModal, setShowOpenModal] = useState(false); + const [opening, setOpening] = useState(false); useEffect(() => { request>('SHOP_H5', '/shop/store') @@ -71,11 +73,7 @@ export default function RedeemConfirmPage() { }); }, [token]); - async function confirm() { - if (storeClosed) { - setMsg('门店未营业,无法核销'); - return; - } + async function doConfirm() { if (!token.trim()) { setMsg('请先扫码获取核销码'); return; @@ -103,6 +101,33 @@ export default function RedeemConfirmPage() { } } + async function confirm() { + if (storeClosed) { + setShowOpenModal(true); + return; + } + await doConfirm(); + } + + async function openStoreAndContinue() { + if (opening) return; + setOpening(true); + try { + await request('SHOP_H5', '/shop/store/status', { + method: 'PUT', + body: JSON.stringify({ status: 'OPEN' }), + }); + setStoreClosed(false); + setShowOpenModal(false); + await doConfirm(); + } catch (e) { + setShowOpenModal(false); + setMsg(e instanceof Error ? e.message : '开启营业失败'); + } finally { + setOpening(false); + } + } + const previewAmount = preview?.amount ?? 0; const userLabel = preview?.user?.nickname || preview?.user?.phone || '—'; @@ -117,7 +142,7 @@ export default function RedeemConfirmPage() {
{storeClosed && ( -

门店当前未营业,无法核销

+

门店当前休息中(未营业),暂不支持核销

)}
@@ -189,7 +214,7 @@ export default function RedeemConfirmPage() {
+ + {showOpenModal && ( +
+
+

是否开启营业?

+

门店当前休息中,开启营业后即可继续核销。

+
+ + +
+
+
+ )} ); } diff --git a/apps/h5-shop/src/styles.css b/apps/h5-shop/src/styles.css index 3fa354b..765e9c0 100644 --- a/apps/h5-shop/src/styles.css +++ b/apps/h5-shop/src/styles.css @@ -1519,6 +1519,7 @@ z-index: 40; background: var(--color-surface); border-bottom: 1px solid var(--color-surface-container-highest); + padding: 0 var(--space-page); } .shop-records-range-tabs { @@ -1897,8 +1898,8 @@ } .shop-withdraw-btn { - width: 100%; - margin-top: 12px; + width: calc(100% - 2 * var(--space-page)); + margin: 12px var(--space-page) 0; height: 44px; border: none; border-radius: 12px; @@ -1916,11 +1917,80 @@ .shop-withdraw-msg { margin-top: 10px; + padding: 0 var(--space-page); font-size: 13px; color: var(--color-aged-amber); text-align: center; } +/* ─── 休息中核销·开张确认弹窗 ─── */ +.shop-redeem-modal { + position: fixed; + inset: 0; + z-index: 1000; + display: flex; + align-items: center; + justify-content: center; + padding: 24px; + background: rgba(0, 0, 0, 0.45); +} + +.shop-redeem-modal-card { + width: 100%; + max-width: 320px; + background: var(--color-surface); + border-radius: var(--radius-lg, 16px); + padding: 24px; + box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); +} + +.shop-redeem-modal-title { + margin: 0 0 8px; + font-family: var(--font-headline); + font-size: 17px; + font-weight: 600; + color: var(--color-on-surface); +} + +.shop-redeem-modal-desc { + margin: 0 0 20px; + font-size: 14px; + line-height: 1.5; + color: var(--color-on-surface-variant); +} + +.shop-redeem-modal-actions { + display: flex; + gap: 12px; +} + +.shop-redeem-modal-cancel, +.shop-redeem-modal-confirm { + flex: 1; + padding: 11px 0; + border: none; + border-radius: 999px; + font-size: 15px; + font-weight: 600; + cursor: pointer; +} + +.shop-redeem-modal-cancel { + background: var(--color-surface-container, #ececec); + color: var(--color-on-surface-variant); +} + +.shop-redeem-modal-confirm { + background: var(--color-primary, #8b1a1a); + color: #fff; +} + +.shop-redeem-modal-cancel:disabled, +.shop-redeem-modal-confirm:disabled { + opacity: 0.6; + cursor: not-allowed; +} + /* ─── 门店套餐 ─── */ .shop-packages-page .shop-records-main { padding-bottom: 24px; diff --git a/apps/mini-user/src/components/ProductCarousel.tsx b/apps/mini-user/src/components/ProductCarousel.tsx index bb6809a..4b53f86 100644 --- a/apps/mini-user/src/components/ProductCarousel.tsx +++ b/apps/mini-user/src/components/ProductCarousel.tsx @@ -38,6 +38,7 @@ export default function ProductCarousel({ 1} + {...(variant === 'detail' && slides.length > 1 ? { autoplay: true, interval: 3500 } : {})} onChange={(e) => setActiveIndex(e.detail.current)} > {slides.map((src, index) => ( @@ -66,6 +67,9 @@ export default function ProductCarousel({ ))} ) : null} + {variant === 'detail' && slides.length > 1 ? ( + {activeIndex + 1}/{slides.length} + ) : null} ); } diff --git a/apps/mini-user/src/lib/phone.ts b/apps/mini-user/src/lib/phone.ts index bcc8f62..d977818 100644 --- a/apps/mini-user/src/lib/phone.ts +++ b/apps/mini-user/src/lib/phone.ts @@ -26,7 +26,7 @@ function normalizeContactPhone(raw: string): string { } /** - * 脱敏展示:手机 138****8000;座机保留区号,如 0379-****888。 + * 脱敏展示:手机 138****8000;座机隐藏本地号中间四位,如 0379-12****78。 * 门店详情电话展示用(拨号仍走 toDialablePhone 明文)。 */ export function maskPhone(phone: string) { @@ -45,9 +45,16 @@ export function maskPhone(phone: string) { const areaLen = digits.startsWith('01') || digits.startsWith('02') ? 3 : 4; const area = digits.slice(0, areaLen); const local = digits.slice(areaLen); - const keepTail = Math.min(4, Math.max(2, local.length - 4)); - const maskedLocal = - local.length <= 4 ? '*'.repeat(local.length) : `${'*'.repeat(local.length - keepTail)}${local.slice(-keepTail)}`; + // 隐藏本地号中间四位(保留区号,本号前后各留若干位):0379-12345678 → 0379-12****78 + let maskedLocal: string; + if (local.length <= 4) { + maskedLocal = '*'.repeat(local.length); + } else { + const keep = local.length - 4; + const head = Math.max(1, Math.floor(keep / 2)); + const tail = keep - head; + maskedLocal = `${local.slice(0, head)}${'*'.repeat(4)}${local.slice(local.length - tail)}`; + } const joiner = main.includes('-') ? '-' : ''; return ext ? `${area}${joiner}${maskedLocal}-${ext}` : `${area}${joiner}${maskedLocal}`; } diff --git a/apps/mini-user/src/styles/product-detail.css b/apps/mini-user/src/styles/product-detail.css index e115655..a40747f 100644 --- a/apps/mini-user/src/styles/product-detail.css +++ b/apps/mini-user/src/styles/product-detail.css @@ -57,6 +57,20 @@ background: var(--color-heritage-red); } +.detail-carousel-counter { + position: absolute; + right: 12px; + bottom: 12px; + z-index: 2; + padding: 2px 10px; + font-size: 12px; + line-height: 1.5; + color: #fff; + background: rgba(0, 0, 0, 0.5); + border-radius: 999px; + pointer-events: none; +} + .product-detail-info { padding: var(--space-md) var(--space-page) var(--space-lg); } diff --git a/apps/mini-user/src/styles/store-detail.css b/apps/mini-user/src/styles/store-detail.css index 327c4fe..ef4e2ce 100644 --- a/apps/mini-user/src/styles/store-detail.css +++ b/apps/mini-user/src/styles/store-detail.css @@ -74,6 +74,21 @@ background: #fff; } +/* 套餐详情图右下角 1/N 计数(detail 变体复用 .detail-carousel-counter) */ +.detail-carousel-counter { + position: absolute; + right: 12px; + bottom: 12px; + z-index: 2; + padding: 2px 10px; + font-size: 12px; + line-height: 1.5; + color: #fff; + background: rgba(0, 0, 0, 0.5); + border-radius: 999px; + pointer-events: none; +} + .store-detail-info-card { margin: 0 var(--space-page) 16px; position: relative; diff --git a/server/dukang-api/src/modules/iam/auth.service.ts b/server/dukang-api/src/modules/iam/auth.service.ts index 6e6dd25..eee1a1c 100644 --- a/server/dukang-api/src/modules/iam/auth.service.ts +++ b/server/dukang-api/src/modules/iam/auth.service.ts @@ -309,7 +309,7 @@ export class AuthService { where: { phone }, }); if (!account) throw new BadRequestException('未找到合伙人账号'); - if (account.status !== 'ACTIVE') throw new BadRequestException('合伙人账号已停用'); + if (account.status !== 'ACTIVE') throw new BadRequestException('该账号已暂停使用,请联系客服人员'); return account; } @@ -1061,7 +1061,7 @@ export class AuthService { where: { phone: normalizedPhone }, }); if (!account) throw new BadRequestException('未找到合伙人账号'); - if (account.status !== 'ACTIVE') throw new BadRequestException('合伙人账号已停用'); + if (account.status !== 'ACTIVE') throw new BadRequestException('该账号已暂停使用,请联系客服人员'); await this.syncTestFlagByPhone(normalizedPhone); const primary = await this.resolvePrimaryAccount(account.id); await this.prisma.partnerAccount.update({ @@ -1724,7 +1724,7 @@ export class AuthService { } if (account.status !== 'ACTIVE') { - throw new BadRequestException('合伙人账号已停用'); + throw new BadRequestException('该账号已暂停使用,请联系客服人员'); } account = await this.prisma.partnerAccount.update({ diff --git a/杜康好客-v3.4.18-门店体验与登录态优化.md b/杜康好客-v3.4.18-门店体验与登录态优化.md new file mode 100644 index 0000000..d667369 --- /dev/null +++ b/杜康好客-v3.4.18-门店体验与登录态优化.md @@ -0,0 +1,98 @@ +# 杜康好客 · v3.4.18 门店体验与登录态优化 + +> **2026-08-17** · mini-user `3.4.18` / h5-partner / h5-shop / API +> 目标:用户小程序端门店电话与套餐图体验优化;城市合伙人「暂停」账号禁止登录;门店端结算页留白对齐与「休息中能否开张核销」交互。 + +## 范围 + +| 项 | 交付 | +|----|------| +| A. mini-user 门店座机电话脱敏 | `maskPhone` 统一「中间四位隐藏」;门店详情已调用 | +| B. mini-user 套餐详情图 1/5 + 自动轮播 | `ProductCarousel` detail 变体 autoplay + 右下角 `1/5` 计数 | +| C. 合伙人账号暂停禁止登录 | 非 `ACTIVE` → 登录/发码均拒,提示「该账号已暂停使用,请联系客服人员」 | +| D. 门店端 申请提现 / 筛选栏留白对齐 | `WithdrawPage` 左右内边距统一 `--space-page` | +| E. 门店端 休息中核销 → 是否开启营业 | 核销页拦截时弹「是否开启营业?」,确认即开张后继续核销 | + +## A. mini-user 门店座机电话脱敏(中间四位隐藏) + +门店对外电话 `store.phone`(= `contactPhone ?? loginPhone`,见 `server/.../common/compat/v31-compat.ts` 的 `resolveStoreContactPhone`)在门店详情以「电话: {maskPhone(...)}」展示(`apps/mini-user/src/pages/store-detail/index.tsx` ~L393-402)。 + +- 脱敏规则(座机):`区号 + 本地号前 2 位 + **** + 本地号后 2 位`,隐藏本地号中间四位。 + - `0379-12345678` → `0379-12****78` + - `010-87654321` → `010-87****21` + - 无分机同理;手机号仍按 `138****8000` 不变。 +- 实现点:`apps/mini-user/src/lib/phone.ts` 的 `maskPhone` 座机分支(当前保留末 2~4 位)→ 改为保留首 2 + 末 2、中间以 `****` 替代。 +- 拨号仍走 `toDialablePhone`(明文),不受脱敏影响。 +- 无 Prisma / API 变更;仅前端 `maskPhone` 规则调整。 + +## B. mini-user 套餐详情图 1/5 计数 + 自动轮播 + +入口:`apps/mini-user/src/pages/store-package-detail/index.tsx` 渲染 +``,图片来自 `GET /stores/:id` 的 `packages[index].imageUrls`(最多 20 张,由 `normalizeStorePackageImageUrls` 归一化)。 + +- 组件:`apps/mini-user/src/components/ProductCarousel.tsx` + - `variant='detail'` 时给 `` 增加 `autoplay` + `interval`(建议 3500ms),仅 `slides.length > 1` 时生效(现有 `circular` 已满足)。 + - 右下角叠加分页计数:`${activeIndex + 1}/${slides.length}`(白底圆角胶囊,绝对定位于 `.detail-carousel-wrap` 右下角);保留原居中圆点(dots)或改为以右下计数为主。 + - 单图(`slides.length === 1`)不展示计数、不开轮播。 +- 图片容器 `.store-package-detail-gallery` 预留右下角定位锚点(如需)。 +- 无 API / schema 变更。 + +## C. 合伙人账号暂停禁止登录 + +- 后端 `POST /partner/auth/login/sms`(`server/.../modules/iam/auth.service.ts` 的 `loginPartner` ~L1063、`assertPartnerAccountByPhone` ~L307):账号 `status !== 'ACTIVE'` 时当前抛「合伙人账号已停用」。 + - 改为抛出:`该账号已暂停使用,请联系客服人员`。 + - 同时覆盖发码预检 `assertSmsSendAllowed`(PARTNER_LOGIN 场景 ~L341)与 `checkPartnerPhone`,使「暂停」账号无法获取短信验证码。 +- 前端 `apps/h5-partner/src/pages/LoginPage.tsx`: + - `formatPartnerError`(~L69):命中「已暂停 / 已停用」分支时返回 `该账号已暂停使用,请联系客服人员`。 + - `formatWechatError`(~L80):同上,覆盖微信登录路径。 +- 枚举现状:`AccountStatus` 仅 `ACTIVE` / `DISABLED`(`schema.prisma` ~L244)。本次**复用 `DISABLED` 即视为暂停**,不新增枚举,避免迁移;若后续需区分「暂停(可恢复)」与「停用(永久)」,再评估新增 `SUSPENDED`。 +- 统一文案:`该账号已暂停使用,请联系客服人员`。 + +## D. 门店端 申请提现 / 筛选栏左右留白对齐 + +页面:`apps/h5-shop/src/pages/WithdrawPage.tsx`(门店管理 / 结算提现)。 + +- 申请提现按钮 `.shop-withdraw-btn`(~L135):当前 `width:100%; margin-top:12px`,置于 `.shop-records-main`(无左右 padding)内,贴边满宽。 +- 下方筛选栏 `.shop-records-filters`(~L147,`position: sticky; top:0`)与 `.shop-records-status-chips`:当前左右 `padding:0`,chips 贴屏幕边缘。 +- 同页 `.shop-records-summary` / `.shop-records-list` / `.shop-records-list-head` 均使用页面级 token `var(--space-page)` 左右内缩。 +- 改动:`.shop-records-filters` 增加 `padding: 0 var(--space-page)`(sticky 背景保留);申请提现按钮区域同样左右内缩 `var(--space-page)`(或其父容器加 `padding: 0 var(--space-page)`),使其与上下组件留白一致。仅样式调整,无逻辑 / API 变更。 + +## E. 门店端 休息中核销 → 是否开启营业 + +现状:`PhoneRedeemPage.tsx` / `RedeemConfirmPage.tsx` 拉取 `GET /shop/store`,`status !== 'OPEN'` 时 `storeClosed=true`,核销前拦截并报「门店未营业,无法核销」(服务端 `server/.../modules/redeem/redeem.service.ts` 的 `loadOpenStoreAccount` ~L117 亦硬校验「门店未营业」)。 + +- 新交互:当 `storeClosed`(门店 PAUSED / 休息中)且用户尝试核销时,**不再仅提示无法核销**,而是弹确认框「是否开启营业?」: + - 确认 → 调用 `PUT /shop/store/status { status: 'OPEN' }`(复用 `StatusPage.tsx` 的 `requestToggle`/`confirmToggle` 调用方式),成功后 `setStoreClosed(false)`,放开核销、继续原流程(重新拉取或直接使用已输入金额 / 券码)。 + - 取消 → 维持 `storeClosed`,不放开。 +- 边界:门店 `auditStatus !== 'APPROVED'` 时 `updateShopStatus` 会拒绝开张(抛「门店尚在总部审核中 / 审核未通过」),前端需捕获并提示该错误,不进入误开启。 +- 适用页:`PhoneRedeemPage`(手机号核销)、`RedeemConfirmPage`(扫码核销确认);`HomePage` 扫码入口本身不判状态,保持现状。 +- 后端无需改动(开张接口与硬校验已存在)。 + +## 关键接口 / 文件 + +| 位置 | 说明 | +|------|------| +| `apps/mini-user/src/lib/phone.ts` `maskPhone` | 座机脱敏规则改为「中间四位隐藏」 | +| `apps/mini-user/src/pages/store-detail/index.tsx` | 门店详情电话展示(已用 maskPhone) | +| `apps/mini-user/src/components/ProductCarousel.tsx` | detail 变体 autoplay + 右下 `1/5` 计数 | +| `apps/mini-user/src/pages/store-package-detail/index.tsx` | 套餐详情图渲染 | +| `GET /stores/:id` | 门店 / 套餐数据(无变更) | +| `server/.../modules/iam/auth.service.ts` `loginPartner` / `assertPartnerAccountByPhone` / `assertSmsSendAllowed` | 合伙人登录 / 发码非 ACTIVE 抛「该账号已暂停使用,请联系客服人员」 | +| `apps/h5-partner/src/pages/LoginPage.tsx` `formatPartnerError` / `formatWechatError` | 暂停文案 | +| `apps/h5-shop/src/pages/WithdrawPage.tsx` + `styles.css` `.shop-records-filters` / `.shop-records-status-chips` / `.shop-withdraw-btn` | 左右留白对齐 `--space-page` | +| `apps/h5-shop/src/pages/PhoneRedeemPage.tsx` / `RedeemConfirmPage.tsx` | 休息中弹「是否开启营业?」 | +| `apps/h5-shop/src/pages/StatusPage.tsx` `requestToggle` / `confirmToggle` | 复用开张调用 | +| `PUT /shop/store/status` `GET /shop/store` | 切换营业 / 读取门店(已存在) | + +## 验收 + +- [ ] 门店详情座机显示形如 `0379-12****78`(中间四位隐藏),手机号仍 `138****8000`;拨打为明文。 +- [ ] 套餐详情图多张时右下角显示 `1/5` 分页计数,并自动轮播(约 3.5s 切换);单图不计数、不轮播;点击仍可预览。 +- [ ] 合伙人账号处于非 ACTIVE(暂停 / 停用)时:短信登录与微信登录均被拦截,提示「该账号已暂停使用,请联系客服人员」,无法进入。 +- [ ] 门店管理(结算提现)页:申请提现按钮与筛选栏左右留白与其他区块一致(统一 `--space-page`),不再贴边。 +- [ ] 门店休息中时进入核销:弹「是否开启营业?」;确认开张后可继续核销;取消则维持拦截;未过审门店开张被拒时给出对应提示。 +- [ ] A 仅 `maskPhone` 规则、C/D/E 仅前端样式 / 交互;均无需 Prisma 迁移(C 复用 `DISABLED`)。 + +## HQ 开发计划 + +创建版本 `v3.4.18` 并关联本迭代任务;发版前再合并发布(mini-user 升 `3.4.18`)。