Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
05b068d0
Commit
05b068d0
authored
Nov 09, 2019
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
间距 + 顶部行业动态鼠标滑入滑出
parent
f5e17665
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
PageTop.vue
src/components/index/PageTop.vue
+22
-7
detail.vue
src/views/knowledge/mobile/detail.vue
+1
-2
No files found.
src/components/index/PageTop.vue
View file @
05b068d0
...
@@ -12,13 +12,16 @@
...
@@ -12,13 +12,16 @@
<li
<li
@
click
.
stop=
"handleClick(index)"
@
click
.
stop=
"handleClick(index)"
@
mouseenter=
"handleShowChildren(index)"
@
mouseenter=
"handleShowChildren(index)"
:class=
"currentIndex==index?'activeLi':''"
@
mouseout=
"handleHideChildren(index)"
:class=
"[currentIndex==index?'activeLi':'',
{'relative':index === 3}]"
v-for="(item,index) in list">
{{
$t
(
'topNav.'
+
item
.
name
)
}}
v-for="(item,index) in list">
{{
$t
(
'topNav.'
+
item
.
name
)
}}
<div
class=
"childrenLi"
v-if=
"isShowChildren && index === 3"
@
mouseleave=
"handleIsHide"
>
<p
@
click=
"handleToIndustryFocus"
>
{{
$t
(
'topNav.professionfocusing'
)
}}
</p>
<p
@
click=
"handleToCase"
>
{{
$t
(
'topNav.cooperationcase'
)
}}
</p>
</div>
</li>
</li>
<div
class=
"childrenLi"
v-if=
"isShowChildren"
>
<p
@
click=
"handleToIndustryFocus"
>
{{
$t
(
'topNav.professionfocusing'
)
}}
</p>
<p
@
click=
"handleToCase"
>
{{
$t
(
'topNav.cooperationcase'
)
}}
</p>
</div>
<li
v-if=
"userInfo"
class=
"workPlaceLi"
@
click=
"handleToWork"
><span
class=
"iconfont icon-ic_web"
style=
"color: #ff9e29;"
></span>
{{
$t
(
"topNav.workPlace"
)
}}
</li>
<li
v-if=
"userInfo"
class=
"workPlaceLi"
@
click=
"handleToWork"
><span
class=
"iconfont icon-ic_web"
style=
"color: #ff9e29;"
></span>
{{
$t
(
"topNav.workPlace"
)
}}
</li>
</ul>
</ul>
</div>
</div>
...
@@ -254,6 +257,14 @@
...
@@ -254,6 +257,14 @@
},
},
handleHideChildren
(
index
){
},
handleIsHide
(){
this
.
isShowChildren
=
false
;
},
//去消息
//去消息
handleToAnnounce
(){
handleToAnnounce
(){
this
.
getInitList
();
this
.
getInitList
();
...
@@ -511,6 +522,9 @@
...
@@ -511,6 +522,9 @@
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.relative
{
position
:
relative
;
}
.authinfo
{
.authinfo
{
img
{
img
{
height
:
17px
;
height
:
17px
;
...
@@ -742,9 +756,10 @@
...
@@ -742,9 +756,10 @@
.childrenLi
{
.childrenLi
{
background
:
#fff
;
background
:
#fff
;
position
:
absolute
;
position
:
absolute
;
top
:
6
0px
;
top
:
4
0px
;
left
:
58
0px
;
left
:
0px
;
width
:
110px
;
width
:
110px
;
z-index
:
99
;
&
>
p
{
&
>
p
{
text-align
:
center
;
text-align
:
center
;
color
:
#3F3F53
;
color
:
#3F3F53
;
...
...
src/views/knowledge/mobile/detail.vue
View file @
05b068d0
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<div
v-for=
"(item,index) in jsoncont.contentList"
class=
"contentListWrap"
>
<div
v-for=
"(item,index) in jsoncont.contentList"
class=
"contentListWrap"
>
<p>
<p>
<img
:src=
"item.images"
alt=
""
>
<img
:src=
"item.images"
alt=
""
>
<span
class=
"imgOrigin"
>
{{
item
.
imgOriginTitle
}}
</span>
<span
class=
"imgOrigin"
v-if=
"item.imgOriginTitle"
>
{{
item
.
imgOriginTitle
}}
</span>
</p>
</p>
<p
class=
"contentTitle"
v-if=
"item.contentTitle"
>
{{
item
.
contentTitle
}}
</p>
<p
class=
"contentTitle"
v-if=
"item.contentTitle"
>
{{
item
.
contentTitle
}}
</p>
</div>
</div>
...
@@ -122,7 +122,6 @@
...
@@ -122,7 +122,6 @@
padding
:
.2rem
;
padding
:
.2rem
;
border-radius
:
.03rem
;
border-radius
:
.03rem
;
line-height
:
.46rem
;
line-height
:
.46rem
;
margin-bottom
:
.3rem
;
color
:
#69697A
;
color
:
#69697A
;
}
}
>
p
:nth-child
(
1
)
{
>
p
:nth-child
(
1
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment