Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mt-education-mobile
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
王旭
mt-education-mobile
Commits
03380de1
Commit
03380de1
authored
Jan 06, 2020
by
wangjiankun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询结果点击卡片后 返回记录查询结果 筛选也实现
parent
c8c938aa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
12 deletions
+46
-12
NavBar.vue
src/components/NavBar.vue
+10
-2
index.vue
src/components/Search/index.vue
+20
-4
index.js
src/utils/index.js
+16
-6
No files found.
src/components/NavBar.vue
View file @
03380de1
...
...
@@ -99,7 +99,11 @@ export default {
name
:
this
.
$route
.
query
.
routerPage
,
params
:
{
searchFocus
:
'focus'
,
searchContent
:
this
.
$route
.
query
.
searchContent
searchContent
:
this
.
$route
.
query
.
searchContent
,
screenType
:
this
.
$route
.
query
.
screenType
,
screenlableIndex
:
this
.
$route
.
query
.
screenlableIndex
,
screenlableId
:
this
.
$route
.
query
.
screenlableId
,
screenValue
:
this
.
$route
.
query
.
screenValue
}
})
}
else
if
(
this
.
$route
.
name
===
'TrainDetail'
&&
this
.
$route
.
query
.
pageName
&&
this
.
$route
.
query
.
pageName
===
'courseSearch'
)
{
...
...
@@ -107,7 +111,11 @@ export default {
name
:
this
.
$route
.
query
.
routerPage
,
params
:
{
searchFocus
:
'focus'
,
searchContent
:
this
.
$route
.
query
.
searchContent
searchContent
:
this
.
$route
.
query
.
searchContent
,
screenType
:
this
.
$route
.
query
.
screenType
,
screenlableIndex
:
this
.
$route
.
query
.
screenlableIndex
,
screenlableId
:
this
.
$route
.
query
.
screenlableId
,
screenValue
:
this
.
$route
.
query
.
screenValue
}
})
}
else
if
(
this
.
$route
.
name
===
'Classification'
)
{
...
...
src/components/Search/index.vue
View file @
03380de1
...
...
@@ -56,7 +56,7 @@
class=
"con-box large-con-box"
v-for=
"(item,index) in tabsContentList"
:key=
"index"
@
click=
"$curriculumTrainRouter(item.lessonType, item.businessId, '', item.valueConsume, item.lecturerId, item.lessonName,'courseSearch',value,$route.name)"
@
click=
"$curriculumTrainRouter(item.lessonType, item.businessId, '', item.valueConsume, item.lecturerId, item.lessonName,'courseSearch',value,$route.name
, typeCurrent,labelCurrent,labelId,valueIndex
)"
>
<curriculum
:item=
"item"
...
...
@@ -229,7 +229,8 @@ export default {
name
:
'收费(消耗积分)'
},
{
name
:
'返积分'
}]
}],
valueIndex
:
''
}
},
methods
:
{
...
...
@@ -337,6 +338,7 @@ export default {
},
// 点击积分 事件
pointClick
(
index
)
{
this
.
valueIndex
=
index
console
.
log
(
index
,
'88888888888888888'
)
if
(
index
===
0
)
{
this
.
costValue
===
'1'
?
this
.
costValue
=
''
:
this
.
costValue
=
'1'
...
...
@@ -382,8 +384,22 @@ export default {
}
},
mounted
()
{
// this.HomeBLessons()
// this.Course()
if
(
this
.
$route
.
params
.
screenType
!==
undefined
||
this
.
$route
.
params
.
screenlable
!==
undefined
||
this
.
$route
.
params
.
screenValue
!==
undefined
)
{
if
(
this
.
$route
.
params
.
screenType
!==
undefined
)
{
this
.
typeClick
(
this
.
$route
.
params
.
screenType
)
}
if
(
this
.
$route
.
params
.
screenlableIndex
!==
undefined
&&
this
.
$route
.
params
.
screenlableId
!==
undefined
)
{
this
.
labelClick
(
this
.
$route
.
params
.
screenlableIndex
,
this
.
$route
.
params
.
screenlableId
)
}
if
(
this
.
$route
.
params
.
screenValue
!==
undefined
)
{
this
.
pointClick
(
this
.
$route
.
params
.
screenValue
)
}
}
this
.
ListAllLesson
()
delete
this
.
$route
.
params
.
screenValue
delete
this
.
$route
.
params
.
screenType
delete
this
.
$route
.
params
.
screenlableIndex
delete
this
.
$route
.
params
.
screenlableId
}
}
</
script
>
...
...
src/utils/index.js
View file @
03380de1
...
...
@@ -397,8 +397,7 @@ export function removeClass(ele, cls) {
* @param lecturerId 讲师ID
* @param lessonName 课程名称
*/
export
function
curriculumTrainRouter
(
lessonType
,
id
,
fromName
,
valueConsume
,
lecturerId
,
lessonName
,
searchCourse
,
searchContent
,
routerPage
)
{
console
.
log
(
this
.
$route
)
export
function
curriculumTrainRouter
(
lessonType
,
id
,
fromName
,
valueConsume
,
lecturerId
,
lessonName
,
searchCourse
,
searchContent
,
routerPage
,
screenType
,
screenlableIndex
,
screenlableId
,
screenValue
)
{
// 当前登录人请求
get
.
getMyCurInfo
({
requireId
:
''
...
...
@@ -431,8 +430,11 @@ export function curriculumTrainRouter(lessonType, id, fromName, valueConsume, le
id
:
id
,
pageName
:
searchCourse
,
searchContent
:
searchContent
,
routerPage
routerPage
,
screenType
,
screenlableIndex
,
screenlableId
,
screenValue
}
})
}
else
{
...
...
@@ -454,7 +456,11 @@ export function curriculumTrainRouter(lessonType, id, fromName, valueConsume, le
id
:
id
,
pageName
:
searchCourse
,
searchContent
:
searchContent
,
routerPage
routerPage
,
screenType
,
screenlableIndex
,
screenlableId
,
screenValue
}
})
}
else
{
...
...
@@ -477,7 +483,11 @@ export function curriculumTrainRouter(lessonType, id, fromName, valueConsume, le
role
:
'people'
,
pageName
:
searchCourse
,
searchContent
:
searchContent
,
routerPage
routerPage
,
screenType
,
screenlableIndex
,
screenlableId
,
screenValue
}
})
}
else
{
...
...
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