Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
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
吴迪
gs1
Commits
b6009ded
Commit
b6009ded
authored
Dec 08, 2021
by
tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加定制服务接口
parent
29a12846
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
home.js
src/axios/module/home.js
+16
-3
No files found.
src/axios/module/home.js
View file @
b6009ded
import
{
import
{
POST
POST
,
POSTFORM
,
UPLOAD
}
from
"../fetch.js"
}
from
"../fetch.js"
const
Prefix
=
process
.
env
.
NODE_ENV
===
'development'
?
'/gs1'
:
''
;
const
Prefix
=
process
.
env
.
NODE_ENV
===
'development'
?
'/gs1'
:
''
;
// 首页大轮播图
// 首页大轮播图
const
homeBigImages
=
(
params
=
{})
=>
{
const
homeBigImages
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/indexCarouselManage/api/bigImages`
,
params
)
return
POST
(
`
${
Prefix
}
/office/indexCarouselManage/api/bigImages`
,
params
)
}
}
// 要闻左侧图片资讯
// 要闻左侧图片资讯
const
homePictureImageList
=
(
params
=
{})
=>
{
const
homePictureImageList
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/picture/api/pictureImageList`
,
params
)
return
POST
(
`
${
Prefix
}
/office/picture/api/pictureImageList`
,
params
)
}
}
...
@@ -32,6 +32,17 @@ const homeSmallImages = (params = {}) => {
...
@@ -32,6 +32,17 @@ const homeSmallImages = (params = {}) => {
return
POST
(
`
${
Prefix
}
/office/indexCarouselManage/api/smallImages`
,
params
)
return
POST
(
`
${
Prefix
}
/office/indexCarouselManage/api/smallImages`
,
params
)
}
}
// 获取定制服务
const
customService
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/userfunctionbinding/api/find`
,
params
)
}
// 更新定制服务
const
updateCustomService
=
(
params
=
{})
=>
{
return
POSTFORM
(
`
${
Prefix
}
/office/userfunctionbinding/api/update`
,
params
)
}
export
default
{
export
default
{
homeBigImages
,
homeBigImages
,
...
@@ -39,4 +50,6 @@ export default {
...
@@ -39,4 +50,6 @@ export default {
homeImportantNewList
,
homeImportantNewList
,
homeGet4PartyTopNews
,
homeGet4PartyTopNews
,
homeSmallImages
,
homeSmallImages
,
customService
,
updateCustomService
,
}
}
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