Commit 7b7b1168 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:商品类别价格显示异常

parent d8018fe7
...@@ -17,6 +17,24 @@ export interface UserRegister { ...@@ -17,6 +17,24 @@ export interface UserRegister {
useType: UseType; useType: UseType;
} }
export interface RuleConfiguration {
value: number;
label: string;
platformType: number;
}
export interface PayWayResponse {
payType: number;
value: number;
label: string;
}
export interface PayInitializeConfig {
payType: number;
ruleConfigurations: RuleConfiguration[];
payWayResponses: PayWayResponse[];
}
export interface PayPlatformPayConfig { export interface PayPlatformPayConfig {
id: number; id: number;
payType: number; payType: number;
...@@ -25,7 +43,7 @@ export interface PayPlatformPayConfig { ...@@ -25,7 +43,7 @@ export interface PayPlatformPayConfig {
} }
export interface PayConfig { export interface PayConfig {
payInitializeConfig: any[]; payInitializeConfig: PayInitializeConfig[];
payPlatformPayConfig: PayPlatformPayConfig[]; payPlatformPayConfig: PayPlatformPayConfig[];
} }
......
...@@ -96,7 +96,14 @@ const Products: React.FC<{}> = () => { ...@@ -96,7 +96,14 @@ const Products: React.FC<{}> = () => {
title: '价格', title: '价格',
dataIndex: 'min', dataIndex: 'min',
key: 'min', key: 'min',
render: (text:any, reocrd:any)=>(<>{reocrd.min} ~ ¥{reocrd.max}</>) render: (text:any, reocrd:any) => {
if(reocrd.priceType === 1)
return <>{reocrd.min} ~ ¥{reocrd.max}</>
if(reocrd.priceType === 3)
return <>{reocrd.min} ~ {reocrd.max}</>
if(reocrd.priceType === 2)
return null
}
}, },
{ {
title: '审核时间', title: '审核时间',
......
...@@ -110,7 +110,14 @@ const Products: React.FC<{}> = () => { ...@@ -110,7 +110,14 @@ const Products: React.FC<{}> = () => {
title: '价格', title: '价格',
dataIndex: 'min', dataIndex: 'min',
key: 'min', key: 'min',
render: (text:any, reocrd:any)=>(<>{reocrd.min} ~ ¥{reocrd.max}</>) render: (text:any, reocrd:any) => {
if(reocrd.priceType === 1)
return <>{reocrd.min} ~ ¥{reocrd.max}</>
if(reocrd.priceType === 3)
return <>{reocrd.min} ~ {reocrd.max}</>
if(reocrd.priceType === 2)
return null
}
}, },
{ {
title: '审核时间', title: '审核时间',
......
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