Commit d733b441 authored by 郝聪敏's avatar 郝聪敏

Merge branch 'feature/fix_user_ui' into 'master'

fix: 添加"以保司为准”处理逻辑

See merge request !164
parents 4938875b fdbdee80
......@@ -107,7 +107,9 @@ export default {
result = {
titelText: `共缴纳${this.record.totalPaidAmount}`,
refundTimeText: "保障已终止",
amount: `${this.record?.refundAmount || 0}`,
amount: [0, "0"].includes(this.record?.refundAmount)
? "以保司为准"
: `${this.record?.refundAmount || 0}`,
amountText: "应退金额",
termText: `${this.record.paidTerm}/${this.record.totalTerm}期`,
delayTerm: `${this.record.delayTerm}期`
......
......@@ -59,7 +59,7 @@ const statusMap = {
},
"6": {
status: ["7-5"],
title: "退款金额:${title}",
title: "退款金额:${title}",
contend: "支付时间:${start}",
statusText: "退款中",
buttons: ["联系客服"],
......@@ -73,7 +73,7 @@ const statusMap = {
},
"7": {
status: ["4-5", "5-5"],
title: "退款金额:${title}",
title: "退款金额:${title}",
contend: "支付时间:${start}",
statusText: "退款中",
buttons: ["联系客服"],
......@@ -87,7 +87,7 @@ const statusMap = {
},
"8": {
status: ["4-6", "5-6", "7-6"],
title: "退款金额:${title}",
title: "退款金额:${title}",
contend: "支付时间:${start}",
statusText: "退款成功",
buttons: ["联系客服"],
......@@ -101,7 +101,7 @@ const statusMap = {
},
"9": {
status: ["4-7", "5-7", "7-7", "9-7"],
title: "退款金额:${title}",
title: "退款金额:${title}",
contend: "支付时间:${start}",
statusText: "退款失败",
buttons: ["联系客服"]
......
......@@ -15,7 +15,15 @@ export default {
}
if (["6", "7", "8", "9"].includes(key)) {
value.title = value.title.replace("${title}", policy?.refundInfo?.amount || "-");
// policy?.refundInfo?.amount 为0时特殊处理
if ([0, "0"].includes(policy?.refundInfo?.amount)) {
value.title = value.title.replace("${title}", "以保司为准");
} else {
value.title = value.title.replace(
"${title}",
policy?.refundInfo?.amount ? `${policy?.refundInfo?.amount}` : "-"
);
}
value.contend = value.contend.replace(
"${start}",
parseTime(policy?.refundInfo?.payTime, "{y}-{m}-{d}")
......
......@@ -296,7 +296,7 @@
display: flex;
flex-direction: column;
align-items: center;
margin: 0 130px 82.92px;
padding: 0 130px 82.92px;
font-size: 0;
&-svg {
margin-bottom: 8px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment