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
18781835
Commit
18781835
authored
Mar 24, 2022
by
许佳敏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-0318' into 'v2-220318'
fix: 合并v2代码时冲突问题 See merge request linkseeks-design/pro-platform!31
parents
ece6b73e
b5f1fa53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.tsx
src/pages/ownMall/ownMallManager/templateDetail/index.tsx
+4
-4
No files found.
src/pages/ownMall/ownMallManager/templateDetail/index.tsx
View file @
18781835
...
...
@@ -72,8 +72,8 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
getTemplateWebPageTemplateWebFindSelfTemplateDetails
(
param
).
then
(
async
(
res
)
=>
{
if
(
res
.
code
===
1000
)
{
await
getMemberShopAll
(
res
.
data
.
environment
,
res
.
data
.
property
)
setDetailInfo
(
res
.
data
)
await
getMemberShopAll
(
res
.
data
.
environment
,
res
.
data
.
property
)
}
})
}
...
...
@@ -102,7 +102,7 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
const
handleLinkEdit
=
()
=>
{
if
(
detailInfo
?.
environment
===
1
)
{
// 自营商城装修
window
.
location
.
href
=
`/memberCenter/ownMallAbility/ownMallManager/template/edit?id=
${
detailInfo
.
id
}
&template=
${
detailInfo
.
fileName
}
&shopId=
${
detailInfo
.
selfShopId
||
detailInfo
.
shopId
}
&property=
${
detailInfo
?.
property
}
`
window
.
location
.
href
=
`/memberCenter/ownMallAbility/ownMallManager/template/edit?id=
${
detailInfo
.
id
}
&template=
${
detailInfo
.
fileName
}
&shopId=
${
shopId
}
&property=
${
detailInfo
?.
property
}
`
} else if ([2, 3, 4].includes(detailInfo?.environment)) {
// 自营商城装修
window.location.href = `
/
memberCenter
/
ownMallAbility
/
ownMallManager
/
template
/
mobile
/
edit
?
id
=
$
{
detailInfo
.
id
}
&
template
=
$
{
detailInfo
.
fileName
}
&
shopId
=
$
{
shopId
}
&
environment
=
$
{
detailInfo
?.
environment
}
&
property
=
$
{
detailInfo
?.
property
}
`
...
...
@@ -114,9 +114,9 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
const handleLinkPreview = () => {
const shopId = detailInfo?.shopId || detailInfo?.sourceShopId
if(detailInfo?.environment === 1) {
window.location.href = `
/
memberCenter
/
ownMallAbility
/
ownMallManager
/
template
/
preview
?
id
=
$
{
detailInfo
.
id
}
&
template
=
$
{
detailInfo
.
fileName
}
&
shopId
=
$
{
detailInfo
.
selfShopId
||
detailInfo
.
shopId
}
&
property
=
$
{
detailInfo
?.
property
}
`
window.location.href = `
/
memberCenter
/
ownMallAbility
/
ownMallManager
/
template
/
preview
?
id
=
$
{
detailInfo
.
id
}
&
template
=
$
{
detailInfo
.
fileName
}
&
shopId
=
$
{
shopId
}
&
property
=
$
{
detailInfo
?.
property
}
`
} else if ([2, 3, 4].includes(detailInfo?.environment)) {
window.location.href = `
/
memberCenter
/
ownMallAbility
/
ownMallManager
/
template
/
mobile
/
preview
?
id
=
$
{
detailInfo
.
id
}
&
template
=
$
{
detailInfo
.
fileName
}
&
shopId
=
$
{
detailInfo
.
selfShopId
||
detailInfo
.
shopId
}
&
environment
=
$
{
detailInfo
?.
environment
}
&
property
=
$
{
detailInfo
?.
property
}
`
window.location.href = `
/
memberCenter
/
ownMallAbility
/
ownMallManager
/
template
/
mobile
/
preview
?
id
=
$
{
detailInfo
.
id
}
&
template
=
$
{
detailInfo
.
fileName
}
&
shopId
=
$
{
shopId
}
&
environment
=
$
{
detailInfo
?.
environment
}
&
property
=
$
{
detailInfo
?.
property
}
`
} 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