feat: 订单列表 & 球局详情头像
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user