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
b5f1fa53
Commit
b5f1fa53
authored
Mar 24, 2022
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 合并v2代码时冲突问题
parent
27a5fb45
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 @
b5f1fa53
...
...
@@ -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