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
提交
78f50f52
提交
78f50f52
编写于
11月 20, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
27e165e4
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
35 行增加
和
22 行删除
+35
-22
yqy-adjust.vue
src/components/business-new/yqy-adjust.vue
+18
-10
yqy-teacher-list.vue
src/components/business-new/yqy-teacher-list.vue
+2
-2
home-new.vue
src/views/home/home-new.vue
+15
-10
未找到文件。
src/components/business-new/yqy-adjust.vue
浏览文件 @
78f50f52
...
...
@@ -13,7 +13,7 @@
<div
class=
"couse-list"
v-infinite-scroll=
"loadMore"
infinite-scroll-disabled=
"loading"
infinite-scroll-distance=
"10"
:style=
"'height:'+clientHeight"
>
<div
:class=
"index%2==1 ? 'course-item end-left' : 'course-item'"
:key=
"index"
v-for=
"(item,index) in list"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<img
:src=
"item.
appIndexCourse
Url"
class=
"pic-tec"
/>
<img
:src=
"item.
courseInfo
Url"
class=
"pic-tec"
/>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
</div>
<p
class=
"course-txt"
>
...
...
@@ -73,6 +73,10 @@ export default {
type
:
Number
,
default
:
0
},
adjustPageNo
:{
type
:
Number
,
default
:
1
},
userToken
:{
type
:
String
,
default
:
''
...
...
@@ -85,6 +89,7 @@ export default {
mounted
(){
this
.
list
=
this
.
parmData
;
this
.
pageNo
=
this
.
adjustPageNo
;
// if(window.__isAndroid){
// this.popHeight = this.statusBarHeight/2
...
...
@@ -138,7 +143,7 @@ export default {
labelId
:
item
.
id
,
labelValue
:
item
.
name
,
})
this
.
pageNo
=
1
;
this
.
$emit
(
"setRefrshParm"
,{
isclick
:
true
})
let
itemData
=
{
"title"
:
item
.
name
,
...
...
@@ -177,10 +182,11 @@ export default {
loadMore
(){
let
_this
=
this
;
alert
(
_this
.
pageNo
);
if
(
!
_this
.
noMore
){
_this
.
pageNo
+=
1
;
_this
.
isLoading
=
true
;
this
.
loading
=
true
;
_
this
.
loading
=
true
;
//埋点
this
.
pageBurialPoin
({
menuLevel
:
1
,
...
...
@@ -226,7 +232,7 @@ export default {
}
else
{
//alert(res.message);
rocNative
.
showNativeToast
({
message
:
res
.
message
message
:
'注册登陆后才能收藏哦'
})
}
})
...
...
@@ -247,7 +253,7 @@ export default {
parm
=
{
pageNo
:
_this
.
pageNo
,
pageSize
:
_this
.
pageSize
,
token
:
_this
.
t
oken
,
token
:
_this
.
userT
oken
,
setEntry
:
'headers'
}
...
...
@@ -261,17 +267,19 @@ export default {
_this
.
noMore
=
true
;
_this
.
loading
=
true
;
}
else
{
_this
.
list
=
[...
_this
.
list
,...
res
.
data
];
_this
.
isLoading
=
true
;
_this
.
noMore
=
false
;
_this
.
loading
=
false
;
}
if
(
type
==
'loadMore'
){
_this
.
list
=
[...
_this
.
list
,...
res
.
data
];
//
if(type == 'loadMore'){
//
_this.list = [..._this.list ,...res.data];
}
else
{
_this
.
list
=
res
.
data
||
[];
}
// }
// else{
// _this.list = res.data || [];
// }
}
///_this.clientHeight = 'auto'
...
...
src/components/business-new/yqy-teacher-list.vue
浏览文件 @
78f50f52
...
...
@@ -7,7 +7,7 @@
<div
class=
"couse-list"
>
<div
:class=
"index%2==1 ? 'course-item end-left' : 'course-item'"
:key=
"index"
v-for=
"(item,index) in parmData"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<img
:src=
"item.
appIndexCourse
Url"
class=
"pic-tec"
/>
<img
:src=
"item.
courseInfo
Url"
class=
"pic-tec"
/>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
</div>
<p
class=
"course-txt"
>
...
...
@@ -129,7 +129,7 @@ export default {
}
else
{
//alert(res.message);
rocNative
.
showNativeToast
({
message
:
res
.
message
message
:
'注册登陆后才能收藏哦'
})
}
})
...
...
src/views/home/home-new.vue
浏览文件 @
78f50f52
...
...
@@ -64,7 +64,7 @@
<YqyFiveMinutes
:parmData=
"fiveList"
v-if=
"fiveList.length>0"
/>
<!--为你推荐-->
<YqyHomeAdjust
:isFixed=
"isFixed"
:statusBarHeight=
"statusBarHeight"
:parmData=
"adjustList"
v-if=
"adjustList.length>0"
:userToken=
"userToken"
v-on:setRefrshParm=
"getRefrshParm"
/>
<YqyHomeAdjust
:isFixed=
"isFixed"
:statusBarHeight=
"statusBarHeight"
:parmData=
"adjustList"
v-if=
"adjustList.length>0"
:userToken=
"userToken"
v-on:setRefrshParm=
"getRefrshParm"
:adjustPageNo=
"adjustPageNo"
/>
<!--返回顶部-->
<BackTop
v-if=
"isShowBackTop"
/>
...
...
@@ -144,7 +144,7 @@ export default {
isFailCatagory3
:
false
,
isFailTeaches
:
false
,
isFailFive
:
false
,
adjustPageNo
:
1
,
}
},
components
:{
...
...
@@ -184,6 +184,7 @@ export default {
window
.
__refresh
=
function
(
params
){
_this
.
isShowEvluat
=
false
;
_this
.
isIntStyle
=
''
;
_this
.
adjustPageNo
=
1
;
//返回
if
(
_this
.
isRefreshFromBack
){
...
...
@@ -213,8 +214,8 @@ export default {
// alert("token之前");
window
.
__getUserInfo
=
function
(
parm
){
//alert(parm.userToken);
// alert(JSON.stringify(parm))
// alert(JSON.stringify(parm))
_this
.
systemType
=
parm
.
systemType
;
_this
.
appVersion
=
parm
.
appVersion
;
_this
.
token
=
parm
.
userToken
;
...
...
@@ -224,8 +225,10 @@ export default {
if
(
parm
.
userMobile
!=
''
){
_this
.
getKeepData
(
parm
.
userToken
);
}
_this
.
initByToken
(
parm
.
userToken
);
}
...
...
@@ -233,7 +236,7 @@ export default {
// _this.token = 'BE1D60CAE8F24649B4F72D47E964A58B
';
// _this.token = '2AAB78CDCD664925969B296FCB2F01CF
';
// _this.msgCount = '2'
// _this.isShowKeep = true;
// _this.isHeightFromApp = true;
...
...
@@ -250,7 +253,7 @@ export default {
mounted
(){
this
.
wrapperHeight
=
document
.
documentElement
.
clientHeight
-
this
.
$refs
.
wrapper
.
getBoundingClientRect
().
top
;
//
this.wrapperHeight =document.documentElement.clientHeight - this.$refs.wrapper.getBoundingClientRect().top;
window
.
addEventListener
(
'scroll'
,
this
.
scrollFun
);
},
...
...
@@ -407,8 +410,9 @@ export default {
}
}
this
.
GET
(
'contents/gp/v1/homepage'
,
para
).
then
(
res
=>
{
_
this
.
GET
(
'contents/gp/v1/homepage'
,
para
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
// res.data = {
// avatarImageUrl: "https://test-file.yunqueyi.com/File/doctor_default.png",
// certificateAcquireNumOfHospital: 10,
...
...
@@ -609,6 +613,7 @@ export default {
if
(
res
.
code
===
'000000'
){
_this
.
adjustList
=
res
.
data
||
[];
_this
.
adjustPageNo
=
1
;
if
(
_this
.
adjustList
.
length
>
0
){
_this
.
userToken
=
userToken
...
...
@@ -743,7 +748,7 @@ export default {
_this
.
isShowEvluat
=
false
;
///alert("0")
clearInterval
(
setTimer
)
},
5
000
);
},
30
000
);
},
...
...
@@ -773,7 +778,7 @@ export default {
}
}
this
.
GET
(
'
/
contents/HomeColumn/Information'
,
para
).
then
(
res
=>
{
this
.
GET
(
'contents/HomeColumn/Information'
,
para
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
_this
.
listSwiper
=
res
.
data
.
iconColumnInformationModels
||
[];
...
...
@@ -796,7 +801,7 @@ export default {
category
:
1
,
position
:
2
,
setEntry
:
'headers'
,
token
:
_this
.
token
//
token:_this.token
}
this
.
GET
(
'contents/HomeColumn/Information'
,
para
).
then
(
res
=>
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录