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
fd9e08a3
Commit
fd9e08a3
authored
Dec 15, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改商城首页接口路径
parent
7626ab73
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
index.tsx
src/pages/lxMall/components/Category/index.tsx
+2
-2
index.less
src/pages/lxMall/components/FloorAnchor/index.less
+3
-2
index.ts
src/store/site/index.ts
+1
-1
No files found.
src/pages/lxMall/components/Category/index.tsx
View file @
fd9e08a3
...
...
@@ -25,13 +25,13 @@ const Category: React.FC<CategoryPropsType> = (props) => {
useEffect
(()
=>
{
let
getCategoryFn
le
t
params
:
any
=
{}
cons
t
params
:
any
=
{}
let
headers
=
{}
switch
(
type
)
{
case
LAYOUT_TYPE
.
mall
:
if
(
mallTemplateId
)
{
params
.
templateId
=
mallTemplateId
getCategoryFn
=
PublicApi
.
getTemplate
PlatformFindAll
CategoryTree
getCategoryFn
=
PublicApi
.
getTemplate
WebCategoryWebFindEnterprise
CategoryTree
fetchCategoryList
(
getCategoryFn
,
params
,
type
)
}
break
...
...
src/pages/lxMall/components/FloorAnchor/index.less
View file @
fd9e08a3
...
...
@@ -4,8 +4,10 @@
margin: 0 auto;
z-index: 9;
.anchor {
position: absolute;
overflow: hidden;
top: 20px;
width: 88px;
left: -128px;
...
...
@@ -82,4 +84,4 @@
}
}
}
}
\ No newline at end of file
}
src/store/site/index.ts
View file @
fd9e08a3
...
...
@@ -28,7 +28,7 @@ class SiteStore implements ISiteModule {
siteId
:
this
.
siteId
}
const
res
=
await
PublicApi
.
getTemplate
PlatformFindUseTemplateBySi
te
(
param
)
const
res
=
await
PublicApi
.
getTemplate
WebPageTemplateWebFindEnterpriseTempla
te
(
param
)
runInAction
(()
=>
{
this
.
mallTemplateInfo
=
res
.
data
||
{}
this
.
mallTemplateId
=
this
.
mallTemplateInfo
.
id
...
...
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