以入仓码作为查货入口和轨迹卡片主号码

This commit is contained in:
2026-10-30 19:10:22 +08:00
parent fd1ec32dd6
commit 04f94ad665
8 changed files with 68 additions and 28 deletions
+13 -12
View File
@@ -270,7 +270,7 @@ const I18N = {
networkFail: "网络连接中断,请检查网络后重试",
stopped: "已停止生成",
stoppedMark: "(已停止生成)",
inputPh: "输入问题、订单号或入仓码…",
inputPh: "输入入仓码或问题…",
send: "发送",
stop: "停止",
copy: "复制",
@@ -284,11 +284,11 @@ const I18N = {
welcomeTitle: "物流问题,随时为您解答",
welcomeEyebrow: "中欧 · 英国物流服务",
serviceTag: "物流咨询服务",
footerTrack: "查订单",
footerTrack: "查入仓码",
footerQuote: "专线报价",
footerException: "异常处理",
footerHuman: "联系人工",
inputShort: "输入问题…",
inputShort: "输入入仓码…",
uploading: "附件正在上传,请稍候…",
uploadFailed: "附件上传失败,请重新选择文件",
serviceUnavailable: "服务暂时不可用,请稍后重试,或联系人工客服。",
@@ -317,7 +317,7 @@ const I18N = {
logisticsHistory: "物流轨迹",
noLogisticsHistory: "暂无已发生的物流节点",
estimatedTracking: "预计节点",
order_inbound: "入仓码", order_shipment: "Shipment ID", order_country: "目的国",
order_inbound: "入仓码", order_number: "订单号", order_shipment: "Shipment ID", order_country: "目的国",
order_warehouse: "目的仓", order_transport: "运输方式", order_packages: "件数",
order_weight: "申报毛重", order_volume: "申报体积", order_role: "订单层级",
order_parent: "父订单号", order_updated: "来源更新时间",
@@ -331,7 +331,7 @@ const I18N = {
langTip: "中英文切换(Ctrl+L)",
toBottom: "回到底部",
quick: [
"查询订单状态", "欧洲海运专线报价", "包裹异常处理", "转接人工客服"
"按入仓码查轨迹", "欧洲海运专线报价", "包裹异常处理", "转接人工客服"
],
hotList: [
"如何查询物流轨迹?", "欧洲海运时效是多久?", "包裹显示异常签收怎么办?", "如何申请理赔?"
@@ -381,7 +381,7 @@ const I18N = {
networkFail: "Connection lost, please check your network and retry",
stopped: "Stopped",
stoppedMark: "(Generation stopped)",
inputPh: "Ask a question or enter an order number…",
inputPh: "Enter an inbound code or question…",
send: "Send",
stop: "Stop",
copy: "Copy",
@@ -395,11 +395,11 @@ const I18N = {
welcomeTitle: "Your next shipment, made clearer.",
welcomeEyebrow: "EUROPE & UK LOGISTICS",
serviceTag: "Logistics support",
footerTrack: "Order lookup",
footerTrack: "Inbound lookup",
footerQuote: "Get a quote",
footerException: "Parcel issue",
footerHuman: "Human support",
inputShort: "Message…",
inputShort: "Inbound code…",
uploading: "Uploading your attachment…",
uploadFailed: "Upload failed. Please select the file again.",
serviceUnavailable: "Service is temporarily unavailable. Please try again later or contact support.",
@@ -430,7 +430,7 @@ const I18N = {
logisticsHistory: "Shipment tracking",
noLogisticsHistory: "No actual shipment events available",
estimatedTracking: "Estimated milestones",
order_inbound: "Inbound code", order_shipment: "Shipment ID", order_country: "Destination country",
order_inbound: "Inbound code", order_number: "Order number", order_shipment: "Shipment ID", order_country: "Destination country",
order_warehouse: "Warehouse", order_transport: "Transport", order_packages: "Packages",
order_weight: "Declared gross weight", order_volume: "Declared volume", order_role: "Order level",
order_parent: "Parent order", order_updated: "Source updated",
@@ -444,7 +444,7 @@ const I18N = {
langTip: "Switch language (Ctrl+L)",
toBottom: "Back to bottom",
quick: [
"Track my shipment", "Europe sea freight quote", "Handle a parcel exception", "Talk to a human agent"
"Track by inbound code", "Europe sea freight quote", "Handle a parcel exception", "Talk to a human agent"
],
hotList: [
"How do I track my shipment?", "How long does Europe sea freight take?",
@@ -935,8 +935,9 @@ function fillTrackCard(el, card){
head.className = "track-head";
const no = document.createElement("div");
no.className = "track-no";
const numberLabel = isOrder ? 'orderNo' : 'trackingNo';
no.innerHTML = '<span data-i18n="'+numberLabel+'">' + t(numberLabel) + "</span>" + escHtml(card.no);
const inbound = isOrder && (card.fields || []).find(field=>field && field.key === 'inbound' && field.value);
const numberLabel = inbound ? 'order_inbound' : isOrder ? 'orderNo' : 'trackingNo';
no.innerHTML = '<span data-i18n="'+numberLabel+'">' + t(numberLabel) + "</span>" + escHtml(inbound ? inbound.value : card.no);
const st = document.createElement("div");
st.className = "track-status";
st.textContent = card.status;