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
提交
69af73d2
提交
69af73d2
编写于
12月 19, 2018
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test
上级
efc932f5
变更
9
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
571 行增加
和
79 行删除
+571
-79
five-minutes.vue
src/components/business/five-minutes.vue
+5
-1
health-comics.vue
src/components/business/health-comics.vue
+0
-55
history-labels.vue
src/components/business/history-labels.vue
+12
-4
teacher-list.vue
src/components/business/teacher-list.vue
+0
-15
index.vue
src/views/index.vue
+5
-4
result.3.vue
src/views/result.3.vue
+372
-0
result.vue
src/views/result.vue
+9
-0
search-index.3.vue
src/views/search-index.3.vue
+161
-0
search-index.vue
src/views/search-index.vue
+7
-0
未找到文件。
src/components/business/five-minutes.vue
浏览文件 @
69af73d2
...
...
@@ -162,7 +162,11 @@ export default {
"seqNo"
:
1
}]
}
this
.
pageBurialPoin
(
obj
)
this
.
pageBurialPoin
({
...
m_search_result_five_minutes_detail
,
labelValue
:
item
.
title
,
createdTime
:
new
Date
().
getTime
(),
})
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
// alert(itemData.appModuleInfo.code)
...
...
src/components/business/health-comics.vue
浏览文件 @
69af73d2
...
...
@@ -146,61 +146,6 @@ export default {
})
},
goToDetail
(
item
)
{
let
_this
=
this
;
this
.
$router
.
push
({
path
:
'/teachersDetail'
,
query
:
{
id
:
item
.
doctorId
,
token
:
_this
.
token
}
})
this
.
pageBurialPoin
({
...
m_search_result_health_cartoon_detail
,
labelValue
:
orderIndex
,
createdTime
:
new
Date
().
getTime
(),
})
},
//排序
sortFun
()
{
this
.
dir
=
this
.
dir
==
1
?
2
:
1
;
this
.
getData
()
},
randomBg
(
d
)
{
for
(
let
i
=
0
;
i
<
d
.
length
;
i
++
)
{
if
(
i
%
4
==
0
)
{
d
[
i
].
bgColor
=
'#EBF6F1'
}
else
if
(
i
%
4
==
1
)
{
d
[
i
].
bgColor
=
'#EDF3FA'
}
else
if
(
i
%
4
==
2
)
{
d
[
i
].
bgColor
=
'#F0F0FA'
}
else
if
(
i
%
4
==
3
)
{
d
[
i
].
bgColor
=
'#F6EFE6'
}
}
/// console.log(d);
},
getData
()
{
let
_this
=
this
,
para
=
{
token
:
_this
.
token
,
setEntry
:
'headers'
}
let
url
=
'/contents/courseDoctor/getAllTeacher/orderby/'
+
_this
.
col
+
'/dir/'
+
_this
.
dir
this
.
GET
(
url
,
para
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
_this
.
list
=
res
.
data
.
teacherList
||
[];
_this
.
followCount
=
res
.
data
.
followCount
||
0
;
_this
.
studyCount
=
res
.
data
.
studyCount
||
0
;
if
(
_this
.
list
.
length
>
0
)
{
_this
.
randomBg
(
_this
.
list
);
}
}
})
},
orderAction
(
orderIndex
)
{
this
.
pageBurialPoin
({
...
m_search_result_health_cartoon_order
,
...
...
src/components/business/history-labels.vue
浏览文件 @
69af73d2
...
...
@@ -3,7 +3,7 @@
<section
class=
"history-labels-title"
>
<span>
{{
title
}}
</span>
<span
v-show=
"showDelete"
class=
"history-labels-title-all"
>
<span
@
click=
"
showConfirm=tru
e"
>
全部删除
</span><span>
|
</span><span
@
click=
"toggleDelete"
>
取消
</span>
<span
@
click=
"
confirmDelet
e"
>
全部删除
</span><span>
|
</span><span
@
click=
"toggleDelete"
>
取消
</span>
</span>
<img
@
click=
"toggleDelete"
v-show=
"!showDelete"
src=
"../../images/sousuo/recicle.png"
alt=
"删除"
>
</section>
...
...
@@ -12,8 +12,8 @@
v-if=
"index
<
10
"
@
click=
"searchAction(item.keyword)"
v-for=
"(item, index) in allLabels"
:key=
"index"
>
<span>
<span
class=
"history-labels-item-name"
>
{{
item
.
keyword
}}
</span>
<span
class=
"history-labels-item-name"
>
<span
>
{{
item
.
keyword
}}
</span>
<img
@
click=
"deleteLabels(false, index)"
v-show=
"showDelete"
src=
"../../images/sousuo/delete.png"
alt=
""
>
...
...
@@ -118,7 +118,15 @@ export default {
},
getUserInfo
:
function
()
{
rocNative
.
getUserInfo
({
'__funcName'
:
'__getUserInfo'
})
},
},
confirmDelete
()
{
this
.
showConfirm
=
true
this
.
pageBurialPoin
({
...
m_search_result_lecturer_order
,
labelValue
:
orderIndex
,
createdTime
:
new
Date
().
getTime
(),
})
}
}
}
</
script
>
...
...
src/components/business/teacher-list.vue
浏览文件 @
69af73d2
...
...
@@ -118,16 +118,6 @@ export default {
labelValue
:
item
.
name
,
createdTime
:
new
Date
().
getTime
(),
})
// this.appBuryingPointEntrust({
// ...teacher,
// labelId: item.doctorId,
// labelValue: item.doctorName
// })
},
// 埋点
appBuryingPointEntrust
(
val
)
{
rocNative
.
appBuryingPointEntrust
(
val
)
},
//排序
...
...
@@ -169,11 +159,6 @@ export default {
}
})
// this.appBuryingPointEntrust({
// ...teacher,
// labelId: _this.dir,
// labelValue: _this.dir === 1 ? '升序' : '降序'
// })
},
orderAction
(
orderIndex
)
{
this
.
pageBurialPoin
({
...
...
src/views/index.vue
浏览文件 @
69af73d2
<
template
>
<section
class=
"search-container"
>
<
input
type=
"search"
@
click=
"gotoPage"
/
>
<section
>
<
!--
<input
type=
"search"
@
click=
"gotoPage"
/>
--
>
<!--
<form
@
submit
.
prevent=
"search"
>
-->
<!--
<mt-search
@
onkeydown=
"gotoPage"
></mt-search>
-->
<!--
<button
v-show=
"false"
type=
"submit"
/>
-->
<!--
</form>
-->
<img
src=
"https://test1-file.yunqueyi.com/image/HJ_B001_YD_002_A.jpg"
>
<img
v-lazy=
"imgUrl"
>
</section>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
imgUrl
:
'https://test1-file.yunqueyi.com/image/HJ_B001_TS_012_A.jpg'
}
},
created
()
{
...
...
src/views/result.3.vue
0 → 100644
浏览文件 @
69af73d2
此差异已折叠。
点击以展开。
src/views/result.vue
浏览文件 @
69af73d2
...
...
@@ -70,6 +70,9 @@
</
template
>
<
script
>
import
{
m_search_result_tab_switch
}
from
'@/utils/buryingPoint'
import
SplitLine
from
'../components/business/split-line'
;
import
NoMoreItem
from
'../components/business/no-more-item'
;
import
ShowAllItem
from
'../components/business/show-all-item'
;
...
...
@@ -161,6 +164,12 @@ export default {
showAllItem
(
index
)
{
console
.
log
(
typeof
index
)
this
.
navIndex
=
index
this
.
pageBurialPoin
({
...
m_search_result_tab_switch
,
labelValue
:
index
,
createdTime
:
new
Date
().
getTime
(),
})
},
// 搜索结果
search
()
{
...
...
src/views/search-index.3.vue
0 → 100644
浏览文件 @
69af73d2
<
template
>
<div>
<!--
<SearchHeader
@
search=
"search"
:searchText=
"searchText"
/>
-->
<form
@
submit
.
prevent=
"search"
>
<mt-search
v-model=
"searchText"
></mt-search>
<button
v-show=
"false"
type=
"submit"
/>
</form>
<!--
<SplitLine
/>
-->
<div
class=
"mt-100"
></div>
<HistoryLabels/>
<HotLabels/>
</div>
</
template
>
<
script
>
import
{
mapState
,
mapMutations
}
from
'vuex'
import
SearchHeader
from
'../components/business/search-header'
;
import
SplitLine
from
'../components/business/split-line'
;
import
HistoryLabels
from
'../components/business/history-labels'
;
import
HotLabels
from
'../components/business/hot-labels'
;
export
default
{
data
()
{
return
{
searchText
:
''
,
token
:
''
}
},
components
:
{
SearchHeader
,
SplitLine
,
HistoryLabels
,
HotLabels
},
created
(){
},
computed
:{
...
mapState
([
'sousuo'
])
},
mounted
(){
// let _self = this;
// window.__getUserInfo = function(params){
// _self.token = params.userToken
// // _self.SET_USER_INFO(params)
// _self.getData()
// }
// window.__refresh = function(){
// _self.getUserInfo()
// }
// window.__getStatusBarHeight = function(params){
// _self.SET_NAVBAR_HEIGHT(params)
// }
// window.__getStatusBarHeight = function(parm){
// //lert(parm.statusBarHeight)
// if(window.__isAndroid){
// _this.popHeight = parseInt(parm.statusBarHeight)/2.5
// }else{
// _this.popHeight = parm.statusBarHeight
// }
// _this.ptop = _this.popHeight+'px';
// _this.menuptop = _this.popHeight+'px'
// // alert(parm.statusBarHeight);
// }
// if(window.__isWeb) {
// _self.getData()
// }
// _self.getUserInfo()
// _self.getStatusBarHeight()
},
methods
:
{
...
mapMutations
([
'SET_USER_INFO'
,
'SET_NAVBAR_HEIGHT'
]),
// 跳转到结果页面,并
search
()
{
if
(
!
this
.
searchText
)
return
;
this
.
$router
.
push
({
path
:
'/result'
,
query
:
{
searchText
:
this
.
searchText
}
})
},
// 获取历史搜索
getData
()
{
let
_this
=
this
,
para
=
{
type
:
1
,
token
:
_this
.
token
,
setEntry
:
'headers'
}
let
url
=
'/contents/searchKeyword/listKeywords'
this
.
GET
(
url
,
para
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
data
&&
res
.
data
.
length
)
{
let
index
=
Math
.
floor
(
Math
.
random
()
*
res
.
data
.
length
)
this
.
searchText
=
res
.
data
[
index
].
keyword
}
}
})
},
getUserInfo
:
function
()
{
rocNative
.
getUserInfo
({
'__funcName'
:
'__getUserInfo'
})
},
getStatusBarHeight
:
function
()
{
rocNative
.
getStatusBarHeight
({
'__funcName'
:
'__getStatusBarHeight'
})
}
},
}
</
script
>
<
style
>
.mint-search
{
position
:
fixed
;
top
:
0px
;
z-index
:
2
;
height
:
66px
;
width
:
100%
;
border-bottom
:
1px
solid
#E7E7E7
!important
;
}
.mint-searchbar
{
position
:
relative
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
background
:
#fff
;
box-sizing
:
border-box
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
padding
:
30px
10px
8px
;
z-index
:
1
;
}
.mint-searchbar-cancel
{
margin-left
:
10px
;
font-size
:
14px
;
color
:
#999
;
text-decoration
:
none
;
}
.mint-searchbar-inner
{
background
:
#F5F6F6
;
}
.mint-searchbar-core
{
background
:
#F5F6F6
;
}
</
style
>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<
style
lang=
"scss"
scoped
>
@import
'../style/mixin.scss'
;
@import
'../style/global.scss'
;
.mt-100
{
padding-top
:
px2rem
(
63px
)
!
important
;
}
</
style
>
src/views/search-index.vue
浏览文件 @
69af73d2
...
...
@@ -16,6 +16,13 @@
<
script
>
import
{
mapState
,
mapMutations
}
from
'vuex'
import
{
sortParmData
}
from
'@/utils/index'
import
{
m_search_result_five_minutes_detail
,
m_search_result_five_minutes_order
,
m_search_result_five_minutes_top
,
}
from
'@/utils/buryingPoint'
import
SearchHeader
from
'../components/business/search-header'
;
import
SplitLine
from
'../components/business/split-line'
;
import
HistoryLabels
from
'../components/business/history-labels'
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录