diff --git a/apps/h5-partner/src/PartnerAppRoutes.tsx b/apps/h5-partner/src/PartnerAppRoutes.tsx index 981ab3f..4b4f3d4 100644 --- a/apps/h5-partner/src/PartnerAppRoutes.tsx +++ b/apps/h5-partner/src/PartnerAppRoutes.tsx @@ -50,10 +50,11 @@ function SubAccountRoutes() { }> } /> - } /> } /> } /> + {/* 与主账号一致:录入门店全屏,避免 sticky 底栏被 TabBar 挡住 */} + } /> } /> ); diff --git a/apps/h5-partner/src/pages/PartnerMePage.tsx b/apps/h5-partner/src/pages/PartnerMePage.tsx index d3f53e8..b93cb88 100644 --- a/apps/h5-partner/src/pages/PartnerMePage.tsx +++ b/apps/h5-partner/src/pages/PartnerMePage.tsx @@ -1,4 +1,5 @@ import { useEffect, useState } from 'react'; +import { Link } from 'react-router-dom'; import { PARTNER_STAFF_ROLE_LABELS, type PartnerStaffRole } from '@dukang/shared-types'; import { request } from '../lib/api'; import { usePartnerSession } from '../contexts/PartnerSessionContext'; @@ -43,59 +44,91 @@ export default function PartnerMePage() { } return ( -
-
+
+
+

杜康好客

+
+ +
person
-

{account?.name || '我的'}

-

{roleLabel}

- {account?.companyName ? ( -

{account.companyName}

- ) : null} +
+

{account?.name || '合伙人'}

+ {roleLabel} +
+
+ location_on + {account?.companyName || '—'} +
+

{account?.phone || ''}

-
- - setName(e.target.value)} - placeholder="请输入姓名" - maxLength={32} - /> +
+

账号资料

+
+ + setName(e.target.value)} + placeholder="请输入姓名" + maxLength={32} + /> - - -

手机号由管理员维护,如需修改请联系总部

+ + +

+ 手机号由管理员维护,如需修改请联系总部 +

+ + +
-
- - +
+

快捷入口

+
+ +
+
store
+ 门店管理 +
+ chevron_right + + +
+
add_business
+ 录入新门店 +
+ chevron_right + +
+
+ + + +
+

传承千年 · 杜康好客

); diff --git a/apps/h5-partner/src/pages/StoreCreatePage.tsx b/apps/h5-partner/src/pages/StoreCreatePage.tsx index 51d01cc..363c0f4 100644 --- a/apps/h5-partner/src/pages/StoreCreatePage.tsx +++ b/apps/h5-partner/src/pages/StoreCreatePage.tsx @@ -20,7 +20,6 @@ import { fetchPartnerCities, type OpenCityOption } from '../lib/upload'; import { isWechatEnv, weixinSdk } from '../lib/weixin'; import { usePartnerSession } from '../contexts/PartnerSessionContext'; -import { isSubAccount } from '../lib/partnerAccess'; import { @@ -82,8 +81,6 @@ export default function StoreCreatePage() { const { account, refresh } = usePartnerSession(); - const subAccountLayout = isSubAccount(account); - const accountId = account?.id; const wechatReady = !!account?.hasWechat; @@ -610,7 +607,7 @@ export default function StoreCreatePage() { return ( -
+
navigate('/stores')} /> @@ -1094,7 +1091,7 @@ export default function StoreCreatePage() { -