Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
zhaocaih5-wanda
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5e16efac
authored
Jul 08, 2019
by
mamingqun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cb
parent
c661902b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
21 deletions
+25
-21
src/views/erjiye.vue
+19
-13
src/views/xu.vue
+6
-8
No files found.
src/views/erjiye.vue
View file @
5e16efac
...
@@ -69,7 +69,8 @@ export default {
...
@@ -69,7 +69,8 @@ export default {
keyWord
:
''
,
keyWord
:
''
,
searchList
:
[],
searchList
:
[],
filterList
:
[],
filterList
:
[],
upAndDown
:
'up-img'
upAndDown
:
'up-img'
,
lastOpen
:
null
}
}
},
},
activated
()
{
activated
()
{
...
@@ -107,7 +108,9 @@ export default {
...
@@ -107,7 +108,9 @@ export default {
$eventbus
.
$emit
(
'detailData'
,
{
id
,
title
})
$eventbus
.
$emit
(
'detailData'
,
{
id
,
title
})
});
});
}
else
{
}
else
{
var
num
=
$
(
'#'
+
item
.
catname
).
data
(
'category'
)
var
num
=
$
(
'#'
+
item
.
catname
).
data
(
'category'
)
if
(
num
===
0
)
{
if
(
num
===
0
)
{
$
(
'.'
+
item
.
catname
).
animate
({
$
(
'.'
+
item
.
catname
).
animate
({
display
:
'block'
,
display
:
'block'
,
...
@@ -124,6 +127,8 @@ export default {
...
@@ -124,6 +127,8 @@ export default {
$
(
'#'
+
item
.
catname
).
data
(
'category'
,
0
)
$
(
'#'
+
item
.
catname
).
data
(
'category'
,
0
)
$
(
'#'
+
item
.
catname
+
' .xiala'
).
removeClass
(
'up'
)
$
(
'#'
+
item
.
catname
+
' .xiala'
).
removeClass
(
'up'
)
}
}
this
.
lastOpen
=
item
.
catname
}
}
},
},
resetSearch
()
{
resetSearch
()
{
...
@@ -169,19 +174,10 @@ export default {
...
@@ -169,19 +174,10 @@ export default {
nScrollHight
=
$
(
this
)[
0
].
scrollHeight
;
nScrollHight
=
$
(
this
)[
0
].
scrollHeight
;
nScrollTop
=
$
(
this
)[
0
].
scrollTop
;
nScrollTop
=
$
(
this
)[
0
].
scrollTop
;
console
.
log
(
nScrollTop
);
_this
.
$store
.
commit
(
'chageEjiyeScroll'
,
nScrollTop
)
_this
.
$store
.
commit
(
'chageEjiyeScroll'
,
nScrollTop
)
// if (nScrollTop === 0) {
// _this.upAndDown = 'up-img'
// }
// if (nScrollTop + nDivHight >= nScrollHight) {
// // alert("以到底")
// _this.upAndDown = 'down-img'
// }
});
});
}
}
,
},
},
watch
:
{
watch
:
{
keyWord
(
newVal
,
oldVal
)
{
keyWord
(
newVal
,
oldVal
)
{
...
@@ -198,6 +194,16 @@ export default {
...
@@ -198,6 +194,16 @@ export default {
this
.
filterList
=
arr
this
.
filterList
=
arr
}
}
},
lastOpen
(
newVal
,
oldVal
)
{
if
(
newVal
!==
oldVal
&&
newVal
&&
oldVal
)
{
$
(
'.'
+
oldVal
).
animate
({
display
:
'none'
,
height
:
'toggle'
});
$
(
'#'
+
oldVal
).
data
(
'category'
,
0
)
$
(
'#'
+
oldVal
+
' .xiala'
).
removeClass
(
'up'
)
}
}
}
},
},
components
:
{
components
:
{
...
@@ -399,7 +405,7 @@ export default {
...
@@ -399,7 +405,7 @@ export default {
padding-left
:
45
/
@
r
;
padding-left
:
45
/
@
r
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
}
}
}
}
}
}
...
...
src/views/xu.vue
View file @
5e16efac
...
@@ -5,11 +5,6 @@
...
@@ -5,11 +5,6 @@
<div
id=
"io"
class=
"xu"
@
click=
"handleJump"
>
<div
id=
"io"
class=
"xu"
@
click=
"handleJump"
>
<div
class=
"main-box"
>
<div
class=
"main-box"
>
<div
class=
"title"
></div>
<div
class=
"title"
></div>
<!--
<div
class=
"content"
>
<ul
class=
"content-box"
>
<div
class=
"text-box"
></div>
</ul>
</div>
-->
<div
class=
"content1"
>
<div
class=
"content1"
>
<div
class=
"bi"
></div>
<div
class=
"bi"
></div>
<div
class=
"content2"
></div>
<div
class=
"content2"
></div>
...
@@ -97,14 +92,17 @@ export default {
...
@@ -97,14 +92,17 @@ export default {
}
}
.to-left
{
.to-left
{
width
:
9
0
/
@
r
;
width
:
15
0
/
@
r
;
height
:
9
0
/
@
r
;
height
:
15
0
/
@
r
;
position
:
absolute
;
position
:
absolute
;
right
:
15
/
@
r
;
right
:
15
/
@
r
;
top
:
50%
;
left
:
50%
;
bottom
:
3%
;
background
:
url("../assets/images/02/left.png")
no-repeat
;
background
:
url("../assets/images/02/left.png")
no-repeat
;
background-size
:
contain
;
background-size
:
contain
;
margin-left
:
-75
/
@
r
;
animation
:
left
infinite
alternate
0.5s
linear
;
animation
:
left
infinite
alternate
0.5s
linear
;
z-index
:
10000
;
}
}
@keyframes
left
{
@keyframes
left
{
...
...
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