Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-admin
Commits
7b7b1168
Commit
7b7b1168
authored
Sep 03, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:商品类别价格显示异常
parent
d8018fe7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
3 deletions
+35
-3
global.d.ts
src/global/config/global.d.ts
+19
-1
index.tsx
src/pages/commodity/productWillCheck/index.tsx
+8
-1
index.tsx
src/pages/commodity/products/index.tsx
+8
-1
No files found.
src/global/config/global.d.ts
View file @
7b7b1168
...
@@ -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
[];
}
}
...
...
src/pages/commodity/productWillCheck/index.tsx
View file @
7b7b1168
...
@@ -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
:
'审核时间'
,
...
...
src/pages/commodity/products/index.tsx
View file @
7b7b1168
...
@@ -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
:
'审核时间'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment