Commit 5669fc40 by liimin

fix(Express): 修正物流状态判断逻辑

更新物流状态映射和判断规则,移除未使用的1005状态,并调整状态判断条件以确保正确显示运输中状态
1 parent 523c31c0
...@@ -4,7 +4,7 @@ const LOGISTICS_STATUS = { ...@@ -4,7 +4,7 @@ const LOGISTICS_STATUS = {
1002: "运输中", 1002: "运输中",
1003: "已签收", 1003: "已签收",
1004: "拒收", 1004: "拒收",
1005: "正在派件", // 新增状态 // 1005: "派件中", // 新增状态
}; };
// 状态判断规则配置 // 状态判断规则配置
...@@ -29,7 +29,7 @@ const STATUS_RULES = [ ...@@ -29,7 +29,7 @@ const STATUS_RULES = [
"派件", "派件",
"派件中", "派件中",
], ],
status: 1005, status: 1002,
statusDesc: "派件中", statusDesc: "派件中",
}, },
{ {
...@@ -127,7 +127,7 @@ Component({ ...@@ -127,7 +127,7 @@ Component({
// 根据内容判断状态 // 根据内容判断状态
let { status, statusDesc } = this._determineStatusByContent(content); let { status, statusDesc } = this._determineStatusByContent(content);
let type = "normal"; let type = "normal";
if (status === 1002) { if (status === 1002 && statusDesc === "运输中") {
if (status === lastStatus) { if (status === lastStatus) {
statusDesc = ""; statusDesc = "";
type = "small"; type = "small";
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!