Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
online-edu-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Redmine
Redmine
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
online-edu
online-edu-admin
Commits
b434c5cc
Commit
b434c5cc
authored
Jun 01, 2021
by
Liu Peng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成首页配置
parent
948f1d0a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
settings.js
src/api/biz/settings.js
+29
-0
index.vue
src/views/biz/homePageSetting/index.vue
+0
-0
No files found.
src/api/biz/settings.js
View file @
b434c5cc
...
@@ -12,3 +12,32 @@ export const fetchAllSwiper = () => {
...
@@ -12,3 +12,32 @@ export const fetchAllSwiper = () => {
export
const
fetchHomeTags
=
()
=>
{
export
const
fetchHomeTags
=
()
=>
{
return
request
(
"get"
,
"/api/mgr/mainPageTagConfig"
,
{});
return
request
(
"get"
,
"/api/mgr/mainPageTagConfig"
,
{});
};
};
export
const
fetchAvaliHomeTags
=
(
data
)
=>
{
return
request
(
"post"
,
"/api/mgr/mainPageTagConfig/tags"
,
{
data
});
};
export
const
addHomeTag
=
(
tag
)
=>
{
return
request
(
"post"
,
"/api/mgr/mainPageTagConfig/add"
,
tag
);
};
export
const
removeHomeTag
=
(
tagId
)
=>
{
return
request
(
"get"
,
`/api/mgr/mainPageTagConfig/delete/
${
tagId
}
`
,
{});
};
export
const
fetchRecVideos
=
()
=>
{
return
request
(
"get"
,
`/api/mgr/recommendConfig/list`
,
{});
};
export
const
fetchAvailRecVideos
=
(
data
)
=>
{
return
request
(
"post"
,
`/api/mgr/recommendConfig/select`
,
{
data
});
};
export
const
addHomeRecVideos
=
(
data
)
=>
{
return
request
(
"post"
,
`/api/mgr/recommendConfig/add`
,
data
);
};
export
const
removeHomeRecVideos
=
(
id
)
=>
{
return
request
(
"get"
,
`/api/mgr/recommendConfig/delete/
${
id
}
`
,
{});
};
src/views/biz/homePageSetting/index.vue
View file @
b434c5cc
This diff is collapsed.
Click to expand it.
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