Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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-platform
Commits
1e5197ce
Commit
1e5197ce
authored
Jan 12, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改判断商品品牌审核类型的方式
parent
cfc780b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
viewBrand.tsx
src/pages/trademark/viewBrand.tsx
+1
-9
No files found.
src/pages/trademark/viewBrand.tsx
View file @
1e5197ce
...
...
@@ -12,8 +12,6 @@ import moment from 'moment'
import
styles
from
'./index.less'
import
{
productStatusColor
,
productStatusLabel
}
from
'../commodity/products/constant'
import
{
getProductBrandGetBrand
,
getProductBrandGetBrandCheckRecord
}
from
'@/services/ProductV2Api'
import
{
getAuth
}
from
'@/utils/auth'
import
{
postManageActivityShopRuleExistShop
}
from
'@/services/ManageV2Api'
const
{
Step
}
=
Steps
;
...
...
@@ -26,12 +24,10 @@ const BrandOpeartionLabel = [
const
viewBrand
:
React
.
FC
<
{}
>
=
()
=>
{
const
intl
=
useIntl
();
const
{
memberId
,
memberRoleId
}
=
getAuth
()
||
{};
const
[
brandInfo
,
setBrandInfo
]
=
useState
<
any
>
({})
const
[
fixStep
,
setFixStep
]
=
useState
(
0
)
const
[
recordData
,
setRecordData
]
=
useState
<
any
[]
>
([])
const
[
hasSelfStore
,
setHasSelfStore
]
=
useState
<
boolean
>
(
false
)
useEffect
(()
=>
{
const
{
id
}
=
history
.
location
.
query
...
...
@@ -51,10 +47,6 @@ const viewBrand: React.FC<{}> = () => {
if
(
res
.
code
===
1000
)
setRecordData
(
res
.
data
)
})
postManageActivityShopRuleExistShop
({
memberId
,
memberRoleId
},
{
ctlType
:
'none'
}).
then
(
res
=>
{
const
{
code
,
data
}
=
res
setHasSelfStore
(
data
)
})
}
},
[])
...
...
@@ -150,7 +142,7 @@ const viewBrand: React.FC<{}> = () => {
<
Steps
progressDot
current=
{
fixStep
}
>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'trademark.viewBrand.card.1.step.1'
})
}
description=
{
intl
.
formatMessage
({
id
:
'trademark.viewBrand.card.1.step.1.description'
})
}
/>
{
hasSelfStore
brandInfo
.
type
===
1
?
<
Step
title=
{
intl
.
formatMessage
({
id
:
'trademark.viewBrand.card.1.step.2'
})
}
description=
{
intl
.
formatMessage
({
id
:
'trademark.viewBrand.card.1.step.1.description'
})
}
/>
:
...
...
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