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
提交
a3844f8b
提交
a3844f8b
编写于
11月 22, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev-app-home-1029' into Branch_tag-app
上级
d7b8e637
a2a2c07b
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
64 行增加
和
88 行删除
+64
-88
yqy-adjust.vue
src/components/business-new/yqy-adjust.vue
+14
-23
yqy-teacher-list.vue
src/components/business-new/yqy-teacher-list.vue
+3
-3
index.js
src/utils/index.js
+1
-1
home-new.vue
src/views/home/home-new.vue
+46
-61
未找到文件。
src/components/business-new/yqy-adjust.vue
浏览文件 @
a3844f8b
...
...
@@ -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
:{
...
...
@@ -87,9 +88,9 @@ 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
浏览文件 @
a3844f8b
...
...
@@ -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
=
{
...
...
src/utils/index.js
浏览文件 @
a3844f8b
...
...
@@ -239,7 +239,7 @@ export function jumpEvaluatPage(){
// test1地址
// const baseUrl = 'https://test1-sc.yunqueyi.com/'
// const apiUrl = 'https://test1-api.yunqueyi.com/'
// const evaluatPageUrl = 'https://test1-phome.yunqueyi.com/gpr/#/home'
// const evaluatPageUrl = 'http
://10.177.10.225:9001/#/home' || 'http
s://test1-phome.yunqueyi.com/gpr/#/home'
// export const jumpWebPageUrl = 'https://test1-phome.yunqueyi.com/appl/#/'
...
...
src/views/home/home-new.vue
浏览文件 @
a3844f8b
<
template
>
<div
class=
"main-body"
ref=
"wrapper"
:style=
"
{ height: (wrapperHeight-50) + 'px' }">
<div
class=
"main-body"
ref=
"wrapper"
>
<section
:class=
"isIntStyle"
>
<!--展开收起学习评价-->
<YqyTopEvaluat
:isShowEvluat=
"isShowEvluat"
v-if=
"isShowEvluat"
:parmData=
"evaluctObj"
v-on:evluatFun=
"getEluatFun"
/>
...
...
@@ -10,26 +8,26 @@
<div
class=
"home-topMenu"
>
<YqyHomeHeader
:msgCount=
"msgCount"
:searchFix=
"searchFix"
v-on:setAppMsg=
"goAppMsg"
/>
</div>
<div
class=
"banner-container swiper-container"
>
<
!--
<
div
class=
"banner-container swiper-container"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"banner-slide swiper-slide"
v-for=
"(item,index) in listSwiper"
:key=
"index"
>
<img
:src=
"item.imageUrl"
@
click=
"goLinkByswiper(item)"
/>
</div>
</div>
<!--需要焦点按钮时加这段div-->
<div
class=
"banner-pagination pagination"
>
<span></span>
</div>
</div>
<
!--
<
div
class=
"swiper"
>
<mt-swipe
:auto=
"
0"
:speed=
"speedSwiper
"
>
</div>
-->
<div
class=
"swiper"
>
<mt-swipe
:auto=
"
3000"
:speed=
"speedSwiper"
:stopPropagation=
"prevent
"
>
<mt-swipe-item
v-for=
"(item,index) in listSwiper"
:key=
"index"
>
<img
:src=
"item.imageUrl"
@
click=
"goLinkByswiper(item)"
/>
</mt-swipe-item>
</mt-swipe>
</div>
-->
</div>
</section>
<section
class=
"home-body"
>
<YqyHomeBanner
:parmData=
"iconList"
:userToken=
"userToken"
/>
...
...
@@ -77,8 +75,8 @@
</a>
</section>
</section>
</div>
</
template
>
...
...
@@ -86,6 +84,7 @@
<
script
>
import
{
Swipe
,
SwipeItem
,
Header
}
from
'mint-ui'
;
// import { setEventByModuleCode } from '@/utils/index'
// import pullRefresh from '../../components/common/pullrefresh'
import
BackTop
from
'../../components/common/backTop'
;
import
YqyTeacherList
from
'../../components/business-new/yqy-teacher-list'
;
import
YqyTopEvaluat
from
'../../components/business-new/yqy-home-learn-evaluation'
;
...
...
@@ -101,6 +100,7 @@ export default {
data
(){
return
{
wrapperHeight
:
0
,
prevent
:
true
,
topDistance
:
20
,
allLoaded
:
false
,
isAutoFill
:
false
,
...
...
@@ -118,7 +118,7 @@ export default {
fiveList
:[],
//五分钟医学院
adjustList
:[],
//为您推荐
isBodyPull
:
false
,
speedSwiper
:
2
0
,
speedSwiper
:
30
0
,
stopPropagation
:
true
,
isIntStyle
:
''
,
listSwiper
:[],
//轮播图数据
...
...
@@ -145,6 +145,7 @@ export default {
isFailTeaches
:
false
,
isFailFive
:
false
,
adjustPageNo
:
1
,
setTimer
:
null
,
}
},
components
:{
...
...
@@ -170,7 +171,7 @@ export default {
window
.
__nativeCallMsg
=
function
(
params
){
_this
.
msgCount
=
params
.
msgNum
||
''
;
//
alert(_this.msgCount);
//
alert(_this.msgCount);
}
...
...
@@ -182,9 +183,15 @@ export default {
}
window
.
__refresh
=
function
(
params
){
_this
.
isShowEvluat
=
false
;
_this
.
isIntStyle
=
''
;
_this
.
adjustPageNo
=
1
;
if
(
_this
.
setTimer
!=
null
){
clearInterval
(
_this
.
setTimer
);
_this
.
isShowEvluat
=
false
;
_this
.
isIntStyle
=
''
;
}
//alert(_this.isShowEvluat);
//返回
if
(
_this
.
isRefreshFromBack
){
...
...
@@ -225,23 +232,20 @@ export default {
if
(
parm
.
userMobile
&&
parm
.
userMobile
!=
''
){
_this
.
getKeepData
(
parm
.
userToken
);
}
_this
.
initByToken
(
parm
.
userToken
);
_this
.
initByToken
(
parm
.
userToken
);
}
//_this.getStatusHight();
// _this.token = '3315E74ABBEC49E98B9FC8FF18A7F838';
//
// _this.token = '593F679F62964076AF1C7489DA3343ED';
// _this.msgCount = '2'
// _this.isShowKeep = true;
// _this.isHeightFromApp = true;
// _this.getKeepData(_this.token);
// _this.initByToken(_this.token
);
//_this.initByToken('593F679F62964076AF1C7489DA3343ED'
);
// _this.getIconData(_this.token);
// _this.isIntStyle = 'font-style pull-down';
// _this.fiveTimePull();
...
...
@@ -265,7 +269,6 @@ export default {
isShowEvluat
:
function
(
n
){
///alert(n);
if
(
!
n
&&
this
.
isIntStyle
==
'font-style pull-up'
){
///alert("000");
rocNative
.
setTabMiniIcon
({
tabIndex
:
3
,
iconTitle
:
'学习评价'
,
...
...
@@ -279,30 +282,6 @@ export default {
methods
:{
//再次执行请求
sendAgain
(){
let
_this
=
this
;
if
(
_this
.
isFailSwiper
==
2
){
_this
.
getSwiper
()
}
if
(
_this
.
isFailCatagory1
){
_this
.
getIconData
();
}
if
(
_this
.
isFailCatagory2
){
_this
.
this
.
getMiddel
();
}
if
(
_this
.
isFailCatagory3
){
_this
.
this
.
getCategoryData
();
}
if
(
_this
.
isFailTeaches
){
_this
.
getYqDoctorData
();
}
if
(
_this
.
isFailFive
){
_this
.
getFiveData
();
}
},
goAppMsg
(){
this
.
isRefrshMsg
=
true
;
...
...
@@ -319,15 +298,15 @@ export default {
//轮播图开始滚动
swiperFun
(){
var
swiper
=
new
Swiper
(
'.swiper-container'
,
{
speed
:
600
,
//loop: true,
observer
:
true
,
observeParents
:
true
,
autoplayDisableOnInteraction
:
false
,
autoplay
:
3000
,
pagination
:
'.pagination'
});
//
var swiper = new Swiper('.swiper-container', {
//
speed: 600,
//
//loop: true,
//
observer:true,
//
observeParents:true,
//
autoplayDisableOnInteraction : false,
//
autoplay:3000,
//
pagination: '.pagination'
//
});
},
...
...
@@ -409,8 +388,12 @@ export default {
token
:
userToken
,
}
}
clearInterval
(
_this
.
setTimer
);
_this
.
isShowEvluat
=
false
;
_this
.
isIntStyle
=
''
_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",
...
...
@@ -429,7 +412,8 @@ export default {
}
else
{
_this
.
isShowEvluat
=
_this
.
evaluctObj
.
showFlag
;
_this
.
isShowEvluat
=
res
.
data
.
showFlag
;
if
(
!
_this
.
isShowEvluat
){
_this
.
isIntStyle
=
''
}
else
{
...
...
@@ -593,7 +577,7 @@ export default {
//为您推荐
getAdjustData
(
userToken
){
//alert(userToken);
this
.
adjustList
=
[]
let
_this
=
this
,
parm
=
{
...
...
@@ -701,6 +685,7 @@ export default {
if
(
this
.
isIntStyle
==
'font-style pull-down'
){
this
.
isIntStyle
=
'font-style pull-up'
;
clearInterval
(
this
.
setTimer
)
this
.
isShowEvluat
=
false
;
}
var
adjustTop
=
0
;
...
...
@@ -742,12 +727,12 @@ export default {
//五秒之后收起
fiveTimePull
(){
let
_this
=
this
;
let
setTimer
=
setInterval
(
function
(){
_this
.
setTimer
=
setInterval
(
function
(){
_this
.
isIntStyle
=
'font-style pull-up'
;
_this
.
isShowEvluat
=
false
;
///alert("0")
clearInterval
(
setTimer
)
},
60
000
);
clearInterval
(
_this
.
setTimer
)
},
5
000
);
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录