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
提交
c9c52f37
提交
c9c52f37
编写于
12月 21, 2018
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ggggg
上级
b86d1ca7
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
75 行增加
和
63 行删除
+75
-63
course-list.vue
src/components/business/course-list.vue
+22
-8
five-minutes.vue
src/components/business/five-minutes.vue
+4
-8
group-title.vue
src/components/business/group-title.vue
+14
-19
health-comics.vue
src/components/business/health-comics.vue
+4
-8
teacher-list.vue
src/components/business/teacher-list.vue
+4
-8
common.scss
src/style/common.scss
+6
-6
result.vue
src/views/result.vue
+21
-6
未找到文件。
src/components/business/course-list.vue
浏览文件 @
c9c52f37
<
template
>
<
template
>
<section>
<section>
<<<<<<<
HEAD
<GroupTitle
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
<GroupTitle
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
<div
class=
"hot-teacher"
>
<div
class=
"hot-teacher"
>
<!--
<div
:class=
"index>1 && (index+1 == cParmData.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
--
>
<!--
<div
:class=
"index>1 && (index+1 == cParmData.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
--
>
...
@@ -7,6 +8,27 @@
...
@@ -7,6 +8,27 @@
v-for=
"(item,index) in cParmData"
@
click=
"goToPage(item)"
>
v-for=
"(item,index) in cParmData"
@
click=
"goToPage(item)"
>
<div
class=
"teacher-itemimg"
>
<div
class=
"teacher-itemimg"
>
<img
:src=
"item.courseInfoUrl"
/>
<img
:src=
"item.courseInfoUrl"
/>
=======
<GroupTitle
:groupNum=
"groupNum"
/>
<div
class=
"cource-teach"
>
<div
class=
"couse-list"
>
<div
:class=
"index % 2 == 1 ? 'course-item end-left' : 'course-item'"
v-for=
"(item, index) in parmData"
:key=
"index"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<img
v-lazy=
"item.courseInfoUrl"
class=
"pic-tec"
/>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
</div>
<p
class=
"course-txt"
>
{{
item
.
name
}}
</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,item.name)"
>
{{
item
.
whetherFavors
==
2
?
'收藏'
:
'已收藏'
}}
</span>
>>>>>>> parent of 4332b29... 排序组件
</div>
</div>
<div
class=
"five-text"
>
<div
class=
"five-text"
>
<div
class=
"teacher-itemname fs14 ellipsis-2"
>
<div
class=
"teacher-itemname fs14 ellipsis-2"
>
...
@@ -63,14 +85,6 @@ export default {
...
@@ -63,14 +85,6 @@ export default {
groupNum
:
{
groupNum
:
{
type
:
String
,
type
:
String
,
default
:
'0'
default
:
'0'
},
showTitle
:
{
type
:
Boolean
,
default
:
true
},
showOrder
:
{
type
:
Boolean
,
default
:
false
}
}
},
},
computed
:
{
computed
:
{
...
...
src/components/business/five-minutes.vue
浏览文件 @
c9c52f37
<
template
>
<
template
>
<section>
<section>
<<<<<<<
HEAD
<GroupTitle
groupTitle=
"5分钟医学院"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
<GroupTitle
groupTitle=
"5分钟医学院"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
=======
<GroupTitle
groupTitle=
"5分钟医学院"
:groupNum=
"groupNum"
/>
>>>>>>> parent of 4332b29... 排序组件
<div
class=
"hot-teacher"
>
<div
class=
"hot-teacher"
>
<div
:class=
"index>1 && (index+1 == parmData.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
<div
:class=
"index>1 && (index+1 == parmData.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
v-for=
"(item,index) in parmData"
@
click=
"goToPage(item)"
>
v-for=
"(item,index) in parmData"
@
click=
"goToPage(item)"
>
...
@@ -62,14 +66,6 @@ export default {
...
@@ -62,14 +66,6 @@ export default {
groupNum
:
{
groupNum
:
{
type
:
String
,
type
:
String
,
default
:
'0'
default
:
'0'
},
showTitle
:
{
type
:
Boolean
,
default
:
true
},
showOrder
:
{
type
:
Boolean
,
default
:
false
}
}
},
},
computed
:
{
computed
:
{
...
...
src/components/business/group-title.vue
浏览文件 @
c9c52f37
<
template
>
<
template
>
<section
class=
"group-title"
>
<section
class=
"group-title"
>
<<<<<<<
HEAD
<article
v-show=
"showTitle"
class=
"group-title-title"
>
<article
v-show=
"showTitle"
class=
"group-title-title"
>
<span>
{{
groupTitle
}}
</span><span
class=
"group-title-title-ml-6"
v-show=
"isShowNum"
>
(
{{
groupNum
}}
)
</span>
<span>
{{
groupTitle
}}
</span><span
class=
"group-title-title-ml-6"
v-show=
"isShowNum"
>
(
{{
groupNum
}}
)
</span>
</article>
</article>
...
@@ -13,13 +14,17 @@
...
@@ -13,13 +14,17 @@
<img
src=
"../../images/sousuo/sort-down.png"
v-show=
"showOrderIndex === 2"
/>
<img
src=
"../../images/sousuo/sort-down.png"
v-show=
"showOrderIndex === 2"
/>
</div>
</div>
</article>
</article>
=======
<span
class=
"group-title-name"
>
{{
groupTitle
}}
</span>
<span
v-show=
"isShowNum"
>
(
{{
groupNum
}}
)
</span>
>>>>>>> parent of 4332b29... 排序组件
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
showOrderIndex
:
1
}
}
},
},
props
:
{
props
:
{
...
@@ -34,25 +39,7 @@ export default {
...
@@ -34,25 +39,7 @@ export default {
groupNum
:
{
groupNum
:
{
type
:
String
,
type
:
String
,
default
:
"0"
default
:
"0"
},
showTitle
:
{
type
:
Boolean
,
default
:
true
},
showOrder
:
{
type
:
Boolean
,
default
:
false
}
}
},
methods
:
{
toggle
()
{
this
.
showTitle
=
!
showTitle
this
.
showOrder
=
!
showOrder
},
order
(
index
)
{
this
.
showOrderIndex
=
index
this
.
$emit
(
'order'
,
index
)
}
}
}
}
}
</
script
>
</
script
>
...
@@ -63,6 +50,7 @@ export default {
...
@@ -63,6 +50,7 @@ export default {
margin-left
:
px2rem
(
15px
);
margin-left
:
px2rem
(
15px
);
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
<<<<<<<
HEAD
&
-order
{
&
-order
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
...
@@ -87,6 +75,13 @@ export default {
...
@@ -87,6 +75,13 @@ export default {
}
}
&
-title
{
&
-title
{
padding
:
px2rem
(
20px
)
0
px2rem
(
10px
);
padding
:
px2rem
(
20px
)
0
px2rem
(
10px
);
=======
&
-name
{
margin-right
:
px2rem
(
6px
);
}
span
{
padding
:
px2rem
(
20px
)
0
px2rem
(
15px
);
>>>>>>>
parent
of
4332b29
... 排序组件
font-size
:
px2rem
(
18px
);
font-size
:
px2rem
(
18px
);
font-weight
:
500
;
font-weight
:
500
;
color
:
#28344C
;
color
:
#28344C
;
...
...
src/components/business/health-comics.vue
浏览文件 @
c9c52f37
<
template
>
<
template
>
<section>
<section>
<<<<<<<
HEAD
<GroupTitle
groupTitle=
"健康漫画"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
<GroupTitle
groupTitle=
"健康漫画"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
=======
<GroupTitle
groupTitle=
"健康漫画"
:groupNum=
"groupNum"
/>
>>>>>>> parent of 4332b29... 排序组件
<div
class=
"font-style"
>
<div
class=
"font-style"
>
<div
class=
"teach-opt"
>
<div
class=
"teach-opt"
>
<div
class=
"teach-list"
>
<div
class=
"teach-list"
>
...
@@ -45,14 +49,6 @@ export default {
...
@@ -45,14 +49,6 @@ export default {
groupNum
:
{
groupNum
:
{
type
:
String
,
type
:
String
,
default
:
'0'
default
:
'0'
},
showTitle
:
{
type
:
Boolean
,
default
:
true
},
showOrder
:
{
type
:
Boolean
,
default
:
false
}
}
},
},
computed
:
{
computed
:
{
...
...
src/components/business/teacher-list.vue
浏览文件 @
c9c52f37
<
template
>
<
template
>
<section>
<section>
<<<<<<<
HEAD
<GroupTitle
groupTitle=
"讲师"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
<GroupTitle
groupTitle=
"讲师"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
=======
<GroupTitle
groupTitle=
"讲师"
:groupNum=
"groupNum"
/>
>>>>>>> parent of 4332b29... 排序组件
<div
class=
"font-style"
>
<div
class=
"font-style"
>
<div
class=
"teach-opt"
>
<div
class=
"teach-opt"
>
<div
class=
"teach-list"
>
<div
class=
"teach-list"
>
...
@@ -58,14 +62,6 @@ export default {
...
@@ -58,14 +62,6 @@ export default {
groupNum
:
{
groupNum
:
{
type
:
String
,
type
:
String
,
default
:
'0'
default
:
'0'
},
showTitle
:
{
type
:
Boolean
,
default
:
true
},
showOrder
:
{
type
:
Boolean
,
default
:
false
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/style/common.scss
浏览文件 @
c9c52f37
img
{
// *
{
-webkit-user-select
:
none
;
//
-webkit-user-select: none;
-moz-user-select
:
none
;
//
-moz-user-select: none;
-o-user-select
:
none
;
//
-o-user-select: none;
user-select
:
none
;
//
user-select: none;
}
//
}
body
,
div
,
span
,
header
,
footer
,
nav
,
section
,
aside
,
article
,
ul
,
dl
,
dt
,
dd
,
li
,
a
,
p
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
i
,
b
,
textarea
,
button
,
input
,
select
,
figure
,
figcaption
,
{
body
,
div
,
span
,
header
,
footer
,
nav
,
section
,
aside
,
article
,
ul
,
dl
,
dt
,
dd
,
li
,
a
,
p
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
i
,
b
,
textarea
,
button
,
input
,
select
,
figure
,
figcaption
,
{
padding
:
0
;
padding
:
0
;
...
...
src/views/result.vue
浏览文件 @
c9c52f37
...
@@ -50,19 +50,19 @@
...
@@ -50,19 +50,19 @@
<NoMoreItem/>
<NoMoreItem/>
</div>
</div>
<div
class=
"list-container"
v-show=
"navIndex === '1' && showTab1"
>
<div
class=
"list-container"
v-show=
"navIndex === '1' && showTab1"
>
<CourseList
:
showTitle=
"showTitle"
:showOrder=
"showOrder"
:
parmData=
"contentAppModelsAll"
:groupNum=
"contentAppModelCount"
/>
<CourseList
:parmData=
"contentAppModelsAll"
:groupNum=
"contentAppModelCount"
/>
<NoMoreItem/>
<NoMoreItem/>
</div>
</div>
<div
class=
"list-container"
v-show=
"navIndex === '2' && showTab2"
>
<div
class=
"list-container"
v-show=
"navIndex === '2' && showTab2"
>
<FiveMinutes
:
showTitle=
"showTitle"
:showOrder=
"showOrder"
:
parmData=
"fiveMinutesMedicalContentListAll"
:groupNum=
"fiveMinutesMedicalContentListCount"
/>
<FiveMinutes
:parmData=
"fiveMinutesMedicalContentListAll"
:groupNum=
"fiveMinutesMedicalContentListCount"
/>
<NoMoreItem/>
<NoMoreItem/>
</div>
</div>
<div
class=
"list-container"
v-show=
"navIndex === '3' && showTab3"
>
<div
class=
"list-container"
v-show=
"navIndex === '3' && showTab3"
>
<TeacherList
:
showTitle=
"showTitle"
:showOrder=
"showOrder"
:
parmData=
"pCourseDoctorModelsAll"
:groupNum=
"pCourseDoctorModelCount"
/>
<TeacherList
:parmData=
"pCourseDoctorModelsAll"
:groupNum=
"pCourseDoctorModelCount"
/>
<NoMoreItem/>
<NoMoreItem/>
</div>
</div>
<div
class=
"list-container"
v-show=
"navIndex === '4' && showTab4"
>
<div
class=
"list-container"
v-show=
"navIndex === '4' && showTab4"
>
<HealthComics
:
showTitle=
"showTitle"
:showOrder=
"showOrder"
:
parmData=
"educationContentsAll"
:groupNum=
"educationContentCount"
/>
<HealthComics
:parmData=
"educationContentsAll"
:groupNum=
"educationContentCount"
/>
<NoMoreItem/>
<NoMoreItem/>
</div>
</div>
</article>
</article>
...
@@ -114,10 +114,14 @@ export default {
...
@@ -114,10 +114,14 @@ export default {
showTab1
:
true
,
showTab1
:
true
,
showTab2
:
true
,
showTab2
:
true
,
showTab3
:
true
,
showTab3
:
true
,
<<<<<<<
HEAD
showTab4
:
true
,
showTab4
:
true
,
showTitle
:
false
,
showTitle
:
false
,
showOrder
:
true
,
showOrder
:
true
,
adjustList
:
[]
adjustList
:
[]
=======
showTab4
:
true
>>>>>>>
parent
of
4332
b29
...
排序组件
}
}
},
},
components
:
{
components
:
{
...
@@ -160,8 +164,12 @@ export default {
...
@@ -160,8 +164,12 @@ export default {
}
}
},
},
mounted
(){
mounted
(){
<<<<<<<
HEAD
this
.
getUserInfo
()
this
.
getUserInfo
()
this
.
search
()
this
.
search
()
=======
this
.
search
(
this
.
searchText
)
>>>>>>>
parent
of
4332
b29
...
排序组件
// this.searchAll(this.searchText, '1', 'contentAppModels', 'contentAppModelsAll')
// this.searchAll(this.searchText, '1', 'contentAppModels', 'contentAppModelsAll')
},
},
methods
:
{
methods
:
{
...
@@ -176,6 +184,7 @@ export default {
...
@@ -176,6 +184,7 @@ export default {
},
},
// 搜索结果
// 搜索结果
<<<<<<<
HEAD
search
()
{
search
()
{
this
.
pageBurialPoin
({
this
.
pageBurialPoin
({
...
m_search_search
,
...
m_search_search
,
...
@@ -183,6 +192,9 @@ export default {
...
@@ -183,6 +192,9 @@ export default {
createdTime
:
new
Date
().
getTime
(),
createdTime
:
new
Date
().
getTime
(),
})
})
this
.
showLoading
=
true
this
.
showLoading
=
true
=======
search
(
searchText
)
{
>>>>>>>
parent
of
4332
b29
...
排序组件
let
_this
=
this
,
let
_this
=
this
,
para
=
{
para
=
{
searchCategory
:
'1,2,3,4'
,
searchCategory
:
'1,2,3,4'
,
...
@@ -202,7 +214,6 @@ export default {
...
@@ -202,7 +214,6 @@ export default {
this
.
showTab3
=
true
this
.
showTab3
=
true
this
.
showTab4
=
true
this
.
showTab4
=
true
this
.
GET
(
url
,
para
).
then
(
res
=>
{
this
.
GET
(
url
,
para
).
then
(
res
=>
{
this
.
showLoading
=
false
_this
.
searchText
=
''
_this
.
searchText
=
''
_this
.
navIndex
=
'0'
_this
.
navIndex
=
'0'
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
...
@@ -377,11 +388,15 @@ export default {
...
@@ -377,11 +388,15 @@ export default {
margin
:
px2rem
(
25px
)
px2rem
(
15px
)
px2rem
(
-1px
);
margin
:
px2rem
(
25px
)
px2rem
(
15px
)
px2rem
(
-1px
);
padding-bottom
:
px2rem
(
11px
);
padding-bottom
:
px2rem
(
11px
);
font-size
:
px2rem
(
14px
);
font-size
:
px2rem
(
14px
);
color
:
#
666
;
color
:
#
449284
;
}
}
.bt-2
{
.bt-2
{
<<<<<<<
HEAD
color
:
#449284
;
color
:
#449284
;
border-bottom
:
px2rem
(
2px
)
solid
#449284
;
border-bottom
:
px2rem
(
2px
)
solid
#449284
;
=======
border-bottom
:
px2rem
(
3px
)
solid
#449284
;
>>>>>>>
parent
of
4332b29
...
排序组件
}
}
}
}
.list-container
{
.list-container
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录