🎨 style: 修改样式

This commit is contained in:
wangsongsole 2023-12-20 15:54:01 +08:00
parent 0827097588
commit 9316c05168
2 changed files with 44 additions and 7 deletions

View File

@ -41,10 +41,47 @@ const menu = {
return "充值失败"
}
},
orderStatusBg(params) {
switch (params) {
case 0:
return "#BFBFBF"
return "#3575C7"
case 1:
return "#3575C7"
case 2:
return "#43A65D"
case 3:
return "#ff0000"
case 4:
return "#eef0fc"
case 5:
return "#ca6b61"
case 6:
return "#ca6b61"
case 7:
return "#9655b4"
case 8:
return "#9f19dd"
default:
return "transparent"
}
},
orderPayStatusBg(params) {
switch (params) {
case 1:
return "#3575C7"
case 2:
return "#43A65D"
case 3:
return "#ff0000"
default:
return "transparent"
}
},
orderVoucherStatusBg(params) {
switch (params) {
case 1:
return "#3575C7"
case 2:
@ -54,14 +91,14 @@ const menu = {
case 4:
return "#0026ff"
case 5:
return "#ca6b61"
return "#3575C7"
case 6:
return "#ca6b61"
return "#3575C7"
case 7:
return "#9655b4"
case 8:
return "#9f19dd"
case 333:
default:
return "transparent"
}
},

View File

@ -685,7 +685,7 @@ export default class orderList extends React.Component {
<font
className="icon"
style={{
background: menu.orderStatusBg(
background: menu.orderPayStatusBg(
rowData.pay_status === 1 ? "" : parseInt(rowData.pay_status)
)
}}
@ -710,8 +710,8 @@ export default class orderList extends React.Component {
<font
className="icon"
style={{
background: menu.orderStatusBg(
parseInt(rowData.orderVoucher ? rowData.orderVoucher.status : 333)
background: menu.orderVoucherStatusBg(
parseInt(rowData.orderVoucher ? rowData.orderVoucher.status : 0)
)
}}
></font>