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
提交
88290116
提交
88290116
编写于
12月 24, 2018
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
浮层
上级
77c6db94
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
70 行增加
和
26 行删除
+70
-26
.DS_Store
src/.DS_Store
+0
-0
.DS_Store
src/components/.DS_Store
+0
-0
first-time-ss.vue
src/components/common/first-time-ss.vue
+40
-15
sousuo-fc.png
src/images/sousuo/sousuo-fc.png
+0
-0
result.vue
src/views/result.vue
+10
-3
search-index.vue
src/views/search-index.vue
+20
-8
未找到文件。
src/.DS_Store
浏览文件 @
88290116
无法预览此类型文件
src/components/.DS_Store
浏览文件 @
88290116
无法预览此类型文件
src/components/common/first-time-ss.vue
浏览文件 @
88290116
<
template
>
<div>
<img
src=
""
/>
<div
class=
"loader"
>
<img
class=
"loader-mask"
src=
"../../images/sousuo/sousuo-fc.png"
/>
<span
@
click=
"closeFC"
class=
"loader-btn"
>
我知道了
</span>
</div>
</
template
>
<
script
>
export
default
{
methods
:
{
closeFC
()
{
this
.
$emit
(
'closeFC'
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'../../style/mixin'
;
.loader
{
position
:
fixed
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
z-index
:
5
;
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
0
.5
);
&
-mask
{
position
:
fixed
;
top
:
0
;
left
:
0
;
bottom
:
0
;
right
:
0
;
z-index
:
100
;
top
:
px2rem
(
64px
);
left
:
px2rem
(
38px
);
bottom
:
px2rem
(
64px
);
right
:
px2rem
(
37px
);
width
:
px2rem
(
300px
);
z-index
:
4
;
background
:
rgba
(
0
,
0
,
0
,
0
.5
);
}
svg
{
&
-btn
{
display
:
inline-block
;
position
:
absolute
;
top
:
px2rem
(
280px
);
left
:
px2rem
(
166px
);
z-index
:
101
;
left
:
px2rem
(
128px
);
bottom
:
px2rem
(
120px
);
height
:
px2rem
(
30px
);
width
:
px2rem
(
120px
);
z-index
:
6
;
text-align
:
center
;
padding-top
:
px2rem
(
4px
);
font-size
:
px2rem
(
15px
);
border
:
1px
solid
#fff
;
border-radius
:
px2rem
(
30px
);
color
:
#fff
;
}
}
svg
path
,
svg
rect
{
fill
:
#fff
;
// fill: #449284;
}
</
style
>
src/images/sousuo/sousuo-fc.png
0 → 100755
浏览文件 @
88290116
19.4 KB
src/views/result.vue
浏览文件 @
88290116
...
...
@@ -12,8 +12,8 @@
<img
class=
"search-container-img"
@
click=
"back"
src=
"../images/sousuo/left-arrow-black.png"
/>
<div
>
<span
class=
"search-container-img2"
><img
class=
"search-container-img"
src=
"../images/sousuo/search-black.png"
/></span>
<input
id=
"search-input"
class=
"search-container-input"
type=
"search"
v-model=
"searchText"
maxlength=
"100
"
>
<span
class=
"search-container-img3"
@
click
=
"clearText"
><img
class=
"search-container-img"
src=
"../images/sousuo/delete.png"
/></span>
<input
class=
"search-container-input"
type=
"search"
v-model=
"searchText"
maxlength=
"100"
@
focus
.
prevent=
"onInputFocus"
@
blur
.
prevent=
"onInputBlur
"
>
<span
v-show=
"isOnFocus"
class=
"search-container-img3"
@
click
.
prevent
=
"clearText"
><img
class=
"search-container-img"
src=
"../images/sousuo/delete.png"
/></span>
<span
class=
"search-container-cancle"
@
click
.
prevent=
"search"
>
搜索
</span>
</div>
</div>
...
...
@@ -109,6 +109,7 @@ import BackTop from '@/components/common/backTop'
export
default
{
data
()
{
return
{
isOnFocus
:
false
,
isShowTop
:
false
,
// token: '',
navIndex
:
'0'
,
...
...
@@ -347,6 +348,12 @@ export default {
},
clearText
()
{
this
.
searchText
=
''
},
onInputFocus
()
{
this
.
isOnFocus
=
true
},
onInputBlur
()
{
this
.
isOnFocus
=
false
}
},
}
...
...
@@ -436,7 +443,7 @@ export default {
position
:
absolute
;
top
:
px2rem
(
9px
);
left
:
px2rem
(
274px
);
z-index
:
2
;
z-index
:
5
;
img
{
width
:
px2rem
(
22px
);
height
:
px2rem
(
22px
);
...
...
src/views/search-index.vue
浏览文件 @
88290116
...
...
@@ -8,8 +8,8 @@
<img
class=
"search-container-img"
@
click=
"back"
src=
"../images/sousuo/left-arrow-black.png"
/>
<div
>
<span
class=
"search-container-img2"
><img
class=
"search-container-img"
src=
"../images/sousuo/search-black.png"
/></span>
<input
class=
"search-container-input"
type=
"search"
v-model=
"searchText"
maxlength=
"100"
:placeholder=
"pSearchText"
>
<span
class=
"search-container-img3"
@
click=
"clearText"
><img
class=
"search-container-img"
src=
"../images/sousuo/delete.png"
/></span>
<input
class=
"search-container-input"
type=
"search"
v-model=
"searchText"
maxlength=
"100"
:placeholder=
"pSearchText"
@
focus=
"onInputFocus"
@
blur=
"onInputBlur"
>
<span
v-show=
"isOnFocus"
class=
"search-container-img3"
@
click=
"clearText"
><img
class=
"search-container-img"
src=
"../images/sousuo/delete.png"
/></span>
<span
class=
"search-container-cancle"
@
click
.
prevent=
"search"
>
搜索
</span>
</div>
</div>
...
...
@@ -20,6 +20,7 @@
<!--
<div
class=
"mt-100"
></div>
-->
<HistoryLabels/>
<HotLabels/>
<FirstTimeSS
v-show=
"needShowFirstTime"
@
closeFC=
"closeFC"
/>
</div>
</
template
>
...
...
@@ -30,6 +31,7 @@ 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'
;
import
FirstTimeSS
from
'../components/common/first-time-ss'
;
export
default
{
data
()
{
...
...
@@ -37,14 +39,16 @@ export default {
searchText
:
''
,
pSearchText
:
''
,
token
:
''
,
needShowFirstTime
:
false
needShowFirstTime
:
true
,
isOnFocus
:
false
}
},
components
:
{
SearchHeader
,
SplitLine
,
HistoryLabels
,
HotLabels
HotLabels
,
FirstTimeSS
},
created
(){
...
...
@@ -63,14 +67,14 @@ export default {
_self
.
getData
()
}
window
.
__isFirstTime
=
function
(
param
)
{
if
(
param
.
isFirst
==
'true'
)
{
this
.
needShowFirstTime
=
true
if
(
param
.
isFirst
==
=
'true'
)
{
_self
.
needShowFirstTime
=
true
rocNative
.
setFirstTime
({
projectName
:
'YQY_PROJECT_SOUSUO'
,
isFirst
:
'false'
})
}
else
{
this
.
needShowFirstTime
=
false
_self
.
needShowFirstTime
=
false
}
}
},
...
...
@@ -201,7 +205,15 @@ export default {
__funcName
:
'__isFirstTime'
})
},
onInputFocus
()
{
this
.
isOnFocus
=
true
},
onInputBlur
()
{
this
.
isOnFocus
=
false
},
closeFC
()
{
this
.
needShowFirstTime
=
false
}
},
}
</
script
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录