Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
a2a2c07b
提交
a2a2c07b
编写于
11月 22, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
240cffee
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
21 行增加
和
45 行删除
+21
-45
home-new.vue
src/views/home/home-new.vue
+21
-45
未找到文件。
src/views/home/home-new.vue
浏览文件 @
a2a2c07b
<
template
>
<
template
>
<div
class=
"main-body"
ref=
"wrapper"
:style=
"
{ height: (wrapperHeight-50) + 'px' }">
<div
class=
"main-body"
ref=
"wrapper"
>
<section
:class=
"isIntStyle"
>
<section
:class=
"isIntStyle"
>
<!--展开收起学习评价-->
<!--展开收起学习评价-->
<YqyTopEvaluat
:isShowEvluat=
"isShowEvluat"
v-if=
"isShowEvluat"
:parmData=
"evaluctObj"
v-on:evluatFun=
"getEluatFun"
/>
<YqyTopEvaluat
:isShowEvluat=
"isShowEvluat"
v-if=
"isShowEvluat"
:parmData=
"evaluctObj"
v-on:evluatFun=
"getEluatFun"
/>
...
@@ -10,26 +8,26 @@
...
@@ -10,26 +8,26 @@
<div
class=
"home-topMenu"
>
<div
class=
"home-topMenu"
>
<YqyHomeHeader
:msgCount=
"msgCount"
:searchFix=
"searchFix"
v-on:setAppMsg=
"goAppMsg"
/>
<YqyHomeHeader
:msgCount=
"msgCount"
:searchFix=
"searchFix"
v-on:setAppMsg=
"goAppMsg"
/>
</div>
</div>
<div
class=
"banner-container swiper-container"
>
<
!--
<
div
class=
"banner-container swiper-container"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"banner-slide swiper-slide"
v-for=
"(item,index) in listSwiper"
:key=
"index"
>
<div
class=
"banner-slide swiper-slide"
v-for=
"(item,index) in listSwiper"
:key=
"index"
>
<img
:src=
"item.imageUrl"
@
click=
"goLinkByswiper(item)"
/>
<img
:src=
"item.imageUrl"
@
click=
"goLinkByswiper(item)"
/>
</div>
</div>
</div>
</div>
<!--需要焦点按钮时加这段div-->
<div
class=
"banner-pagination pagination"
>
<div
class=
"banner-pagination pagination"
>
<span></span>
<span></span>
</div>
</div>
</div>
</div>
-->
<
!--
<
div
class=
"swiper"
>
<div
class=
"swiper"
>
<mt-swipe
:auto=
"
0"
:speed=
"speedSwiper
"
>
<mt-swipe
:auto=
"
3000"
:speed=
"speedSwiper"
:stopPropagation=
"prevent
"
>
<mt-swipe-item
v-for=
"(item,index) in listSwiper"
:key=
"index"
>
<mt-swipe-item
v-for=
"(item,index) in listSwiper"
:key=
"index"
>
<img
:src=
"item.imageUrl"
@
click=
"goLinkByswiper(item)"
/>
<img
:src=
"item.imageUrl"
@
click=
"goLinkByswiper(item)"
/>
</mt-swipe-item>
</mt-swipe-item>
</mt-swipe>
</mt-swipe>
</div>
-->
</div>
</section>
</section>
<section
class=
"home-body"
>
<section
class=
"home-body"
>
<YqyHomeBanner
:parmData=
"iconList"
:userToken=
"userToken"
/>
<YqyHomeBanner
:parmData=
"iconList"
:userToken=
"userToken"
/>
...
@@ -77,8 +75,8 @@
...
@@ -77,8 +75,8 @@
</a>
</a>
</section>
</section>
</section>
</section>
</div>
</div>
</
template
>
</
template
>
...
@@ -86,6 +84,7 @@
...
@@ -86,6 +84,7 @@
<
script
>
<
script
>
import
{
Swipe
,
SwipeItem
,
Header
}
from
'mint-ui'
;
import
{
Swipe
,
SwipeItem
,
Header
}
from
'mint-ui'
;
// import { setEventByModuleCode } from '@/utils/index'
// import { setEventByModuleCode } from '@/utils/index'
// import pullRefresh from '../../components/common/pullrefresh'
import
BackTop
from
'../../components/common/backTop'
;
import
BackTop
from
'../../components/common/backTop'
;
import
YqyTeacherList
from
'../../components/business-new/yqy-teacher-list'
;
import
YqyTeacherList
from
'../../components/business-new/yqy-teacher-list'
;
import
YqyTopEvaluat
from
'../../components/business-new/yqy-home-learn-evaluation'
;
import
YqyTopEvaluat
from
'../../components/business-new/yqy-home-learn-evaluation'
;
...
@@ -101,6 +100,7 @@ export default {
...
@@ -101,6 +100,7 @@ export default {
data
(){
data
(){
return
{
return
{
wrapperHeight
:
0
,
wrapperHeight
:
0
,
prevent
:
true
,
topDistance
:
20
,
topDistance
:
20
,
allLoaded
:
false
,
allLoaded
:
false
,
isAutoFill
:
false
,
isAutoFill
:
false
,
...
@@ -118,7 +118,7 @@ export default {
...
@@ -118,7 +118,7 @@ export default {
fiveList
:[],
//五分钟医学院
fiveList
:[],
//五分钟医学院
adjustList
:[],
//为您推荐
adjustList
:[],
//为您推荐
isBodyPull
:
false
,
isBodyPull
:
false
,
speedSwiper
:
2
0
,
speedSwiper
:
30
0
,
stopPropagation
:
true
,
stopPropagation
:
true
,
isIntStyle
:
''
,
isIntStyle
:
''
,
listSwiper
:[],
//轮播图数据
listSwiper
:[],
//轮播图数据
...
@@ -282,30 +282,6 @@ export default {
...
@@ -282,30 +282,6 @@ export default {
methods
:{
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
(){
goAppMsg
(){
this
.
isRefrshMsg
=
true
;
this
.
isRefrshMsg
=
true
;
...
@@ -322,15 +298,15 @@ export default {
...
@@ -322,15 +298,15 @@ export default {
//轮播图开始滚动
//轮播图开始滚动
swiperFun
(){
swiperFun
(){
var
swiper
=
new
Swiper
(
'.swiper-container'
,
{
//
var swiper = new Swiper('.swiper-container', {
speed
:
600
,
//
speed: 600,
//loop: true,
//
//loop: true,
observer
:
true
,
//
observer:true,
observeParents
:
true
,
//
observeParents:true,
autoplayDisableOnInteraction
:
false
,
//
autoplayDisableOnInteraction : false,
autoplay
:
3000
,
//
autoplay:3000,
pagination
:
'.pagination'
//
pagination: '.pagination'
});
//
});
},
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录