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
2a5ae68a
Commit
2a5ae68a
authored
Jan 29, 2021
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://10.0.0.22:3000/lingxi/lingxi-business-system
into dev
parents
afa6e4ce
a814667a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
index.tsx
src/pages/pageCustomized/templateDetail/index.tsx
+6
-6
No files found.
src/pages/pageCustomized/templateDetail/index.tsx
View file @
2a5ae68a
...
...
@@ -77,7 +77,7 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
}
PublicApi
.
postTemplateWebPageTemplateWebShelfTemplate
(
param
).
then
(
res
=>
{
fetchDetail
()
resolve
()
resolve
(
true
)
})
})
}
...
...
@@ -86,21 +86,21 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
switch
(
type
)
{
case
"mall"
:
if
(
detailInfo
?.
environment
===
1
)
{
window
.
location
.
href
=
`/mall/template/preview?id=
${
id
}
&template=
${
detailInfo
?.
fileName
}
`
window
.
location
.
href
=
`/
pageCustomized/
mall/template/preview?id=
${
id
}
&template=
${
detailInfo
?.
fileName
}
`
} else {
message.info(`
暂仅支持
web
环境模板预览
`)
}
break
case "shop":
if (detailInfo?.environment === 1) {
window.location.href = `
/
shop
/
template
/
preview
?
template
=
$
{
detailInfo
?.
fileName
}
`
window.location.href = `
/
pageCustomized
/
shop
/
template
/
preview
?
template
=
$
{
detailInfo
?.
fileName
}
`
} else {
message.info(`
暂仅支持
web
环境模板预览
`)
}
break
case "channel":
if (detailInfo?.environment === 1) {
window.location.href = `
/
channel
/
template
/
preview
?
template
=
$
{
detailInfo
?.
fileName
}
`
window.location.href = `
/
pageCustomized
/
channel
/
template
/
preview
?
template
=
$
{
detailInfo
?.
fileName
}
`
} else {
message.info(`
暂仅支持
web
环境模板预览
`)
}
...
...
@@ -152,10 +152,10 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
<Fragment>
<div className={cx(styles.btn, styles.renovation)} onClick={() => {
if (detailInfo?.environment === 1) {
window.location.href = `
/
mall
/
template
/
edit
?
id
=
$
{
id
}
&
template
=
$
{
detailInfo
?.
fileName
}
`
window.location.href = `
/
pageCustomized
/
mall
/
template
/
edit
?
id
=
$
{
id
}
&
template
=
$
{
detailInfo
?.
fileName
}
`
} else {
// message.info(`
暂仅支持
web
环境模板装修
`)
window.location.href = `
/
mobile
/
template
/
edit
?
id
=
$
{
id
}
&
template
=
$
{
detailInfo
?.
fileName
}
`
window.location.href = `
/
pageCustomized
/
mobile
/
template
/
edit
?
id
=
$
{
id
}
&
template
=
$
{
detailInfo
?.
fileName
}
`
}
}} >
<LayoutOutlined />
...
...
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