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
提交
5844cb68
提交
5844cb68
编写于
12月 10, 2018
作者:
gjyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test
上级
db00c2e3
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
335 行增加
和
79 行删除
+335
-79
yqy-home-header.vue
src/components/business-new/yqy-home-header.vue
+2
-1
history-labels.vue
src/components/business/history-labels.vue
+89
-0
history-search.vue
src/components/business/history-search.vue
+0
-43
hot-labels.vue
src/components/business/hot-labels.vue
+199
-0
search-header.vue
src/components/business/search-header.vue
+13
-3
search-label.vue
src/components/business/search-label.vue
+3
-3
icon-p3-2.png
src/images/icon-p3-2.png
+0
-0
main.js
src/main.js
+1
-1
router.js
src/router/router.js
+6
-0
index.vue
src/views/index.vue
+9
-2
search-index.vue
src/views/search-index.vue
+13
-26
未找到文件。
src/components/business-new/yqy-home-header.vue
浏览文件 @
5844cb68
...
...
@@ -2,7 +2,7 @@
<div
:class=
"searchFix?'header fixed' : 'header' "
id=
"search-top"
:style=
"
{height:menuptop}">
<div
class=
"search-menu"
>
<div
:class=
"isTransparent?'search-transparent':'bgWhite'"
class=
"search"
>
<input
type=
"search"
:class=
"isTransparent?'search-transparent':''"
class=
"input"
v-model=
"searchVal"
:placeholder=
"placeholder"
:disabled=
"disabled"
/>
<input
type=
"search"
:class=
"isTransparent?'search-transparent':''"
class=
"input"
v-model=
"searchVal"
:placeholder=
"placeholder"
@
click=
"goToPage"
/>
<img
v-if=
"searchFix"
class=
"search-img"
src=
'../../images/search-grey.png'
>
<img
v-else
class=
"search-img"
src=
'../../images/search-white.png'
>
</div>
...
...
@@ -105,6 +105,7 @@ export default {
goToPage
(){
// alert("000");
this
.
$emit
(
'setAppMsg'
,
false
)
this
.
$emit
(
'jumpToSS'
,
false
)
this
.
pageBurialPoin
({
menuLevel
:
1
,
menuCode
:
'm_home'
,
...
...
src/components/business/history-labels.vue
0 → 100644
浏览文件 @
5844cb68
<
template
>
<article
v-if=
"allLabels && allLabels.length > 0"
class=
"history-labels"
>
<section
class=
"history-labels-title"
>
<span>
{{
title
}}
</span>
<img
v-show=
"showDelete"
src=
"../../images/sousuo/recicle.png"
alt=
"删除"
>
</section>
<section
class=
"history-labels-item"
@
click=
"searchAction"
v-for=
"(item, index) in allLabels"
:key=
"index"
>
<span
class=
"history-labels-item-name"
>
{{
item
.
doctorName
}}
</span>
</section>
</article>
</
template
>
<
script
>
export
default
{
name
:
'HistoryLabels'
,
props
:
{
allLabels
:
{
type
:
Array
},
title
:
{
type
:
String
,
default
:
'历史搜索'
},
showDelete
:
{
type
:
Boolean
,
default
:
true
}
},
data
()
{
return
{
}
},
mounted
(){
},
methods
:
{
searchAction
()
{
console
.
log
(
22222
)
this
.
$router
.
push
({
path
:
'/result'
})
}
}
}
</
script
>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<
style
lang=
"scss"
scoped
>
@import
'../../style/mixin.scss'
;
.history-labels
{
width
:
100%
;
padding
:
0
px2rem
(
15px
)
0
;
margin-bottom
:
px2rem
(
6px
);
background-color
:
#fff
;
&
-title
{
display
:
inline-flex
;
width
:
100%
;
align-items
:
center
;
justify-content
:
space-between
;
span
{
font-size
:
px2rem
(
12px
);
color
:
6
;
}
img
{
width
:
px2rem
(
20px
);
height
:
px2rem
(
20px
);
padding
:
px2rem
(
4px
);
}
}
&
-item
{
display
:
inline-flex
;
height
:
px2rem
(
30px
);
margin
:
px2rem
(
0px
)
px2rem
(
15px
)
0
0
;
text-align
:
center
;
align-items
:
center
;
&
-name
{
padding
:
px2rem
(
6px
)
px2rem
(
15px
)
px2rem
(
8px
);
border-radius
:
px2rem
(
15px
);
background-color
:
#F8F8F8
;
color
:
#999
;
font-size
:
px2rem
(
13px
);
}
}
}
</
style
>
src/components/business/history-search.vue
已删除
100644 → 0
浏览文件 @
db00c2e3
<
template
>
<article
class=
"history-search"
>
<header
class=
"history-search-title"
>
<span>
历史搜索
</span>
<img
src=
"../../images/search-grey.png"
alt=
"删除"
>
</header>
<section
class=
"history-search-content"
>
<span
v-for=
"(item, index) in sourceData"
:key=
"index"
>
{{
item
.
name
}}
</span>
</section>
</article>
</
template
>
<
script
>
export
default
{
props
:
{
sourceData
:
{
type
:
Array
,
default
:
()
=>
[{
name
:
'222'
},{
name
:
'222'
},{
name
:
'222'
},{
name
:
'222'
},{
name
:
'222'
},{
name
:
'222'
},{
name
:
'222'
}]
}
}
}
</
script
>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<
style
lang=
"scss"
scoped
>
@import
'../../style/mixin.scss'
;
// @import '../../style/global.scss';
.history-search
{
margin
:
px2rem
(
15px
);
&
-title
{
width
:
100%
;
justify-content
:
space-between
;
display
:
inline-flex
;
span
{
padding
:
px2rem
(
4px
)
px2rem
(
4px
);
font-size
:
px2rem
(
12px
);
color
:
6
;
}
}
&
-content
{
}
}
</
style
>
src/components/business/hot-labels.vue
0 → 100644
浏览文件 @
5844cb68
<
template
>
<article
v-if=
"allLabels && allLabels.length > 0"
class=
"history-labels"
>
<section
class=
"history-labels-title"
>
<span>
{{
title
}}
</span>
</section>
<section
class=
"history-labels-item"
@
click=
"hotLabel(item.resourceType, item.structureId, item.resourceUrl, item.labelName, item)"
v-for=
"(item, index) in allLabels"
:key=
"index"
>
<span
class=
"history-labels-item-name"
>
{{
item
.
doctorName
}}
</span>
</section>
</article>
</
template
>
<
script
>
import
{
mapMutations
}
from
'vuex'
export
default
{
name
:
'YqyHotLabel'
,
props
:
{
allLabels
:
{
type
:
Array
},
direction
:
{
type
:
String
,
default
:
'left'
},
title
:
{
type
:
String
,
default
:
'历史搜索'
},
hasBanner
:
{
type
:
Boolean
,
default
:
false
},
hasInfo
:
{
type
:
Boolean
,
default
:
false
},
showDelete
:
{
type
:
Boolean
,
default
:
true
}
},
data
()
{
return
{
}
},
mounted
(){
},
methods
:
{
...
mapMutations
([
'SET_CLEAR_VUEX'
]),
hotLabel
(
val
,
id
,
url
,
name
,
item
){
this
.
$emit
(
'hotLabel'
,
id
,
name
)
//讲师集
switch
(
val
)
{
case
1
:
this
.
SET_CLEAR_VUEX
()
this
.
jumpToCourse
(
item
.
resourceId
);
break
;
case
2
:
this
.
SET_CLEAR_VUEX
()
//window.location.href=url;
this
.
jumpToCartoon
(
url
,
name
)
break
;
case
3
:
this
.
SET_CLEAR_VUEX
()
this
.
$router
.
push
({
path
:
'/lecturer'
,
query
:{
id
:
id
}})
break
;
default
:
break
;
}
},
dispatchEventByModuleCode
(
itemData
)
{
let
modeCode
=
itemData
.
appModuleInfo
.
code
let
paramList
=
itemData
.
appModuleInfo
.
paramList
?
itemData
.
appModuleInfo
.
paramList
:
''
if
(
modeCode
===
'M001'
||
modeCode
===
'M002'
||
modeCode
===
'M003'
)
{
paramList
=
''
}
else
if
(
modeCode
===
'M100'
||
modeCode
===
'M300'
)
{
let
urlPara
=
this
.
getUrlPara
(
paramList
)
paramList
[
0
].
value
+=
urlPara
}
if
(
typeof
paramList
===
'string'
&&
!
paramList
){
paramList
=
[]
}
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
paramList
})
},
//跳到相应的课程
jumpToCourse
(
id
){
let
itemData
=
{
"title"
:
"测试课介绍页"
,
"imageUrl"
:
"https://test-file.yunqueyi.com/image/jpeg/2018/09/18/20180918103322254-f8bba621.jpg"
,
"appModuleInfo"
:{
"code"
:
"M200"
,
"type"
:
4
,
"name"
:
"课程介绍页"
,
"paramFlag"
:
1
,
"paramList"
:[
{
"key"
:
"className"
,
"value"
:
"com.picahealth.yunque.activitys.courseplaynew.CourseIntroduceActivity###WeexCourseIntroViewController"
,
"type"
:
4
,
"seqNo"
:
1
},
{
"key"
:
"courseId"
,
"value"
:
`
${
id
}
`
,
"type"
:
1
,
"seqNo"
:
2
}
]
}
};
this
.
dispatchEventByModuleCode
(
itemData
);
},
// 跳到漫画详情页
jumpToCartoon
(
url
,
name
)
{
let
itemData
=
{
"title"
:
"测试课介绍页"
,
"imageUrl"
:
"https://test-file.yunqueyi.com/image/jpeg/2018/09/18/20180918103322254-f8bba621.jpg"
,
"appModuleInfo"
:{
"code"
:
"M300"
,
"type"
:
4
,
"name"
:
"课程介绍页"
,
"paramFlag"
:
1
,
"paramList"
:[
{
"key"
:
"pageUrl"
,
"value"
:
url
,
"type"
:
4
,
"seqNo"
:
1
},{
"key"
:
"showTitle"
,
"value"
:
true
,
"type"
:
1
,
"seqNo"
:
2
},{
"key"
:
"title"
,
"value"
:
name
,
"type"
:
1
,
"seqNo"
:
2
}
]
}
};
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
itemData
.
appModuleInfo
.
paramList
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'../../style/mixin.scss'
;
.history-labels
{
width
:
100%
;
padding
:
0
px2rem
(
15px
)
0
;
margin-bottom
:
px2rem
(
6px
);
background-color
:
#fff
;
&
-title
{
display
:
inline-flex
;
width
:
100%
;
align-items
:
center
;
justify-content
:
space-between
;
span
{
font-size
:
px2rem
(
12px
);
color
:
6
;
}
img
{
width
:
px2rem
(
20px
);
height
:
px2rem
(
20px
);
padding
:
px2rem
(
4px
);
}
}
&
-item
{
display
:
inline-flex
;
height
:
px2rem
(
30px
);
margin
:
px2rem
(
0px
)
px2rem
(
15px
)
0
0
;
text-align
:
center
;
align-items
:
center
;
&
-name
{
padding
:
px2rem
(
6px
)
px2rem
(
15px
)
px2rem
(
8px
);
border-radius
:
px2rem
(
15px
);
background-color
:
#F8F8F8
;
color
:
#999
;
font-size
:
px2rem
(
13px
);
}
}
}
</
style
>
src/components/business/search-header.vue
浏览文件 @
5844cb68
...
...
@@ -2,18 +2,28 @@
<article
class=
"search-wrapper"
>
<section
class=
"search-wrapper-input"
>
<img
src=
'../../images/search-grey.png'
>
<input
value=
"搜索疾病、课程、讲师"
/>
<form
action=
""
@
submit=
"search"
>
<input
type=
"search"
v-model=
"searchText"
/>
</form>
</section>
<section
class=
"search-wrapper-cancle"
>
<span>
取消
</span>
<span
@
click=
"cancel"
>
取消
</span>
</section>
</article>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
searchText
:
'搜索疾病、课程、讲师'
}
},
methods
:
{
cancel
()
{
this
.
searchText
=
''
},
search
()
{
this
.
$emit
(
'search'
,
this
.
searchText
)
}
}
}
...
...
src/components/business/search-label.vue
浏览文件 @
5844cb68
<
template
>
<article
v-if=
"all
Tags&&allTag
s.length>0"
class=
"search-tag search-label"
>
<article
v-if=
"all
Labels&&allLabel
s.length>0"
class=
"search-tag search-label"
>
<!--
<section
:style=
"
{'text-align': direction}" class="search-tag-title">
{{
title
}}
</section>
-->
...
...
@@ -10,7 +10,7 @@
<div
class=
"search-tag-item"
@
click=
"hotLabel(item.resourceType, item.structureId, item.resourceUrl, item.labelName, item)"
v-for=
"(item, index) in all
Tag
s"
:key=
"index"
>
v-for=
"(item, index) in all
Label
s"
:key=
"index"
>
<span
class=
"item-name"
>
{{
item
.
doctorName
}}
</span>
</div>
</article>
...
...
@@ -21,7 +21,7 @@ import {mapMutations} from 'vuex'
export
default
{
name
:
'YqyHotLabel'
,
props
:
{
all
Tag
s
:
{
all
Label
s
:
{
type
:
Array
},
direction
:
{
...
...
src/images/icon-p3-2.png
0 → 100644
浏览文件 @
5844cb68
287 字节
src/main.js
浏览文件 @
5844cb68
...
...
@@ -18,7 +18,7 @@ Vue.use(VueLazyload, {
preLoad
:
3
,
// loading: 'images/change.png',
// error: 'https://file.yunqueyi.com/File/course_doctor/2018-11/20/web_454.png',
error
:
require
(
'./images/e
valuatBg
.png'
),
error
:
require
(
'./images/e
rror
.png'
),
attempt
:
1
// lazyComponent: true
})
...
...
src/router/router.js
浏览文件 @
5844cb68
...
...
@@ -2,6 +2,7 @@ import App from '../App'
const
index
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/index'
)),
'index'
)
const
search
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/search-index'
)),
'search'
)
const
result
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/search-index'
)),
'result'
)
export
default
[{
path
:
'/'
,
...
...
@@ -22,5 +23,10 @@ export default [{
path
:
'/search'
,
component
:
search
},
//首页城市列表页
{
path
:
'/result'
,
component
:
result
},
]
}]
src/views/index.vue
浏览文件 @
5844cb68
...
...
@@ -6,7 +6,7 @@
<section
class=
"home-header"
>
<div
class=
"home-topMenu"
>
<YqyHomeHeader
:msgCount=
"msgCount"
:searchFix=
"searchFix"
v-on:setAppMsg=
"goAppMsg"
/>
<YqyHomeHeader
:msgCount=
"msgCount"
:searchFix=
"searchFix"
v-on:setAppMsg=
"goAppMsg"
@
jumpToSS=
"jumpToSS"
/>
</div>
<div
class=
"swiper"
>
<mt-swipe
:auto=
"3000"
:speed=
"speedSwiper"
:stopPropagation=
"prevent"
>
...
...
@@ -300,7 +300,11 @@ export default {
...
mapMutations
([
'SET_DATA'
]),
jumpToSS
()
{
this
.
$router
.
push
({
path
:
'/search'
})
},
goAppMsg
(){
this
.
isRefrshMsg
=
true
;
...
...
@@ -892,6 +896,9 @@ export default {
<
style
lang=
"scss"
scoped
>
@import
'../style/mixin'
;
@import
'../style/swiper.min.css'
;
img
{
@include
bis
(
'../images/icon-p3-2.png'
);
}
.banner-container
{
height
:
px2rem
(
210px
)
}
...
...
src/views/search-index.vue
浏览文件 @
5844cb68
<
template
>
<div>
<SearchHeader/>
<SearchHeader
@
search=
"search"
/>
<SplitLine/>
<!--
<HistorySearch/>
-->
<
SearchLabel
:allTags=
"allTags
"
/>
<
SearchLabel
title=
"热门搜索"
:showDelete=
"false"
:allTags=
"allTags
"
/>
<
HisttoryLabels
:allLabels=
"allLabels"
:hasResult=
"hasResult
"
/>
<
HotLabels
title=
"热门搜索"
:showDelete=
"false"
:allLabels=
"allLabels"
:hasResult=
"hasResult
"
/>
</div>
</
template
>
<
script
>
import
SearchHeader
from
'../components/business/search-header'
;
import
SplitLine
from
'../components/business/split-line'
;
import
Hist
orySearch
from
'../components/business/history-search
'
;
import
SearchLabel
from
'../components/business/search-label
'
;
import
Hist
toryLabels
from
'../components/business/history-labels
'
;
import
HotLabels
from
'../components/business/hot-labels
'
;
export
default
{
data
(){
data
()
{
return
{
showDelete
:
false
,
allTags
:
[{
"doctorId"
:
452
,
"doctorName"
:
"刘飞刘"
,
"doctorImg"
:
"https://file.yunqueyi.com/File/course_doctor/2018-11/19/452.png"
,
"doctorAvatarImg"
:
"https://file.yunqueyi.com/image/jpeg/2018/10/12/20181012134114808-5339c711.jpg"
,
"doctorHospital"
:
"沈阳市第四人民医院"
,
"joinNum"
:
818
,
"resourceNum"
:
1
,
"structureId"
:
132
},{
"doctorId"
:
424
,
"doctorName"
:
"阮园阮园阮园"
,
"doctorImg"
:
"https://file.yunqueyi.com/File/course_doctor/2018-11/19/424.png"
,
"doctorAvatarImg"
:
"https://file.yunqueyi.com/image/jpeg/2018/08/30/20180830111232896-de2f9015.jpg"
,
"doctorHospital"
:
"浙江医院"
,
"joinNum"
:
533
,
"resourceNum"
:
2
,
"structureId"
:
132
},{
"doctorId"
:
351
,
"doctorName"
:
"李翔李翔李翔"
,
"doctorImg"
:
"https://file.yunqueyi.com/File/course_doctor/2018-11/19/351.png"
,
"doctorAvatarImg"
:
"https://file.yunqueyi.com/File/course_doctor/2017-04/06/lixiang.jpg"
,
"doctorHospital"
:
"解放军306医院全军糖尿病中心"
,
"joinNum"
:
503
,
"resourceNum"
:
2
,
"structureId"
:
132
},{
"doctorId"
:
360
,
"doctorName"
:
"高蕾莉"
,
"doctorImg"
:
"https://file.yunqueyi.com/File/course_doctor/2018-11/20/360.png"
,
"doctorAvatarImg"
:
"https://file.yunqueyi.com/File/course_doctor/2018-11/20/web_360.png"
,
"doctorHospital"
:
"北京大学人民医院"
,
"joinNum"
:
376
,
"resourceNum"
:
1
,
"structureId"
:
132
}]
hasResult
:
true
,
allLabels
:
[{
"doctorId"
:
452
,
"doctorName"
:
"刘飞刘"
,
"doctorImg"
:
"https://file.yunqueyi.com/File/course_doctor/2018-11/19/452.png"
,
"doctorAvatarImg"
:
"https://file.yunqueyi.com/image/jpeg/2018/10/12/20181012134114808-5339c711.jpg"
,
"doctorHospital"
:
"沈阳市第四人民医院"
,
"joinNum"
:
818
,
"resourceNum"
:
1
,
"structureId"
:
132
},{
"doctorId"
:
424
,
"doctorName"
:
"阮园阮园阮园"
,
"doctorImg"
:
"https://file.yunqueyi.com/File/course_doctor/2018-11/19/424.png"
,
"doctorAvatarImg"
:
"https://file.yunqueyi.com/image/jpeg/2018/08/30/20180830111232896-de2f9015.jpg"
,
"doctorHospital"
:
"浙江医院"
,
"joinNum"
:
533
,
"resourceNum"
:
2
,
"structureId"
:
132
},{
"doctorId"
:
351
,
"doctorName"
:
"李翔李翔李翔"
,
"doctorImg"
:
"https://file.yunqueyi.com/File/course_doctor/2018-11/19/351.png"
,
"doctorAvatarImg"
:
"https://file.yunqueyi.com/File/course_doctor/2017-04/06/lixiang.jpg"
,
"doctorHospital"
:
"解放军306医院全军糖尿病中心"
,
"joinNum"
:
503
,
"resourceNum"
:
2
,
"structureId"
:
132
},{
"doctorId"
:
360
,
"doctorName"
:
"高蕾莉"
,
"doctorImg"
:
"https://file.yunqueyi.com/File/course_doctor/2018-11/20/360.png"
,
"doctorAvatarImg"
:
"https://file.yunqueyi.com/File/course_doctor/2018-11/20/web_360.png"
,
"doctorHospital"
:
"北京大学人民医院"
,
"joinNum"
:
376
,
"resourceNum"
:
1
,
"structureId"
:
132
}]
}
},
components
:
{
SearchHeader
,
SplitLine
,
Hist
orySearch
,
SearchLabel
Hist
toryLabels
,
HotLabels
},
created
(){
},
mounted
(){
},
methods
:
{
getStatusHight
(){
rocNative
.
getStatusBarHeight
({
__funcName
:
'__getStatusBarHeight'
})
},
goToPage
(){
// alert("000");
this
.
$emit
(
'setAppMsg'
,
false
)
this
.
pageBurialPoin
({
menuLevel
:
1
,
menuCode
:
'm_home'
,
functionCode
:
'f_notification'
,
actionCode
:
'c_notification'
,
})
rocNative
.
readMessage
();
search
(
searchText
)
{
console
.
log
(
searchText
)
}
},
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录