Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
517aaa24
提交
517aaa24
编写于
11月 21, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
8d47241c
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
16 行增加
和
25 行删除
+16
-25
yqy-adjust.vue
src/components/business-new/yqy-adjust.vue
+13
-22
yqy-teacher-list.vue
src/components/business-new/yqy-teacher-list.vue
+3
-3
未找到文件。
src/components/business-new/yqy-adjust.vue
浏览文件 @
517aaa24
...
...
@@ -47,7 +47,7 @@ export default {
data
()
{
return
{
list
:[],
pageNo
:
1
,
pageNo
:
2
,
isDisabled
:
false
,
pageSize
:
10
,
title
:
'为您推荐'
,
...
...
@@ -62,6 +62,7 @@ export default {
ptop
:
20
,
popHeight
:
0
,
menuptop
:
0
,
isReauestBack
:
true
,
}
},
props
:{
...
...
@@ -89,7 +90,7 @@ export default {
mounted
(){
this
.
list
=
this
.
parmData
;
this
.
pageNo
=
this
.
adjustPageNo
;
//
this.pageNo = this.adjustPageNo;
// if(window.__isAndroid){
// this.popHeight = this.statusBarHeight/2
...
...
@@ -180,13 +181,14 @@ export default {
//滑动加载更多
loadMore
(){
let
_this
=
this
;
// alert(_this.pageNo);
if
(
!
_this
.
noMore
){
_this
.
pageNo
+=
1
;
if
(
_this
.
isReauestBack
){
_this
.
isLoading
=
true
;
_this
.
loading
=
true
;
//埋点
this
.
pageBurialPoin
({
menuLevel
:
1
,
...
...
@@ -256,37 +258,26 @@ export default {
token
:
_this
.
userToken
,
setEntry
:
'headers'
}
_this
.
GET
(
'contents/courses/recommendCourseList'
,
parm
).
then
(
function
(
res
){
if
(
res
.
code
===
'000000'
){
if
(
res
.
data
==
null
||
!
res
.
data
){
if
(
res
.
data
==
null
||
res
.
data
.
length
==
0
){
res
.
data
=
[];
_this
.
isLoading
=
false
;
_this
.
noMore
=
true
;
_this
.
loading
=
true
;
_this
.
isReauestBack
=
false
;
}
else
{
_this
.
isReauestBack
=
true
;
_this
.
list
=
[...
_this
.
list
,...
res
.
data
];
_this
.
isLoading
=
true
;
_this
.
noMore
=
false
;
_this
.
loading
=
false
;
_this
.
pageNo
+=
1
;
}
// if(type == 'loadMore'){
// _this.list = [..._this.list ,...res.data];
// }
// else{
// _this.list = res.data || [];
// }
}
///_this.clientHeight = 'auto'
},
function
(){
_this
.
isLoading
=
false
;
_this
.
noMore
=
false
;
_this
.
loading
=
false
;
})
}
}
...
...
src/components/business-new/yqy-teacher-list.vue
浏览文件 @
517aaa24
...
...
@@ -15,7 +15,7 @@
</p>
<div
class=
"course-opt"
>
<span
class=
"opt-info"
>
{{
!
item
.
showTime
?
''
:
item
.
showTime
+
' |'
}}
{{
item
.
joinNum
}}
人已学
</span>
<span
:class=
"item.whetherFavors==2?'opt collect':'opt collected'"
@
click=
"collectFun(item.whetherFavors,item.id)"
>
<span
:class=
"item.whetherFavors==2?'opt collect':'opt collected'"
@
click=
"collectFun(item.whetherFavors,item.id
,item.name
)"
>
{{
item
.
whetherFavors
==
2
?
'收藏'
:
'已收藏'
}}
</span>
...
...
@@ -100,7 +100,7 @@ export default {
},
//收藏 取消收藏
collectFun
(
status
,
id
){
collectFun
(
status
,
id
,
name
){
// alert(this.userToken)
status
=
status
==
1
?
2
:
1
;
this
.
pageBurialPoin
({
...
...
@@ -109,7 +109,7 @@ export default {
functionCode
:
'f_new_course'
,
actionCode
:
'c_collect'
,
labelId
:
id
,
/// labelValue :item.
name,
labelValue
:
name
,
})
let
_this
=
this
,
parm
=
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录