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
d478f918
Commit
d478f918
authored
Jul 14, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改模板详情页
parent
23f13226
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
6 deletions
+31
-6
index.tsx
src/pages/pageCustomized/templateDetail/index.tsx
+31
-6
No files found.
src/pages/pageCustomized/templateDetail/index.tsx
View file @
d478f918
import
React
,
{
useState
}
from
'react'
import
React
,
{
useState
,
Fragment
}
from
'react'
import
{
history
}
from
'umi'
;
import
{
ArrowLeftOutlined
,
EyeOutlined
,
PushpinOutlined
}
from
'@ant-design/icons'
import
{
ArrowLeftOutlined
,
EyeOutlined
,
PushpinOutlined
,
BgColorsOutlined
,
ToTopOutlined
}
from
'@ant-design/icons'
import
cx
from
'classnames'
import
UseModal
from
'../components/useModal'
import
default_img
from
'@/asserts/template_default_img.png'
...
...
@@ -56,10 +56,35 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
<
EyeOutlined
/>
<
label
>
预览
</
label
>
</
div
>
<
div
className=
{
cx
(
styles
.
btn
,
styles
.
use
)
}
onClick=
{
()
=>
setUseModalVisible
(
true
)
}
>
<
PushpinOutlined
/>
<
label
>
{
query
.
type
===
'shop'
?
'设置是否允许使用'
:
'使用'
}
</
label
>
</
div
>
{
query
.
type
===
'shopCenter'
&&
(
<
Fragment
>
<
div
className=
{
cx
(
styles
.
btn
,
styles
.
use
)
}
onClick=
{
()
=>
setUseModalVisible
(
true
)
}
>
<
PushpinOutlined
/>
<
label
>
使用
</
label
>
</
div
>
<
div
className=
{
cx
(
styles
.
btn
,
styles
.
use
)
}
>
<
BgColorsOutlined
/>
<
label
>
商城装修
</
label
>
</
div
>
</
Fragment
>
)
}
{
query
.
type
===
'shop'
&&
(
<
Fragment
>
<
div
className=
{
cx
(
styles
.
btn
,
styles
.
use
)
}
>
<
ToTopOutlined
/>
<
label
>
上架
</
label
>
</
div
>
<
div
className=
{
cx
(
styles
.
btn
,
styles
.
use
)
}
>
<
ToTopOutlined
rotate=
{
180
}
/>
<
label
>
下架
</
label
>
</
div
>
</
Fragment
>
)
}
<
UseModal
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