更新文案

This commit is contained in:
xianyi
2025-11-27 17:35:29 +08:00
parent 43d1033296
commit 61adf09dc8

View File

@@ -36,22 +36,22 @@ const UI6: React.FC = () => {
// 处理数据:将 project_id 和 project_name 字符串分离为数组 // 处理数据:将 project_id 和 project_name 字符串分离为数组
const processedData = res.Data.listPackDetail.map((item: any) => { const processedData = res.Data.listPackDetail.map((item: any) => {
// 将 project_id 字符串按中文顿号分割为数组 // 将 project_id 字符串按中文顿号分割为数组
const project_ids = item.project_id const project_ids = item.project_id
? item.project_id.split("、").map((id: string) => id.trim()).filter((id: string) => id) ? item.project_id.split("、").map((id: string) => id.trim()).filter((id: string) => id)
: []; : [];
// 将 project_name 字符串按中文顿号分割为数组 // 将 project_name 字符串按中文顿号分割为数组
const project_names = item.project_name const project_names = item.project_name
? item.project_name.split("、").map((name: string) => name.trim()).filter((name: string) => name) ? item.project_name.split("、").map((name: string) => name.trim()).filter((name: string) => name)
: []; : [];
return { return {
...item, ...item,
project_ids, project_ids,
project_names, project_names,
}; };
}); });
setListData(processedData); setListData(processedData);
setPackageInfo(res.Data.packagItemInfo); setPackageInfo(res.Data.packagItemInfo);
} else { } else {
@@ -68,10 +68,10 @@ const UI6: React.FC = () => {
<DecorLine /> <DecorLine />
<span className="basic-paragraph"> <span className="basic-paragraph">
{localStorage.getItem("name")}{localStorage.getItem("gender") === "男" ? "先生" : "女士"} {localStorage.getItem("name")}{localStorage.getItem("gender") === "男" ? "先生" : "女士"}
<br /> <br />
<br /> <br />
{PackageInfo.appointment_datetime} {PackageInfo.appointment_datetime}
</span> </span>
<div className="ui6-table-container"> <div className="ui6-table-container">