Merge pull request 'feat: 官网首页意图缎带、联系信息与导航坞交互优化' (#18) from test into master
All checks were successful
Build and Deploy Front / deploy (push) Successful in 2m56s

Reviewed-on: https://git.ideship.com/ideship/front/pulls/18
This commit is contained in:
zzh 2026-11-06 12:27:07 +08:00
commit f937df3bb3
13 changed files with 997 additions and 907 deletions

View File

@ -857,8 +857,8 @@
<h3>不确定选哪种方案?免费为您定制</h3>
<p>IDE 国际物流 · 专注跨境电商出口通关与东南亚专线物流</p>
<div class="cta-contact">
<span>📞 咨询热线:XXX-XXXX-XXXX</span>
<span>💬 微信:ydgjzzh</span>
<span>📞 咨询热线:13048804956</span>
<span>✉️ 邮箱:13048804956@163.com</span>
</div>
</div>

View File

@ -74,7 +74,7 @@ export default {
'nanaAssistant.trackHint': 'Just send the waybill number to track, e.g. IDE2607281746002926',
'nanaAssistant.replyVisibility': 'You get milestone updates from pickup to delivery — pickup, export, line-haul, customs, and final delivery. We proactively flag delays before they escalate.',
'nanaAssistant.replyAfterSales': "Your dedicated advisor handles exceptions, claims, and after-sales follow-up — you won't be left chasing tickets alone. Describe the issue and tracking number if you have one.",
'nanaAssistant.replyHuman': 'Reach us via the contact page — phone 18123959245 or email bd01@1st56.com. Mention your route and cargo so we assign the right advisor.',
'nanaAssistant.replyHuman': 'Reach us via the contact page — phone 13048804956 or email 13048804956@163.com. Mention your route and cargo so we assign the right advisor.',
'nanaAssistant.fallback': 'Tell me destination destCountry + weight to quote, or paste a waybill number to track — or talk to a human advisor.',
'nanaAssistant.emptyReply': 'No useful reply came back. Please try again with destination + weight, or a waybill number.',
'nanaAssistant.aiUnavailable': 'AI advisor is not configured yet. Please contact a human advisor or try later.',

View File

@ -73,7 +73,7 @@ export default {
'nanaAssistant.trackHint': '直接发送运单号即可查轨迹,例如:IDE2607281746002926',
'nanaAssistant.replyVisibility': '从揽收到签收有关键节点更新 — 揽收、出口、干线、清关、妥投。异常升级前我们会主动预警。',
'nanaAssistant.replyAfterSales': '专属顾问负责异常、理赔与售后跟进,不用自己排队工单。请说明问题,如有单号一并提供。',
'nanaAssistant.replyHuman': '请前往联系页 — 电话 18123959245 或邮箱 bd01@1st56.com。说明线路和货型,我们会安排对应顾问。',
'nanaAssistant.replyHuman': '请前往联系页 — 电话 13048804956 或邮箱 13048804956@163.com。说明线路和货型,我们会安排对应顾问。',
'nanaAssistant.fallback': '可以说目的国和重量让我查价,或直接发运单号查轨迹;也可以联系人工顾问。',
'nanaAssistant.emptyReply': '刚才没有得到有效回复,请再发一次,或换个更具体的说法(目的国+重量 / 运单号)。',
'nanaAssistant.aiUnavailable': '智能顾问暂未配置或未就绪。请联系人工顾问,或稍后再试。',

View File

@ -35,6 +35,8 @@
renderScale?: number;
/** Target animation FPS; lower = less GPU. */
fps?: number;
/** Freeze animation (keep last frame). */
paused?: boolean;
}
const hexToRgb = (hex: string): [number, number, number] => {
@ -228,12 +230,14 @@ void main() {
maxDpr: 1.25,
renderScale: 0.75,
fps: 30,
paused: false,
});
const containerRef = ref<HTMLDivElement | null>(null);
let program: MainUniforms | null = null;
let teardown: (() => void) | null = null;
let setPaused: ((next: boolean) => void) | null = null;
const syncUniforms = () => {
if (!program) return;
@ -305,20 +309,35 @@ void main() {
if (!container) return;
const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
const dprCap = Math.max(1, props.maxDpr);
const scale = Math.min(1, Math.max(0.4, props.renderScale));
const targetFps = reduceMotion ? 0 : Math.max(12, Math.min(60, props.fps));
const isNarrow = window.matchMedia('(max-width: 860px)').matches;
const dprCap = Math.max(1, isNarrow ? Math.min(props.maxDpr, 1.1) : props.maxDpr);
const scale = Math.min(
1,
Math.max(0.4, isNarrow ? Math.min(props.renderScale, 0.5) : props.renderScale),
);
const allowMouse = props.mouseInteraction && !reduceMotion && !isNarrow;
const targetFps = reduceMotion
? 0
: Math.max(12, Math.min(60, isNarrow ? Math.min(props.fps, 20) : props.fps));
const frameMs = targetFps > 0 ? 1000 / targetFps : 0;
const renderer = new Renderer({
webgl: 2,
alpha: true,
premultipliedAlpha: true,
antialias: false,
dpr: Math.min(window.devicePixelRatio || 1, dprCap),
});
let renderer: Renderer;
try {
renderer = new Renderer({
webgl: 2,
alpha: true,
premultipliedAlpha: true,
antialias: false,
dpr: Math.min(window.devicePixelRatio || 1, dprCap),
});
} catch {
// WebGL 不可用:保留静态 paint 底,不挂 canvas
return;
}
const gl = renderer.gl;
if (!gl) return;
gl.clearColor(0, 0, 0, 0);
const canvas = gl.canvas as HTMLCanvasElement;
canvas.style.width = '100%';
@ -384,10 +403,15 @@ void main() {
const currentMouse: [number, number] = [0.5, 0.5];
const targetMouse: [number, number] = [0.5, 0.5];
let pointerLast = 0;
const POINTER_THROTTLE_MS = 40;
// Window-level so parallax works behind UI overlays
const onPointerMove = (e: PointerEvent) => {
if (!props.mouseInteraction) return;
if (!allowMouse) return;
const now = performance.now();
if (now - pointerLast < POINTER_THROTTLE_MS) return;
pointerLast = now;
const rect = container.getBoundingClientRect();
targetMouse[0] = (e.clientX - rect.left) / Math.max(1, rect.width);
targetMouse[1] = 1.0 - (e.clientY - rect.top) / Math.max(1, rect.height);
@ -396,7 +420,7 @@ void main() {
targetMouse[0] = 0.5;
targetMouse[1] = 0.5;
};
if (props.mouseInteraction && !reduceMotion) {
if (allowMouse) {
window.addEventListener('pointermove', onPointerMove, { passive: true });
window.addEventListener('blur', onPointerLeave);
}
@ -405,12 +429,13 @@ void main() {
let lastFrame = 0;
let isVisible = true;
let isPageVisible = !document.hidden;
let isPaused = props.paused;
const t0 = performance.now();
const paint = (t: number) => {
mu.iTime.value = (t - t0) * 0.001;
const tx = props.mouseInteraction ? targetMouse[0] : 0.5;
const ty = props.mouseInteraction ? targetMouse[1] : 0.5;
const tx = allowMouse ? targetMouse[0] : 0.5;
const ty = allowMouse ? targetMouse[1] : 0.5;
currentMouse[0] += 0.05 * (tx - currentMouse[0]);
currentMouse[1] += 0.05 * (ty - currentMouse[1]);
const m = mu.uMouse.value;
@ -427,8 +452,8 @@ void main() {
};
const tryStart = () => {
if (reduceMotion || targetFps <= 0) {
paint(performance.now());
if (isPaused || reduceMotion || targetFps <= 0) {
if (!raf) paint(performance.now());
return;
}
if (isVisible && isPageVisible && raf === 0) raf = requestAnimationFrame(loop);
@ -440,6 +465,17 @@ void main() {
}
};
setPaused = (next: boolean) => {
isPaused = next;
if (next) {
tryStop();
// 冻结时再画一帧,避免停在半透明过渡态
paint(performance.now());
} else {
tryStart();
}
};
const io = new IntersectionObserver(
([entry]) => {
isVisible = entry.isIntersecting;
@ -457,8 +493,9 @@ void main() {
};
document.addEventListener('visibilitychange', onVisibility);
tryStart();
syncUniforms();
mu.uEnableMouse.value = allowMouse;
if (!isPaused) tryStart();
// 先画一帧再淡入,盖在静态海天底上,避免灰/白闪
requestAnimationFrame(() => {
paint(performance.now());
@ -467,6 +504,7 @@ void main() {
teardown = () => {
tryStop();
setPaused = null;
ro.disconnect();
io.disconnect();
document.removeEventListener('visibilitychange', onVisibility);
@ -482,9 +520,17 @@ void main() {
};
});
watch(
() => props.paused,
(next) => {
setPaused?.(!!next);
},
);
onUnmounted(() => {
teardown?.();
teardown = null;
setPaused = null;
});
</script>

View File

@ -28,41 +28,27 @@
/>
</div>
<div class="ai-welcome__stack">
<div class="ai-welcome__deck">
<div class="ai-welcome__intro">
<h2 class="ai-welcome-title" :aria-label="shortTitle ? copy.titleShort : copy.title">
<span class="ai-welcome-title__brand" aria-hidden="true">
IDE<span class="ai-welcome-title__dot"> · </span>
</span>
<TextType
v-if="titleAnimate"
:key="shortTitle ? 'title-short' : 'title-full'"
as="span"
class-name="ai-welcome-title__type"
:text="shortTitle ? copy.titleRestShort : copy.titleRest"
:typing-speed="48"
:initial-delay="280"
:pause-duration="900"
:show-cursor="false"
:loop="false"
/>
<span v-else class="ai-welcome-title__type">{{
shortTitle ? copy.titleRestShort : copy.titleRest
}}</span>
</h2>
</div>
<div class="ai-welcome__meta">
<ul class="ai-welcome-stats ai-welcome-stats--compact" :aria-label="copy.statsAria">
<li
v-for="stat in HERO_STATS"
:key="stat.label.zh"
class="ai-welcome-stats__item"
>
<strong class="ai-welcome-stats__value">{{ isZh ? stat.value.zh : stat.value.en }}</strong>
<span class="ai-welcome-stats__label">{{ isZh ? stat.label.zh : stat.label.en }}</span>
</li>
</ul>
</div>
<div class="ai-welcome__intro">
<h2 class="ai-welcome-title" :aria-label="shortTitle ? copy.titleShort : copy.title">
<span class="ai-welcome-title__brand" aria-hidden="true">
IDE<span class="ai-welcome-title__dot"> · </span>
</span>
<TextType
v-if="titleAnimate"
:key="shortTitle ? 'title-short' : 'title-full'"
as="span"
class-name="ai-welcome-title__type"
:text="shortTitle ? copy.titleRestShort : copy.titleRest"
:typing-speed="48"
:initial-delay="280"
:pause-duration="900"
:show-cursor="false"
:loop="false"
/>
<span v-else class="ai-welcome-title__type">{{
shortTitle ? copy.titleRestShort : copy.titleRest
}}</span>
</h2>
</div>
<div class="ai-welcome__command">
<div class="ai-welcome-compose-panel">
@ -96,60 +82,35 @@
/>
</div>
</div>
<div class="ai-intent-section">
<div class="ai-intent-group">
<p class="ai-intent-group__label">{{ copy.groupFulfill }}</p>
<div class="ai-intent-grid ai-intent-grid--primary">
<button
v-for="door in primaryDoors"
:key="door.id"
type="button"
class="ai-intent-door is-primary lg-surface"
:class="{
'is-glass-ready': glassReady,
'is-glass-fallback': glassFallback,
}"
:disabled="busy"
@click="onHomeDoor(door)"
>
<span class="ai-intent-door__icon">
<p class="ai-welcome-trustline">{{ copy.trustLine }}</p>
<div class="ai-intent-section" role="group" :aria-label="copy.intentAria">
<div class="ai-intent-ribbon" :class="{ 'is-en': !isZh }">
<button
v-for="door in ribbonDoors"
:key="door.id"
type="button"
class="ai-intent-ribbon__item"
:class="{ 'is-featured': door.id === 'agent' || door.featured }"
:aria-label="
(isZh ? door.zh.title : door.en.title) +
'。' +
(isZh ? door.zh.hint : door.en.hint)
"
:disabled="busy"
@click="onHomeDoor(door)"
>
<span class="ai-intent-ribbon__face" aria-hidden="true">
<span class="ai-intent-ribbon__icon">
<SiteIllusIcon :name="door.icon" />
</span>
<span class="ai-intent-door__copy">
<span class="ai-intent-door__title">{{ isZh ? door.zh.title : door.en.title }}</span>
<span class="ai-intent-door__hint">{{ isZh ? door.zh.hint : door.en.hint }}</span>
</span>
</button>
</div>
</div>
<div class="ai-intent-group ai-intent-group--growth">
<p class="ai-intent-group__label">{{ copy.groupGrowth }}</p>
<div class="ai-intent-grid ai-intent-grid--growth">
<button
v-for="door in growthDoors"
:key="door.id"
type="button"
class="ai-intent-door lg-surface"
:class="{
'is-glass-ready': glassReady,
'is-glass-fallback': glassFallback,
}"
:disabled="busy"
@click="onHomeDoor(door)"
>
<span class="ai-intent-door__head">
<span class="ai-intent-door__icon">
<SiteIllusIcon :name="door.icon" />
</span>
<span class="ai-intent-door__title">{{
isZh ? door.zh.title : door.en.title
}}</span>
</span>
<span class="ai-intent-door__hint">{{
isZh ? door.zh.hint : door.en.hint
<span class="ai-intent-ribbon__label">{{
isZh ? door.zh.title : door.en.title
}}</span>
</button>
</div>
</span>
<span class="ai-intent-ribbon__hint" aria-hidden="true">{{
isZh ? door.zh.hint : door.en.hint
}}</span>
</button>
</div>
</div>
</div>
@ -273,9 +234,14 @@
import SiteMessageCard from './SiteMessageCard.vue';
import SiteIllusIcon from './SiteIllusIcon.vue';
import TextType from './TextType.vue';
import { HOME_DOORS, HERO_STATS, SITE_FOLLOWUP_INTENTS, WELCOME_COPY } from './lib/site-welcome';
import {
FULFILL_DOOR_IDS,
GROWTH_DOOR_IDS,
HOME_DOORS,
SITE_FOLLOWUP_INTENTS,
WELCOME_COPY,
} from './lib/site-welcome';
import { ROUTE_DEST_PRESETS } from './lib/portal-catalog';
import { SITE_GLASS_PANEL_OPTS, useSiteLiquidGlass } from './lib/site-liquid-glass';
export type SiteChatMessage = {
role: 'user' | 'assistant';
@ -321,34 +287,24 @@
choice: [payload: { id: string; label: string; flowId: string }];
}>();
const siteGlass = useSiteLiquidGlass();
const glassReady = computed(() => !!siteGlass?.ready.value);
const glassFallback = computed(() => !!siteGlass?.fallback.value);
let removeGlassSurfaces: Array<() => void> = [];
function teardownLiquidGlass() {
removeGlassSurfaces.forEach((remove) => remove());
removeGlassSurfaces = [];
}
async function setupLiquidGlass() {
await nextTick();
if (!siteGlass || props.chatting) return;
teardownLiquidGlass();
const doorSurfaces = Array.from(
document.querySelectorAll<HTMLElement>(
'#ai-advisor-shell .ai-welcome__command .ai-intent-door.lg-surface',
),
);
removeGlassSurfaces = doorSurfaces.map((el) =>
siteGlass.registerSurface(el, SITE_GLASS_PANEL_OPTS),
);
}
const copy = computed(() => (props.isZh ? WELCOME_COPY.zh : WELCOME_COPY.en));
const homeDests = ROUTE_DEST_PRESETS.filter((item) => item.id !== 'all');
const primaryDoors = HOME_DOORS.filter((d) => d.primary);
const growthDoors = HOME_DOORS.filter((d) => !d.primary);
function doorById(id: string) {
return HOME_DOORS.find((d) => d.id === id);
}
const fulfillDoors = FULFILL_DOOR_IDS.map(doorById).filter(
(d): d is (typeof HOME_DOORS)[number] => !!d,
);
const growthDoors = GROWTH_DOOR_IDS.map(doorById).filter(
(d): d is (typeof HOME_DOORS)[number] => !!d,
);
const featuredDoor = HOME_DOORS.find((d) => d.id === 'agent') ?? null;
const ribbonDoors = [...fulfillDoors, featuredDoor, ...growthDoors].filter(
(d): d is (typeof HOME_DOORS)[number] => !!d,
);
// 首屏即按视口决定短标题,避免挂载后再切导致 TextType 卡住只剩品牌前缀
const shortTitle = ref(
typeof window !== 'undefined' && window.matchMedia('(max-width: 640px)').matches,
@ -356,6 +312,7 @@
const titleAnimate = ref(
typeof window === 'undefined' || !window.matchMedia('(prefers-reduced-motion: reduce)').matches,
);
const draft = computed({
get: () => props.modelValue,
set: (value) => emit('update:modelValue', value),
@ -400,30 +357,16 @@
titleAnimate.value = !mqReduce?.matches;
}
watch(
() => props.chatting,
async (chatting) => {
if (chatting) {
teardownLiquidGlass();
return;
}
await nextTick();
void setupLiquidGlass();
},
);
onMounted(() => {
mqNarrow = window.matchMedia('(max-width: 640px)');
mqReduce = window.matchMedia('(prefers-reduced-motion: reduce)');
syncMediaPrefs();
mqNarrow.addEventListener('change', syncMediaPrefs);
mqReduce.addEventListener('change', syncMediaPrefs);
void setupLiquidGlass();
});
onBeforeUnmount(() => {
mqNarrow?.removeEventListener('change', syncMediaPrefs);
mqReduce?.removeEventListener('change', syncMediaPrefs);
teardownLiquidGlass();
});
</script>

View File

@ -27,15 +27,30 @@
</button>
<nav id="navbar" class="navbar">
<ul>
<li ref="dockRef" class="site-nav-dock">
<li
ref="dockRef"
class="site-nav-dock"
:class="{ 'is-panel-open': !!panel }"
role="menubar"
:aria-label="isZh ? '主导航' : 'Primary'"
@keydown="onDockKeydown"
>
<span class="site-nav-dock__glass" aria-hidden="true"></span>
<span ref="sliderRef" class="site-nav-dock__slider" aria-hidden="true"></span>
<a
v-for="item in items"
:key="item.id"
:href="item.href"
role="menuitem"
class="site-nav-dock__item"
:class="{ active: nav === item.id, 'is-active': nav === item.id }"
:class="{
active: nav === item.id,
'is-active': nav === item.id,
'is-panel': isPanelItem(item.id) && panel === item.id,
}"
:aria-current="nav === item.id ? 'page' : undefined"
:aria-expanded="isPanelItem(item.id) ? panel === item.id : undefined"
:aria-haspopup="isPanelItem(item.id) ? 'dialog' : undefined"
@click.prevent="$emit('nav', item.id)"
>
<span class="site-nav-dock__icon" aria-hidden="true" v-html="item.icon"></span>
@ -91,10 +106,14 @@
import { getMapIdFromAccessToken } from '@/utils/jwt';
import { goOfficialLogin, officialAppHomeUrl } from './lib/site-urls';
const PANEL_IDS = new Set(['routes', 'services', 'pricing', 'about', 'contact']);
const props = defineProps<{
nav: string;
isZh: boolean;
loginUrl: string;
/** Open homepage sheet id, if any */
panel?: string | null;
}>();
defineEmits<{
@ -106,6 +125,10 @@
'warm-login': [];
}>();
function isPanelItem(id: string) {
return PANEL_IDS.has(id);
}
const router = useRouter();
const userStore = useUserStore();
const rbacUserStore = useRbacUserStore();
@ -214,6 +237,23 @@
let mqNarrow: MediaQueryList | null = null;
let mqReduce: MediaQueryList | null = null;
function onDockKeydown(e: KeyboardEvent) {
if (!['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(e.key)) return;
const dock = dockRef.value;
if (!dock || mqNarrow?.matches) return;
const links = [...dock.querySelectorAll<HTMLElement>('.site-nav-dock__item')];
if (!links.length) return;
const i = links.indexOf(document.activeElement as HTMLElement);
if (i < 0) return;
e.preventDefault();
let next = i;
if (e.key === 'ArrowRight') next = (i + 1) % links.length;
else if (e.key === 'ArrowLeft') next = (i - 1 + links.length) % links.length;
else if (e.key === 'Home') next = 0;
else if (e.key === 'End') next = links.length - 1;
links[next]?.focus();
}
function paintSlider(x: number, w: number, visible: boolean, animate: boolean) {
const el = sliderRef.value;
if (!el) return;

View File

@ -1,134 +1,172 @@
<template>
<svg class="ai-icon ai-icon--illus" viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<defs>
<linearGradient v-if="name === 'quote'" :id="gid" x1="17" y1="16" x2="40" y2="40" gradientUnits="userSpaceOnUse">
<stop stop-color="#E0B35A" />
<stop offset="1" stop-color="#C7923E" />
</linearGradient>
<linearGradient v-else-if="name === 'track'" :id="gid" x1="11" y1="19" x2="42" y2="40" gradientUnits="userSpaceOnUse">
<stop stop-color="#7DCFDD" />
<stop offset="1" stop-color="#2A9BB5" />
</linearGradient>
<linearGradient v-else-if="name === 'hard'" :id="gid" x1="12" y1="12" x2="42" y2="40" gradientUnits="userSpaceOnUse">
<stop stop-color="#F0A090" />
<stop offset="1" stop-color="#E07A5F" />
</linearGradient>
<linearGradient v-else-if="name === 'clearance'" :id="gid" x1="16" y1="11" x2="40" y2="39" gradientUnits="userSpaceOnUse">
<stop stop-color="#5EC4D6" />
<stop offset="1" stop-color="#054F74" />
</linearGradient>
<linearGradient v-else-if="name === 'growth'" :id="gid" x1="14" y1="12" x2="42" y2="42" gradientUnits="userSpaceOnUse">
<stop stop-color="#5EC4D6" />
<stop offset="1" stop-color="#054F74" />
</linearGradient>
<linearGradient v-else-if="name === 'coin'" :id="gid" x1="14" y1="14" x2="40" y2="40" gradientUnits="userSpaceOnUse">
<stop stop-color="#F0C56A" />
<stop offset="1" stop-color="#C7923E" />
</linearGradient>
<linearGradient v-else-if="name === 'coupon'" :id="gid" x1="12" y1="14" x2="42" y2="40" gradientUnits="userSpaceOnUse">
<stop stop-color="#F0A090" />
<stop offset="1" stop-color="#E07A5F" />
</linearGradient>
<linearGradient v-else :id="gid" x1="20" y1="11" x2="34" y2="26" gradientUnits="userSpaceOnUse">
<stop stop-color="#7DCFDD" />
<stop offset="1" stop-color="#2A9BB5" />
</linearGradient>
</defs>
<template v-if="name === 'quote'">
<ellipse cx="27" cy="44" rx="13" ry="3" fill="#C7923E" opacity="0.28" />
<!--
Lucide Icons(ISC)线稿风格 — 与 Linear / Vercel / Notion 等常用套系一致
https://lucide.dev
-->
<svg
class="ai-icon ai-icon--illus"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
>
<!-- hard ← triangle-alert -->
<template v-if="name === 'hard'">
<path
d="M17 23.5c0-1.5 1.2-2.7 2.7-2.7H29c2.6 0 4.7 2.1 4.7 4.7v1.3h3.4c1.7 0 3 1.5 2.8 3.2l-.9 7.5c-.2 1.6-1.5 2.7-3.1 2.7H19.7c-1.5 0-2.7-1.2-2.7-2.7V23.5z"
:fill="fill"
d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M20.2 20.8v-1.3c0-2.2 1.8-4 4-4h5.6c2.2 0 4 1.8 4 4v1.3" stroke="#B58232" stroke-width="2.2" stroke-linecap="round" />
<circle cx="28" cy="32.5" r="3.4" fill="#FFF8EC" />
<path d="M28 30.6v3.8M26.5 32h3" stroke="#C7923E" stroke-width="1.5" stroke-linecap="round" />
<path d="M12 9v4" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" />
<path d="M12 17h.01" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" />
</template>
<!-- track ← truck -->
<template v-else-if="name === 'track'">
<ellipse cx="27" cy="44" rx="13" ry="3" fill="#2A9BB5" opacity="0.28" />
<path d="M11 28h17.8l4.1-7.1c.4-.7 1.1-1.1 1.9-1.1H40.2c1.1 0 2 .9 2 2v12.6c0 .8-.7 1.5-1.5 1.5H11V28z" :fill="fill" />
<path d="M11 22h15.2v18H13c-1.1 0-2-.9-2-2V22z" fill="#054F74" />
<rect x="14.2" y="25.6" width="6.6" height="4" rx="1" fill="#E6F6FA" />
<circle cx="17.6" cy="39.6" r="3.4" fill="#1D2129" />
<circle cx="17.6" cy="39.6" r="1.5" fill="#C9CDD4" />
<circle cx="35.6" cy="39.6" r="3.4" fill="#1D2129" />
<circle cx="35.6" cy="39.6" r="1.5" fill="#C9CDD4" />
<path d="M6.2 24.6h4M5.2 28h3.6M6.6 31.6h3.2" stroke="#2A9BB5" stroke-width="1.8" stroke-linecap="round" opacity="0.9" />
</template>
<template v-else-if="name === 'hard'">
<ellipse cx="27" cy="44" rx="12" ry="3" fill="#E07A5F" opacity="0.28" />
<path
d="M27 12.6c1.1 0 2.1.58 2.64 1.52l12.1 21.1c.54.95.53 2.12-.03 3.06A3.05 3.05 0 0 1 39.07 40H14.93c-1.1 0-2.12-.58-2.64-1.52a3.05 3.05 0 0 1-.03-3.06l12.1-21.1A3.05 3.05 0 0 1 27 12.6z"
:fill="fill"
d="M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
<rect x="25.4" y="21.2" width="3.2" height="9.4" rx="1.6" fill="#fff" />
<circle cx="27" cy="34.3" r="2" fill="#fff" />
<path d="M15 18H9" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" />
<path
d="M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
<circle cx="17" cy="18" r="2" stroke="currentColor" stroke-width="1.25" />
<circle cx="7" cy="18" r="2" stroke="currentColor" stroke-width="1.25" />
</template>
<!-- clearance ← file-check -->
<template v-else-if="name === 'clearance'">
<ellipse cx="27" cy="44" rx="12" ry="3" fill="#054F74" opacity="0.22" />
<path
d="M16.5 13.5c0-1.4 1.1-2.5 2.5-2.5h10.4c.7 0 1.4.3 1.9.8l6.2 6.2c.5.5.8 1.2.8 1.9V36c0 1.4-1.1 2.5-2.5 2.5H19c-1.4 0-2.5-1.1-2.5-2.5V13.5z"
:fill="fill"
d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M14 2v4a2 2 0 0 0 2 2h4"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="m9 15 2 2 4-4"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M30.2 11.2V16c0 1.1.9 2 2 2h4.7L30.2 11.2z" fill="#9ED7E4" />
<rect x="21" y="23.5" width="13.5" height="2.2" rx="1.1" fill="#fff" opacity="0.92" />
<rect x="21" y="28.5" width="9.5" height="2.2" rx="1.1" fill="#fff" opacity="0.75" />
<circle cx="37.5" cy="34.2" r="7.6" fill="#2A9BB5" />
<path d="M34.6 34.4l1.8 1.8 4.2-4.4" stroke="#fff" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" />
</template>
<!-- quote ← badge-dollar-sign -->
<template v-else-if="name === 'quote'">
<path
d="M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M12 7v10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" />
<path
d="M15 9.5a2.5 2.5 0 0 0-5 0c0 1.4 1 2 2.5 2.5s2.5 1.1 2.5 2.5a2.5 2.5 0 0 1-5 0"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
</template>
<!-- human ← user-round -->
<template v-else-if="name === 'human'">
<circle cx="12" cy="8" r="5" stroke="currentColor" stroke-width="1.25" />
<path
d="M20 21a8 8 0 0 0-16 0"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
/>
</template>
<!-- growth ← chart-column-increasing -->
<template v-else-if="name === 'growth'">
<ellipse cx="27" cy="44" rx="13" ry="3" fill="#054F74" opacity="0.22" />
<rect x="12" y="12" width="30" height="28" rx="4" :fill="fill" />
<rect x="15.5" y="15" width="23" height="3.2" rx="1.6" fill="#fff" opacity="0.35" />
<rect x="17" y="32" width="5" height="5.5" rx="1" fill="#E6F6FA" />
<rect x="24.5" y="27" width="5" height="10.5" rx="1" fill="#9ED7E4" />
<rect x="32" y="21.5" width="5" height="16" rx="1" fill="#fff" />
<path d="M17.5 26.5l6.2-5.2 5.4 3.4 7.2-7.6" stroke="#FFF8EC" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
<circle cx="36.3" cy="17.1" r="2.1" fill="#E0B35A" />
</template>
<template v-else-if="name === 'coin'">
<ellipse cx="27" cy="44" rx="13" ry="3" fill="#C7923E" opacity="0.28" />
<ellipse cx="31.5" cy="30.5" rx="11.2" ry="11.2" fill="#B58232" />
<ellipse cx="31.5" cy="29.2" rx="11.2" ry="11.2" :fill="fill" />
<ellipse cx="31.5" cy="29.2" rx="7.2" ry="7.2" fill="#FFF8EC" opacity="0.22" />
<path d="M31.5 23.4v11.6M28.6 26.2h5.1c1.2 0 2.2.9 2.2 2.1s-1 2.1-2.2 2.1h-5.4" stroke="#FFF8EC" stroke-width="1.8" stroke-linecap="round" />
<ellipse cx="20.2" cy="24.8" rx="9.4" ry="9.4" fill="#B58232" />
<ellipse cx="20.2" cy="23.6" rx="9.4" ry="9.4" :fill="fill" />
<ellipse cx="20.2" cy="23.6" rx="5.8" ry="5.8" fill="#FFF8EC" opacity="0.28" />
<path d="M20.2 18.8v9.6M17.8 21.2h4.2c1 0 1.8.7 1.8 1.7s-.8 1.7-1.8 1.7h-4.4" stroke="#FFF8EC" stroke-width="1.6" stroke-linecap="round" />
</template>
<template v-else-if="name === 'coupon'">
<ellipse cx="27" cy="44" rx="13" ry="3" fill="#E07A5F" opacity="0.28" />
<path
d="M11.5 20.5c0-1.7 1.4-3 3-3h25c1.7 0 3 1.3 3 3v4.2c-1.6.4-2.7 1.8-2.7 3.5s1.1 3.1 2.7 3.5V36c0 1.7-1.3 3-3 3h-25c-1.6 0-3-1.3-3-3v-4.3c1.6-.4 2.7-1.8 2.7-3.5s-1.1-3.1-2.7-3.5v-4.2z"
:fill="fill"
d="M13 17V9"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M18 17V5"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M3 3v16a2 2 0 0 0 2 2h16"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M8 17v-3"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M22.5 17.5v21.5" stroke="#fff" stroke-width="1.8" stroke-dasharray="2.6 2.4" opacity="0.85" />
<rect x="26.5" y="23.2" width="11.5" height="2.4" rx="1.2" fill="#fff" opacity="0.92" />
<rect x="26.5" y="28.2" width="8" height="2.2" rx="1.1" fill="#fff" opacity="0.7" />
<circle cx="17.2" cy="28.5" r="3.2" fill="#FFF8EC" />
<path d="M17.2 26.6v3.8M15.6 28.5h3.2" stroke="#E07A5F" stroke-width="1.4" stroke-linecap="round" />
</template>
<template v-else>
<ellipse cx="27" cy="44" rx="13" ry="3" fill="#2A9BB5" opacity="0.28" />
<circle cx="27" cy="18.2" r="7.2" :fill="fill" />
<path d="M14.8 40.2c1.4-7.2 5.8-10.8 12.2-10.8s10.8 3.6 12.2 10.8" fill="#054F74" />
<path d="M18.5 20.2c.4-5.2 3.4-8.4 8.5-8.4s8.1 3.2 8.5 8.4" stroke="#9ED7E4" stroke-width="2" stroke-linecap="round" opacity="0.9" />
<rect x="15.6" y="19.4" width="3.4" height="5.4" rx="1.7" fill="#2A9BB5" />
<rect x="35" y="19.4" width="3.4" height="5.4" rx="1.7" fill="#2A9BB5" />
<path d="M22.4 28.6h9.2c1.4 0 2.5 1.1 2.5 2.5v2.2H19.9v-2.2c0-1.4 1.1-2.5 2.5-2.5z" fill="#E6F6FA" />
<!-- coin ← coins -->
<template v-else-if="name === 'coin'">
<circle cx="8" cy="8" r="6" stroke="currentColor" stroke-width="1.25" />
<path
d="M18.09 10.37A6 6 0 1 1 10.34 18"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
/>
<path d="M7 6h1v4" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" />
<path
d="m16.71 10-.2.2a4 4 0 0 0-.5 5.4"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
/>
</template>
<!-- coupon ← ticket -->
<template v-else-if="name === 'coupon'">
<path
d="M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"
stroke="currentColor"
stroke-width="1.25"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M13 5v2" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" />
<path d="M13 17v2" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" />
<path d="M13 11v2" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" />
</template>
</svg>
</template>
<script lang="ts" setup>
import { computed, useId } from 'vue';
const props = defineProps<{
defineProps<{
name: 'quote' | 'track' | 'hard' | 'clearance' | 'human' | 'growth' | 'coin' | 'coupon';
}>();
const uid = useId().replace(/[^a-zA-Z0-9_-]/g, '');
const gid = computed(() => `ai-g-${props.name}-${uid}`);
const fill = computed(() => `url(#${gid.value})`);
</script>

View File

@ -149,7 +149,6 @@
rows: [
{ label: isZh ? '电话' : 'Phone', value: c.phone },
{ label: isZh ? '微信客服' : 'WeCom', value: isZh ? '扫码 / 手机直达' : 'Scan or tap to chat' },
{ label: isZh ? '微信号' : 'WeChat ID', value: c.wechat },
{ label: isZh ? '邮箱' : 'Email', value: c.email },
{ label: isZh ? '地址' : 'Address', value: isZh ? c.addressZh : c.addressEn },
],
@ -177,8 +176,8 @@
hint: isZh ? '别人不接的带电、无票、超长,先保证出得去,再谈退税或免征。' : 'Battery, no invoice, oversize — we get it out, then pick refund or exemption.',
},
{
title: isZh ? '微信 ' + c.wechat : 'WeChat ' + c.wechat,
hint: isZh ? '卖家常用这一个号找顾问,底栏也可复制。' : 'The number sellers use. Copy it from the bar below.',
title: isZh ? '企业微信直达顾问' : 'WeCom to your advisor',
hint: isZh ? '联系页扫码或点「在线咨询」,一人从报价跟到售后。' : 'Scan on Contact or tap Live chat — one advisor from quote to after-sales.',
},
],
actions: [

View File

@ -36,10 +36,6 @@
<span>{{ copy.phone }}</span>
<strong>{{ contact.phone }}</strong>
</a>
<button type="button" class="site-topic-method" @click="copyWechat">
<span>{{ copy.wechat }}</span>
<strong>{{ copied ? copy.copied : contact.wechat }}</strong>
</button>
<a class="site-topic-method" :href="'mailto:' + contact.email">
<span>{{ copy.email }}</span>
<strong>{{ contact.email }}</strong>
@ -124,7 +120,6 @@
</template>
<template v-else>
<button type="button" class="site-topic-btn is-primary" @click="$emit('wechat')">{{ copy.live }}</button>
<a class="site-topic-btn" :href="'tel:' + contact.phone">{{ contact.phone }}</a>
</template>
</div>
</aside>
@ -152,7 +147,6 @@
const contact = SITE_CONTACT;
const loginUrl = officialLoginUrl();
const qrFailed = ref(false);
const copied = ref(false);
const lang = computed(() => (props.isZh ? 'zh' : 'en') as const);
const copy = computed(() => SITE_TOPIC_COPY[props.topic][lang.value]);
const facts = computed(() => {
@ -168,16 +162,4 @@
const pack = SITE_TOPIC_COPY.pricing[lang.value];
emit('ask', { text: pack.askText, intentId: 'pricing' });
}
async function copyWechat() {
try {
await navigator.clipboard.writeText(contact.wechat);
copied.value = true;
window.setTimeout(() => {
copied.value = false;
}, 1600);
} catch {
copied.value = false;
}
}
</script>

View File

@ -36,22 +36,24 @@
:tilt="1.08"
:zoom="0.92"
:height="4.8"
:fog-depth="22"
:fog-depth="28"
detail="low"
:brightness="1.08"
:opacity="1.0"
:brightness="1.06"
:opacity="0.86"
:mouse-interaction="true"
:parallax-strength="0.4"
:parallax-strength="0.35"
:grain="false"
:fps="30"
:render-scale="0.72"
:max-dpr="1.25"
:paused="wavesPaused"
/>
<div class="ai-shell-bg__veil" aria-hidden="true"></div>
</div>
</div>
<SiteHeader
:nav="nav"
:panel="panel"
:is-zh="isZh"
:login-url="loginUrl"
@home="onHome"
@ -100,7 +102,7 @@
@click="closePanel"
></button>
</Transition>
<Transition name="site-sheet">
<Transition name="site-sheet" @after-enter="onPanelAfterEnter">
<SiteRoutesPanel
v-if="panel === 'routes'"
key="routes"
@ -149,6 +151,7 @@
} from './lib/site-urls';
import { shouldOpenWecomDirect, WECOM_KF_URL } from './lib/site-wecom';
import { provideSiteLiquidGlass } from './lib/site-liquid-glass';
import { activatePanelFocus, deactivatePanelFocus } from './lib/site-panel-focus';
import { useSiteAdvisor } from './useSiteAdvisor';
import { trackSiteEvent } from '@/utils/ga';
import './styles/vendor.css';
@ -218,6 +221,11 @@
routesPending,
} = advisor;
/** 对话 / 面板 / 历史侧栏打开时冻结波浪,省 GPU */
const wavesPaused = computed(
() => chatting.value || historyOpen.value || panel.value != null,
);
let previousTitle = '';
function readLang(): 'zh' | 'en' {
@ -294,10 +302,16 @@
if (location.hash !== next) history.replaceState(null, '', next);
}
const panelTriggerEl = ref<HTMLElement | null>(null);
function openPanel(id: Exclude<PanelId, null>) {
closeMobileNav();
historyOpen.value = false;
if (id !== 'routes') routesDest.value = 'all';
if (!panel.value) {
const active = document.activeElement;
panelTriggerEl.value = active instanceof HTMLElement ? active : null;
}
panel.value = id;
nav.value = id;
syncHash(id);
@ -323,6 +337,12 @@
panel.value = null;
nav.value = 'home';
syncHash('home');
deactivatePanelFocus();
const trigger = panelTriggerEl.value;
panelTriggerEl.value = null;
void nextTick(() => {
trigger?.focus?.();
});
}
function onHome() {
@ -343,6 +363,11 @@
}
trackSiteEvent('home_nav', { nav_id: id });
if (NAV_PANELS.includes(id as PanelId)) {
// 同项再点:关闭面板
if (panel.value === id) {
closePanel();
return;
}
openPanel(id as Exclude<PanelId, null>);
return;
}
@ -435,9 +460,18 @@
document.documentElement.style.setProperty('--ai-vv-offset-top', `${offsetTop}px`);
}
function onPanelAfterEnter(el: Element) {
if (!(el instanceof HTMLElement)) return;
if (!el.classList.contains('site-nav-sheet')) return;
activatePanelFocus(el);
}
watch(panel, (id) => {
document.body.classList.toggle('site-panel-open', !!id);
document.body.classList.toggle('site-panel-routes', id === 'routes');
document.body.classList.toggle('site-panel-services', id === 'services');
document.body.classList.toggle('site-panel-topic', id === 'pricing' || id === 'about' || id === 'contact');
if (!id) deactivatePanelFocus();
});
onMounted(() => {
@ -471,7 +505,13 @@
window.removeEventListener('resize', syncVisualViewport);
window.visualViewport?.removeEventListener('resize', syncVisualViewport);
window.visualViewport?.removeEventListener('scroll', syncVisualViewport);
document.body.classList.remove('site-panel-routes', 'site-panel-services');
deactivatePanelFocus();
document.body.classList.remove(
'site-panel-open',
'site-panel-routes',
'site-panel-services',
'site-panel-topic',
);
document.documentElement.classList.remove('command-home', 'app-boot-site');
closeMobileNav();
if (previousTitle) document.title = previousTitle;

View File

@ -0,0 +1,49 @@
/** Focus helpers for homepage nav sheets (dialog). */
const FOCUSABLE =
'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
let trapRoot: HTMLElement | null = null;
let onKey: ((e: KeyboardEvent) => void) | null = null;
function listFocusable(root: HTMLElement): HTMLElement[] {
return [...root.querySelectorAll<HTMLElement>(FOCUSABLE)].filter((el) => {
if (el.hasAttribute('disabled') || el.getAttribute('aria-hidden') === 'true') return false;
// offsetParent is null for fixed/absolute in some cases — also check client rects
const style = window.getComputedStyle(el);
if (style.visibility === 'hidden' || style.display === 'none') return false;
return el.getClientRects().length > 0;
});
}
export function activatePanelFocus(root: HTMLElement) {
deactivatePanelFocus();
trapRoot = root;
const closeBtn = root.querySelector<HTMLElement>(
'.ai-guide-panel__close, .ai-routes-panel__close, [data-panel-close]',
);
const nodes = listFocusable(root);
(closeBtn && nodes.includes(closeBtn) ? closeBtn : nodes[0])?.focus();
onKey = (e: KeyboardEvent) => {
if (e.key !== 'Tab' || !trapRoot) return;
const list = listFocusable(trapRoot);
if (list.length === 0) return;
const first = list[0];
const last = list[list.length - 1];
if (e.shiftKey && document.activeElement === first) {
e.preventDefault();
last.focus();
} else if (!e.shiftKey && document.activeElement === last) {
e.preventDefault();
first.focus();
}
};
document.addEventListener('keydown', onKey, true);
}
export function deactivatePanelFocus() {
if (onKey) document.removeEventListener('keydown', onKey, true);
onKey = null;
trapRoot = null;
}

View File

@ -15,10 +15,12 @@ export const WELCOME_COPY = {
emptyHistory: 'No conversations yet',
heroCta: 'Register to see rates',
statsAria: 'Service highlights',
trustLine: '30+ countries · 8,000+ sellers · 12M+ parcels · US air 5–7d',
composeLead: 'Where are you shipping? Pick a destination, or ask below.',
destAria: 'Pick a destination',
groupFulfill: 'Shipping',
groupGrowth: 'Benefits',
groupFulfill: 'Fulfillment',
groupGrowth: 'Growth & partners',
intentAria: 'Shipping and benefits shortcuts',
partnerTag: 'Partners',
partnerAria: 'Connected platforms and carriers',
trustIcp: '粤ICP备2025463970号-2',
@ -41,10 +43,12 @@ export const WELCOME_COPY = {
emptyHistory: '暂无会话',
heroCta: '去注册看价',
statsAria: '服务数据',
trustLine: '30+ 国家/地区 · 8,000+ 卖家 · 1,200万+ 包裹 · 美线空运 5–7 天',
composeLead: '发到哪?点目的地看线路,或直接提问。',
destAria: '选择目的地',
groupFulfill: '履约',
groupGrowth: '权益',
groupFulfill: '履约服务',
groupGrowth: '成长与合作',
intentAria: '履约与权益入口',
partnerTag: '合作伙伴',
partnerAria: '对接平台与服务商',
trustIcp: '粤ICP备2025463970号-2',
@ -54,12 +58,12 @@ export const WELCOME_COPY = {
};
export const SITE_CONTACT = {
phone: '18123959245',
email: 'bd01@1st56.com',
wechat: 'ydgjzzh',
phone: '13048804956',
email: '13048804956@163.com',
icp: '粤ICP备2025463970号-2',
addressZh: '深圳宝安区福永怀德翠岗5区36栋',
addressEn: 'Bldg 36, Cuigang 5, Fuyong, Bao’an, Shenzhen',
addressZh: '深圳市宝安区福永街道怀德社区翠岗工业六区7栋怀德西部商务大厦A区4楼401',
addressEn:
"Rm 401, Zone A, Huaide Western Business Bldg, Bldg 7, Cuigang Industrial Zone 6, Fuyong, Bao'an, Shenzhen",
};
export const HERO_STATS = [
@ -240,24 +244,24 @@ export const HOME_DOORS = [
icon: 'hard',
intentId: 'hard' as const,
primary: true,
zh: { title: '敏感难发', hint: '先帮你看出得去的线路,再谈税。' },
en: { title: 'Sensitive cargo', hint: 'We find a lane that can leave, then the tax path.' },
zh: { title: '敏感难发', hint: '先看出得去的线路,再谈税' },
en: { title: 'Sensitive cargo', hint: 'Find a lane that can leave, then tax.' },
},
{
id: 'warehouse',
icon: 'track',
intentId: 'warehouse' as const,
primary: true,
zh: { title: '仓储代发', hint: '入仓拣货打包,订单来了就发出去。' },
en: { title: 'Warehouse fulfillment', hint: 'Inbound, pick & pack — ship when orders land.' },
zh: { title: '仓储代发', hint: '入仓拣货打包,订单来即发' },
en: { title: 'Warehouse fulfillment', hint: 'Inbound, pick & pack — ship on order.' },
},
{
id: 'clearance',
icon: 'clearance',
intentId: 'compliance' as const,
primary: true,
zh: { title: '报关退税', hint: '正式报关、退税,或没有专票怎么出。' },
en: { title: 'Customs & VAT', hint: 'Declaration, refund, or shipping without invoices.' },
zh: { title: '报关退税', hint: '正式报关、退税,或无票怎么出' },
en: { title: 'Customs & VAT', hint: 'Declaration, refund, or ship without invoices.' },
},
{
id: 'agent',
@ -267,11 +271,11 @@ export const HOME_DOORS = [
featured: true,
zh: {
title: '代理招募',
hint: '独立管理系统管客户,运费分成最高 10%。',
hint: '独立门户管客户,运费分成最高 10%',
},
en: {
title: 'Become an agent',
hint: 'Your own portal & clients — earn up to 10% freight commission.',
hint: 'Your portal & clients — up to 10% commission',
},
},
{
@ -280,8 +284,8 @@ export const HOME_DOORS = [
intentId: 'member' as const,
primary: false,
featured: false,
zh: { title: '会员成长', hint: '近 12 个月发货积分定级,基础运费最高 95 折。' },
en: { title: 'Member tiers', hint: '12-month shipping points — up to 95% on base freight.' },
zh: { title: '会员成长', hint: '近 12 月积分定级,基础运费最高 95 折' },
en: { title: 'Member tiers', hint: '12-month points — up to 95% on base freight' },
},
{
id: 'invite',
@ -289,8 +293,8 @@ export const HOME_DOORS = [
intentId: 'invite' as const,
primary: false,
featured: false,
zh: { title: '邀新分成', hint: '好友派送成功,你拿运费余额 + 10 元券。' },
en: { title: 'Invite & earn', hint: 'Friends deliver → freight credit + ¥10 coupon.' },
zh: { title: '邀新分成', hint: '好友派送成功,运费余额 + 10 元券' },
en: { title: 'Invite & earn', hint: 'Friends deliver → freight credit + ¥10 coupon' },
},
{
id: 'newcomer',
@ -298,11 +302,14 @@ export const HOME_DOORS = [
intentId: 'newcomer' as const,
primary: false,
featured: false,
zh: { title: '新人福利', hint: '注册送券:首单、备货、第二单都有。' },
en: { title: 'New-seller deals', hint: 'Coupons for first ship, stock-up, and second ship.' },
zh: { title: '新人福利', hint: '注册送券:首单、备货、第二单' },
en: { title: 'New-seller deals', hint: 'Coupons for first ship, stock-up, second ship' },
},
] as const;
export const FULFILL_DOOR_IDS = ['hard', 'warehouse', 'clearance'] as const;
export const GROWTH_DOOR_IDS = ['newcomer', 'invite', 'member'] as const;
export const SITE_PARTNERS = [
{
id: 'taobao',
@ -325,20 +332,6 @@ export const SITE_PARTNERS = [
label: '京东',
ask: { zh: '京东订单怎么对接发货?', en: 'How do JD orders connect for shipping?' },
},
{
id: 'ae',
group: 'platform',
icon: '/site/img/partners/aliexpress.svg',
label: 'AE',
ask: { zh: 'AliExpress 店铺怎么授权同步订单?', en: 'How do I authorize AliExpress and sync orders?' },
},
{
id: 'icbu',
group: 'platform',
icon: '/site/img/partners/icbu.svg',
label: 'ICBU',
ask: { zh: 'ICBU / 阿里巴巴国际站订单怎么发?', en: 'How do ICBU / Alibaba.com orders ship?' },
},
{
id: 'lazada',
group: 'platform',
@ -388,11 +381,4 @@ export const SITE_PARTNERS = [
label: 'UPS',
ask: { zh: '有没有 UPS 线路报价?', en: 'Do you have UPS lanes I can quote?' },
},
{
id: '3pe',
group: 'carrier',
icon: '',
label: '3PE',
ask: { zh: '3PE 国际快递怎么走、怎么报价?', en: 'How does 3PE express work, and how do I get a quote?' },
},
];

File diff suppressed because it is too large Load Diff