🎨 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 "充值失败" return "充值失败"
} }
}, },
orderStatusBg(params) { orderStatusBg(params) {
switch (params) { switch (params) {
case 0: 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: case 1:
return "#3575C7" return "#3575C7"
case 2: case 2:
@ -54,14 +91,14 @@ const menu = {
case 4: case 4:
return "#0026ff" return "#0026ff"
case 5: case 5:
return "#ca6b61" return "#3575C7"
case 6: case 6:
return "#ca6b61" return "#3575C7"
case 7: case 7:
return "#9655b4" return "#9655b4"
case 8: case 8:
return "#9f19dd" return "#9f19dd"
case 333: default:
return "transparent" return "transparent"
} }
}, },

View File

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