Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform-ui
Commits
0939dc54
Commit
0939dc54
authored
Jun 13, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
banner通用设置
parent
b2c7c247
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
463 additions
and
6 deletions
+463
-6
tourManage.js
src/api/tourManage.js
+75
-0
index.js
src/router/index.js
+6
-6
bannerSetting.vue
src/views/baseInfo/bannerSetting.vue
+382
-0
No files found.
src/api/tourManage.js
0 → 100644
View file @
0939dc54
import
fetch
from
'utils/fetch'
;
export
function
page
(
query
)
{
return
fetch
({
url
:
'/api/tour/good/admin/goodList'
,
method
:
'post'
,
data
:
query
});
}
/**
* 编辑、新建旅游路线
* @param query
*/
export
function
goodsEdit
(
query
)
{
return
fetch
({
url
:
'/api/tour/good/admin/goodEdit'
,
method
:
'post'
,
data
:
query
});
}
/**
* 根据旅游id获取旅游详情
*/
export
function
getOneGoodsById
(
query
)
{
return
fetch
({
url
:
'/api/tour/good/admin/goodOne'
,
method
:
'get'
,
params
:
query
});
}
// api/tour/admin/tourBanner
// api/tour/admin/tourBanner/page?pageNo=0&pageSize=10
/**
* 获取bannerList
*/
export
function
getBannerList
(
query
)
{
return
fetch
({
url
:
'/api/tour/admin/tourBanner/page'
,
method
:
'get'
,
params
:
query
});
}
/**
* 添加banner
*/
export
function
addBanner
(
params
)
{
return
fetch
({
url
:
'/api/tour/admin/tourBanner'
,
method
:
'post'
,
data
:
params
});
}
/**
* 修改banner
*/
export
function
editBanner
(
params
)
{
return
fetch
({
url
:
'/api/tour/admin/tourBanner'
,
method
:
'put'
,
data
:
params
});
}
// delBanner
/**
* 修改banner
*/
export
function
delBanner
(
id
)
{
return
fetch
({
url
:
'/api/tour/admin/tourBanner/'
+
id
,
method
:
'delete'
});
}
src/router/index.js
View file @
0939dc54
...
...
@@ -248,6 +248,12 @@ export const asyncRouterMap = [{
component
:
_import
(
'baseInfo/generalSetting'
),
name
:
'通用设置'
,
authority
:
'generalSetting'
},
{
path
:
'bannerSetting'
,
component
:
_import
(
'baseInfo/bannerSetting'
),
name
:
'banner设置'
,
authority
:
'bannerSetting'
}
]
},
...
...
@@ -329,12 +335,6 @@ export const asyncRouterMap = [{
component
:
_import
(
'tourManage/tourLabel'
),
name
:
'旅行标签设置'
,
authority
:
'tourLabel'
},
{
path
:
'bannerSetting'
,
component
:
_import
(
'tourManage/bannerSetting'
),
name
:
'banner设置'
,
authority
:
'bannerSetting'
}
]
}
...
...
src/views/baseInfo/bannerSetting.vue
0 → 100644
View file @
0939dc54
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