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
e9b430d0
Commit
e9b430d0
authored
Nov 11, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发现
parent
367f3618
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
2661 additions
and
2 deletions
+2661
-2
discoveryModule.js
src/api/discoveryModule.js
+74
-0
tourManage.js
src/api/tourManage.js
+1
-2
index.js
src/router/index.js
+27
-0
index.js
src/utils/index.js
+12
-0
clapIndex.vue
src/views/discoveryModule/clapIndex.vue
+728
-0
addressModal.vue
src/views/discoveryModule/modal/addressModal.vue
+427
-0
questionsAndAnswers.vue
src/views/discoveryModule/questionsAndAnswers.vue
+676
-0
shortVideo.vue
src/views/discoveryModule/shortVideo.vue
+716
-0
No files found.
src/api/discoveryModule.js
0 → 100644
View file @
e9b430d0
import
fetch
from
'utils/fetch'
;
/**
* 获取消息列表
* @param query
*/
export
function
page
(
query
)
{
return
fetch
({
url
:
'/api/im/msg/bg/app/unauth/list'
,
method
:
'post'
,
data
:
query
});
}
/**
* 获取更新
* @param query
*/
export
function
updateMsg
(
params
)
{
return
fetch
({
url
:
'/api/im/msg/bg/app/unauth/update'
,
method
:
'post'
,
data
:
params
});
}
/**
* 删除消息
*/
export
function
delMsg
(
query
)
{
return
fetch
({
url
:
'/api/im/msg/bg/app/unauth/delete'
,
method
:
'get'
,
params
:
query
});
}
/**
* 获取问答列表
*/
export
function
geImQuestionList
(
query
)
{
return
fetch
({
url
:
'/api/im/imQuestion/list'
,
method
:
'get'
,
params
:
query
});
}
/**
* 更新问答
* @param query
*/
export
function
updateImQuestion
(
params
)
{
return
fetch
({
url
:
'/api/im/imQuestion/bg/app/unauth/update'
,
method
:
'post'
,
data
:
params
});
}
/**
* 删除消息
*/
export
function
delQuestion
(
query
)
{
return
fetch
({
url
:
'/api/im/imQuestion/bg/app/unauth/delete'
,
method
:
'get'
,
params
:
query
});
}
src/api/tourManage.js
View file @
e9b430d0
...
@@ -31,7 +31,6 @@ export function getOneGoodsById(query) {
...
@@ -31,7 +31,6 @@ export function getOneGoodsById(query) {
}
}
/**
/**
* 获取bannerList
* 获取bannerList
// url: '/api/tour/admin/tourBanner/page',
*/
*/
export
function
getBannerList
(
query
)
{
export
function
getBannerList
(
query
)
{
return
fetch
({
return
fetch
({
...
@@ -41,7 +40,7 @@ export function getBannerList(query) {
...
@@ -41,7 +40,7 @@ export function getBannerList(query) {
});
});
}
}
/**
/**
* 添加banner
'/api/tour/admin/tourBanner',
* 添加banner
*/
*/
export
function
addBanner
(
params
)
{
export
function
addBanner
(
params
)
{
return
fetch
({
return
fetch
({
...
...
src/router/index.js
View file @
e9b430d0
...
@@ -309,6 +309,33 @@ export const asyncRouterMap = [{
...
@@ -309,6 +309,33 @@ export const asyncRouterMap = [{
}
}
]
]
},
},
{
path
:
'/discoveryModule'
,
component
:
Layout
,
name
:
'发现模块'
,
icon
:
'setting'
,
authority
:
'discoveryModule'
,
children
:
[
{
path
:
'clapIndex'
,
component
:
_import
(
'discoveryModule/clapIndex'
),
name
:
'拍拍'
,
authority
:
'clapIndex'
},
{
path
:
'shortVideo'
,
component
:
_import
(
'discoveryModule/shortVideo'
),
name
:
'短视频'
,
authority
:
'shortVideo'
},
{
path
:
'questionsAndAnswers'
,
component
:
_import
(
'discoveryModule/questionsAndAnswers'
),
name
:
'问答'
,
authority
:
'questionsAndAnswers'
}
]
},
{
{
path
:
'/campsiteManage'
,
path
:
'/campsiteManage'
,
component
:
Layout
,
component
:
Layout
,
...
...
src/utils/index.js
View file @
e9b430d0
...
@@ -268,3 +268,15 @@
...
@@ -268,3 +268,15 @@
}
}
return
targetObj
;
return
targetObj
;
}
}
/**
* 深拷贝
*/
export
function
objDeepCopy
(
source
)
{
const
sourceCopy
=
source
instanceof
Array
?
[]
:
{};
for
(
const
item
in
source
)
{
sourceCopy
[
item
]
=
typeof
source
[
item
]
===
'object'
?
objDeepCopy
(
source
[
item
])
:
source
[
item
];
}
return
sourceCopy
;
}
src/views/discoveryModule/clapIndex.vue
0 → 100644
View file @
e9b430d0
This diff is collapsed.
Click to expand it.
src/views/discoveryModule/modal/addressModal.vue
0 → 100644
View file @
e9b430d0
This diff is collapsed.
Click to expand it.
src/views/discoveryModule/questionsAndAnswers.vue
0 → 100644
View file @
e9b430d0
This diff is collapsed.
Click to expand it.
src/views/discoveryModule/shortVideo.vue
0 → 100644
View file @
e9b430d0
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