feat:配合后端对接订单列表商品类型

This commit is contained in:
wangsongsole 2022-10-11 15:41:54 +08:00
parent cc0b86c123
commit 0d514f7f31
1 changed files with 14 additions and 3 deletions

View File

@ -148,10 +148,10 @@ const Column = [
}, },
{ {
title: "商品类型", title: "商品类型",
name: "type_text", name: "product_type",
prop: "type_text", prop: "product_type",
width: "50px", width: "50px",
type: "normal" type: "slot"
}, },
{ {
title: "订单类型", title: "订单类型",
@ -859,6 +859,17 @@ export default class orderlist extends React.Component {
if (com == "order_type") { if (com == "order_type") {
return <span>虚拟</span> return <span>虚拟</span>
} }
if (com == "product_type") {
return (
<span>
{rowData.product_type == 1
? "直充"
: rowData.product_type == 2
? "卡密"
: "立减金"}
</span>
)
}
if (com == "opearo") { if (com == "opearo") {
return ( return (
<div> <div>