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
黄庭坚
jinfa-platform
Commits
5ae2c18a
Commit
5ae2c18a
authored
Dec 30, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 渠道商城小程序装修按钮判断
parent
e9f54b6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.tsx
src/pages/channel/templateDetail/index.tsx
+2
-2
No files found.
src/pages/channel/templateDetail/index.tsx
View file @
5ae2c18a
...
...
@@ -68,7 +68,7 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
if
(
detailInfo
?.
environment
===
1
)
{
// web店铺装修
window
.
location
.
href
=
`/memberCenter/channelAbility/template/edit?id=
${
detailInfo
.
id
}
&template=
${
detailInfo
.
fileName
}
&type=
${
shopType
}
&shopId=
${
detailInfo
.
shopId
}
`
}
else
if
(
detailInfo
?.
environment
===
4
)
{
}
else
if
(
detailInfo
?.
environment
===
4
||
detailInfo
?.
environment
===
3
)
{
// app店铺装修
window
.
location
.
href
=
`/memberCenter/channelAbility/template/mobile/edit?id=
${
detailInfo
.
id
}
&template=
${
detailInfo
.
fileName
}
&type=
${
shopType
}
&shopId=
${
detailInfo
.
shopId
}
`
}
else
{
...
...
@@ -79,7 +79,7 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
const
handleLinkPreview
=
()
=>
{
if
(
detailInfo
?.
environment
===
1
)
{
window
.
location
.
href
=
`/memberCenter/channelAbility/template/preview?id=
${
detailInfo
.
id
}
&template=
${
detailInfo
.
fileName
}
&type=
${
shopType
}
&shopId=
${
detailInfo
.
shopId
}
`
}
else
if
(
detailInfo
?.
environment
===
4
)
{
}
else
if
(
detailInfo
?.
environment
===
4
||
detailInfo
?.
environment
===
3
)
{
window
.
location
.
href
=
`/memberCenter/channelAbility/template/mobile/preview?id=
${
detailInfo
.
id
}
&template=
${
detailInfo
.
fileName
}
&type=
${
shopType
}
&shopId=
${
detailInfo
.
shopId
}
`
}
else
{
message
.
info
(
intl
.
formatMessage
({
id
:
'shop.template.preview.tip'
}))
...
...
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