feat: 订单列表 & 球局详情头像

This commit is contained in:
2025-09-15 23:20:55 +08:00
parent 8d639aed28
commit 66ba7b4b66
8 changed files with 663 additions and 208 deletions

View File

@@ -137,7 +137,7 @@ function OrderMsg(props) {
wechat_contact,
price,
} = detail;
const { order_info: { registrant_nickname } = {} } = checkOrderInfo;
const { order_info: { registrant_nickname, registrant_phone } = {} } = checkOrderInfo;
const startTime = dayjs(start_time);
const endTime = dayjs(end_time);
const startYear = startTime.format("YYYY");
@@ -160,12 +160,12 @@ function OrderMsg(props) {
),
},
{
title: "组织者昵称",
title: "报名人昵称",
content: registrant_nickname,
},
{
title: "组织者电话",
content: wechat_contact,
title: "报名人电话",
content: registrant_phone,
},
{
title: "费用",
@@ -199,14 +199,14 @@ function RefundPolicy(props) {
rule: "退款规则",
},
...refund_policy.map((item, index) => {
const [, theTime] = item.application_time.split("undefined ");
const theTimeObj = dayjs(theTime);
const isLast = index === refund_policy.length - 1
const theTimeObj = dayjs(isLast ? refund_policy.at(-2).deadline_formatted : item.deadline_formatted);
const year = theTimeObj.format("YYYY");
const month = theTimeObj.format("M");
const day = theTimeObj.format("D");
const time = theTimeObj.format("HH:MM");
const time = theTimeObj.format("HH:mm");
return {
time: `${year}${month}${day}${time}${index === 0 ? "" : ""}`,
time: `${year}${month}${day}${time} ${isLast ? "" : ""}`,
rule: item.refund_rule,
};
}),