Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-IM
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-IM
提交
10acd4dd
提交
10acd4dd
编写于
1月 10, 2019
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
选择组件
上级
f9762cc0
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
213 行增加
和
40 行删除
+213
-40
yqy-lecturer-order.vue
src/componentsn/business/yqy-lecturer-order.vue
+2
-9
yqy-lecturer-select.vue
src/componentsn/business/yqy-lecturer-select.vue
+134
-0
yqy-lecturer-title.vue
src/componentsn/business/yqy-lecturer-title.vue
+46
-0
yqy-teacher-list.vue
src/componentsn/business/yqy-teacher-list.vue
+3
-3
index.vue
src/views/index.vue
+28
-28
未找到文件。
src/componentsn/business/yqy-lecturer-order.vue
浏览文件 @
10acd4dd
<
template
>
<
template
>
<section>
<section>
<article
class=
"group-title-title"
>
<
!--
<
article
class=
"group-title-title"
>
<span
class=
"group-title-title-main"
>
{{
groupTitle
}}
</span><span
class=
"group-title-title-sub"
>
专业领域的资深专家
</span>
<span
class=
"group-title-title-main"
>
{{
groupTitle
}}
</span><span
class=
"group-title-title-sub"
>
专业领域的资深专家
</span>
</article>
</article>
-->
<article>
<select
name=
"regionName"
id=
"1"
>
<option
value=
"1"
>
上海
</option>
<option
value=
"2"
>
北京
</option>
<option
value=
"3"
>
广州
</option>
</select>
</article>
<article
class=
"group-title"
>
<article
class=
"group-title"
>
<article
v-show=
"showOrder"
class=
"group-title-order"
>
<article
v-show=
"showOrder"
class=
"group-title-order"
>
<div
@
click=
"order(1)"
class=
"group-title-order-item"
>
<div
@
click=
"order(1)"
class=
"group-title-order-item"
>
...
...
src/componentsn/business/yqy-lecturer-select.vue
0 → 100644
浏览文件 @
10acd4dd
<
template
>
<section>
<article
class=
"group-title"
>
<article
v-show=
"showOrder"
class=
"group-title-order"
>
<div
@
click=
"order(1)"
class=
"group-title-order-item"
>
<span>
按名首字母
</span>
<img
class=
"first-name"
src=
"../../images/sousuo/sort-down.png"
/>
</div>
<div
@
click=
"order(2)"
class=
"group-title-order-item"
>
<span>
最新课程
</span>
<img
src=
"../../images/sousuo/sort-down.png"
/>
</div>
<div
@
click=
"order(3)"
class=
"group-title-order-item"
>
<span
:class=
"
{'active': showOrderIndex === 3}">资源数
</span>
<img
class=
"course-num"
src=
"../../images/sousuo/sort-down.png"
v-show=
"showOrderIndex === 3"
/>
</div>
<div
@
click=
"order(4)"
class=
"group-title-order-item"
>
<span
:class=
"
{'active': showOrderIndex === 4}">热门
</span>
<img
class=
"hot-degree"
src=
"../../images/sousuo/sort-down.png"
v-show=
"showOrderIndex === 4"
/>
</div>
</article>
</article>
</section>
</
template
>
<
script
>
import
{
mapGetters
}
from
'vuex'
export
default
{
data
()
{
return
{
showOrderIndex
:
1
}
},
props
:
{
groupTitle
:
{
type
:
String
,
default
:
'课程'
},
isShowNum
:
{
type
:
Boolean
,
default
:
true
},
groupNum
:
{
type
:
String
,
default
:
"0"
},
showTitle
:
{
type
:
Boolean
,
default
:
true
},
showOrder
:
{
type
:
Boolean
,
default
:
true
}
},
computed
:
{
...
mapGetters
({
orderNum
:
'orderNum'
})
},
watch
:
{
orderNum
(
val
)
{
this
.
showOrderIndex
=
1
}
},
methods
:
{
toggle
()
{
this
.
showTitle
=
!
showTitle
this
.
showOrder
=
!
showOrder
},
order
(
index
)
{
this
.
showOrderIndex
=
index
this
.
$emit
(
'order'
,
index
)
},
// resetShowOrderIndex(){
// this.showOrderIndex = 1
// }
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'../../style/mixin.scss'
;
.group-title
{
margin-left
:
px2rem
(
15px
);
display
:
flex
;
flex-direction
:
row
;
&
-order
{
display
:
flex
;
flex-direction
:
row
;
padding
:
px2rem
(
10px
)
0
px2rem
(
10px
);
font-size
:
px2rem
(
13px
);
&
-item
{
position
:
relative
;
span
{
margin-right
:
px2rem
(
30px
);
}
img
{
position
:
absolute
;
top
:
px2rem
(
2px
);
left
:
px2rem
(
51px
);
height
:
px2rem
(
15px
);
width
:
px2rem
(
15px
);
}
}
}
.first-name
{
left
:
px2rem
(
63px
);
}
.course-num
{
left
:
px2rem
(
37px
);
}
.hot-degree
{
left
:
px2rem
(
25px
);
}
.active
{
color
:
#449284
;
}
&
-title
{
padding
:
0
px2rem
(
15px
);
&
-main
{
margin-right
:
px2rem
(
6px
);
font-size
:
px2rem
(
18px
);
font-weight
:
500
;
color
:
#28344C
;
}
&
-sub
{
font-size
:
px2rem
(
15px
);
font-weight
:
400
;
color
:
#999
;
}
}
}
</
style
>
src/componentsn/business/yqy-lecturer-title.vue
0 → 100644
浏览文件 @
10acd4dd
<
template
>
<section
class=
"group-title-title"
>
<span
class=
"group-title-title-main"
>
{{
mainTitle
}}
</span><span
class=
"group-title-title-sub"
>
{{
subTitle
}}
</span>
</section>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
}
},
props
:
{
mainTitle
:
{
type
:
String
,
default
:
'全部讲师'
},
subTitle
:
{
type
:
String
,
default
:
'专业领域的资深专家'
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'../../style/mixin.scss'
;
.group-title
{
height
:
px2rem
(
18px
);
line-height
:
px2rem
(
18px
);
&
-title
{
padding
:
px2rem
(
10px
)
px2rem
(
15px
)
0
;
&
-main
{
margin-right
:
px2rem
(
6px
);
font-size
:
px2rem
(
18px
);
font-weight
:
500
;
color
:
#28344C
;
}
&
-sub
{
font-size
:
px2rem
(
15px
);
font-weight
:
400
;
color
:
#999
;
}
}
}
</
style
>
src/componentsn/business/yqy-teacher-list.vue
浏览文件 @
10acd4dd
<
template
>
<
template
>
<section>
<section>
<
GroupTitle
groupTitle=
"全部讲师"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
<
YqyLecturerOrder
groupTitle=
"全部讲师"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
<div
class=
"font-style"
>
<div
class=
"font-style"
>
<div
class=
"teach-opt"
>
<div
class=
"teach-opt"
>
<div
class=
"teach-list"
>
<div
class=
"teach-list"
>
...
@@ -35,7 +35,7 @@ import {
...
@@ -35,7 +35,7 @@ import {
m_search_result_lecturer_top
,
m_search_result_lecturer_top
,
}
from
'@/utils/buryingPoint'
}
from
'@/utils/buryingPoint'
// import GroupTitle from '@/componentsn/business/group-title';
// import GroupTitle from '@/componentsn/business/group-title';
import
GroupTitle
from
'@/componentsn/business/yqy-lecturer-order'
;
import
YqyLecturerOrder
from
'@/componentsn/business/yqy-lecturer-order'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -71,7 +71,7 @@ export default {
...
@@ -71,7 +71,7 @@ export default {
}
}
},
},
components
:
{
components
:
{
GroupTitle
YqyLecturerOrder
},
},
props
:
{
props
:
{
parmData
:
{
parmData
:
{
...
...
src/views/index.vue
浏览文件 @
10acd4dd
<
template
>
<
template
>
<div
class=
"main-body"
ref=
"wrapper"
>
<div
class=
"main-body"
ref=
"wrapper"
>
<section
:class=
"isIntStyle"
>
<section
class=
"home-header"
>
<section
class=
"home-header"
>
<div
class=
"home-topMenu"
>
<div
class=
"home-topMenu"
>
<YqyHomeHeader
:msgCount=
"msgCount"
:searchFix=
"searchFix"
/>
<YqyHomeHeader
:msgCount=
"msgCount"
:searchFix=
"searchFix"
/>
</div>
</div>
<div
class=
"swiper"
>
<div
class=
"swiper"
>
<mt-swipe
:auto=
"3000"
:speed=
"speedSwiper"
:stopPropagation=
"prevent"
>
<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"
>
<YqyHotLecturer/>
<!-- 全部讲师标题 -->
<!--云雀名师-->
<YqyLecturerTitle/>
<YqyHotLecturer/>
<!-- 全部讲师选择 -->
<YqyLecturerSelect/>
<TeacherList/>
<!-- 全部讲师列表 -->
<!--返回顶部-->
<YqyTeacherList/>
<!--
<BackTop
v-if=
"isShowBackTop"
/>
-->
</section>
</section>
<!--返回顶部-->
<!--返回顶部-->
<BackTop
v-if=
"isShowBackTop"
/>
<BackTop
v-if=
"isShowBackTop"
/>
...
@@ -32,19 +29,21 @@
...
@@ -32,19 +29,21 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Swipe
,
SwipeItem
,
Header
}
from
'mint-ui'
;
import
{
Swipe
,
SwipeItem
}
from
'mint-ui'
;
import
{
mapState
,
mapMutations
,
mapActions
}
from
'vuex'
import
{
mapState
,
mapMutations
,
mapActions
}
from
'vuex'
import
BackTop
from
'@/homecom/components/common/backTop'
;
import
BackTop
from
'@/homecom/components/common/backTop'
;
import
YqyHomeHeader
from
'@/homecom/components/business-new/yqy-home-header'
;
import
YqyHomeHeader
from
'@/homecom/components/business-new/yqy-home-header'
;
import
YqyLecturerTitle
from
'@/componentsn/business/yqy-lecturer-title'
;
import
YqyLecturerSelect
from
'@/componentsn/business/yqy-lecturer-select'
;
import
YqyHotLecturer
from
'@/componentsn/business/yqy-hot-lecturer'
;
import
YqyHotLecturer
from
'@/componentsn/business/yqy-hot-lecturer'
;
import
TeacherList
from
'@/componentsn/business/yqy-teacher-list'
import
Yqy
TeacherList
from
'@/componentsn/business/yqy-teacher-list'
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
prevent
:
true
,
prevent
:
true
,
showNewCorse
:
false
,
// 是否显示新内容 默认不显示
showNewCorse
:
false
,
// 是否显示新内容 默认不显示
isFixed
:
false
,
isFixed
:
false
,
isShowBackTop
:
false
,
isShowBackTop
:
false
,
isShowEvluat
:
false
,
//是否显示下拉
isShowEvluat
:
false
,
//是否显示下拉
evaluctObj
:{},
//下拉数据
evaluctObj
:{},
//下拉数据
iconList
:[],
//icon数据
iconList
:[],
//icon数据
...
@@ -98,13 +97,14 @@ export default {
...
@@ -98,13 +97,14 @@ export default {
}
}
},
},
components
:{
components
:{
Header
,
Swipe
,
Swipe
,
SwipeItem
,
SwipeItem
,
BackTop
,
BackTop
,
YqyHomeHeader
,
YqyHomeHeader
,
YqyLecturerTitle
,
YqyLecturerSelect
,
YqyHotLecturer
,
YqyHotLecturer
,
TeacherList
,
Yqy
TeacherList
,
},
},
beforeCreate
()
{
beforeCreate
()
{
},
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录