更新文案

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