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
8b74ce94
Commit
8b74ce94
authored
Jun 19, 2020
by
yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
af9b218a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
test.js
src/api/test.js
+6
-1
index.vue
src/components/Search/index.vue
+6
-2
No files found.
src/api/test.js
View file @
8b74ce94
...
@@ -149,10 +149,15 @@ export const get = {
...
@@ -149,10 +149,15 @@ export const get = {
})
})
},
},
// 首页 tabs列表查询课程 请求
// 首页 tabs列表查询课程 请求
getListAllLesson
:
(
params
)
=>
{
getListAllLesson
:
(
params
,
that
)
=>
{
return
axios
({
return
axios
({
url
:
api
.
ListAllLesson
,
url
:
api
.
ListAllLesson
,
method
:
'get'
,
method
:
'get'
,
cancelToken
:
new
axiosIns
.
CancelToken
(
function
executor
(
c
)
{
// 设置 cancel token
if
(
that
)
{
that
.
sourceCnacle
=
c
}
}),
params
:
params
params
:
params
})
})
},
},
...
...
src/components/Search/index.vue
View file @
8b74ce94
...
@@ -234,7 +234,8 @@ export default {
...
@@ -234,7 +234,8 @@ export default {
},
{
},
{
name
:
'返积分'
name
:
'返积分'
}],
}],
valueIndex
:
[
1
,
0
,
1
]
valueIndex
:
[
1
,
0
,
1
],
sourceCnacle
:
''
}
}
},
},
methods
:
{
methods
:
{
...
@@ -293,6 +294,9 @@ export default {
...
@@ -293,6 +294,9 @@ export default {
if
(
reg
.
test
(
this
.
value
))
{
if
(
reg
.
test
(
this
.
value
))
{
this
.
value
=
''
this
.
value
=
''
}
}
if
(
this
.
sourceCnacle
)
{
this
.
sourceCnacle
()
}
const
res
=
await
get
.
getListAllLesson
({
const
res
=
await
get
.
getListAllLesson
({
valueConsumeSort
:
this
.
freeValue
!==
'1'
&&
this
.
costValue
===
'1'
?
'0'
:
this
.
freeValue
===
'1'
&&
this
.
costValue
===
'1'
&&
this
.
returnValue
===
'1'
?
'0'
:
''
,
// 积分消耗(1升序 0降序)
valueConsumeSort
:
this
.
freeValue
!==
'1'
&&
this
.
costValue
===
'1'
?
'0'
:
this
.
freeValue
===
'1'
&&
this
.
costValue
===
'1'
&&
this
.
returnValue
===
'1'
?
'0'
:
''
,
// 积分消耗(1升序 0降序)
valueGainSort
:
(
this
.
returnValue
===
'1'
&&
this
.
costValue
===
'1'
)
?
'0'
:
this
.
returnValue
===
'1'
?
'0'
:
''
,
// 积分奖励(1升序 0降序)
valueGainSort
:
(
this
.
returnValue
===
'1'
&&
this
.
costValue
===
'1'
)
?
'0'
:
this
.
returnValue
===
'1'
?
'0'
:
''
,
// 积分奖励(1升序 0降序)
...
@@ -310,7 +314,7 @@ export default {
...
@@ -310,7 +314,7 @@ export default {
viewParam
:
this
.
value
,
viewParam
:
this
.
value
,
page
:
1
,
page
:
1
,
rows
:
this
.
pageNum
rows
:
this
.
pageNum
})
}
,
this
)
// 遍历 学习人数和评论人数
// 遍历 学习人数和评论人数
res
.
data
.
data
.
rows
.
map
((
list
)
=>
{
res
.
data
.
data
.
rows
.
map
((
list
)
=>
{
if
(
this
.
returnValue
===
'1'
)
{
if
(
this
.
returnValue
===
'1'
)
{
...
...
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