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
81609139
authored
Jul 09, 2019
by
mamingqun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cb
parent
d5b30e7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
11 deletions
+39
-11
src/views/erjiye.vue
+34
-10
src/views/xiangqing.vue
+5
-1
No files found.
src/views/erjiye.vue
View file @
81609139
...
...
@@ -20,7 +20,7 @@
{{
ele
.
catname
}}
<div
v-if=
"ele.child.length"
class=
"xiala"
></div>
</li>
<div
:class=
"[ele.catname,'none']"
>
<div
:class=
"[ele.catname,'none'
,'sanjiye'
]"
>
<li
class=
"san-title"
v-for=
"(park, num1) in ele.child"
...
...
@@ -71,7 +71,8 @@ export default {
filterList
:
[],
upAndDown
:
'up-img'
,
lastOpen
:
null
,
aniLock
:
true
aniLock
:
true
,
allClose
:
false
}
},
activated
()
{
...
...
@@ -79,7 +80,7 @@ export default {
this
.
resetSearch
()
$
(
".content-box"
).
scrollTop
(
this
.
$store
.
state
.
erjiyeScroll
)
},
mounted
()
{
this
.
watchMaodian
()
...
...
@@ -88,7 +89,6 @@ export default {
},
2000
);
this
.
watchBottom
();
},
methods
:
{
watchMaodian
()
{
...
...
@@ -222,18 +222,42 @@ export default {
$
(
'#'
+
oldVal
+
' .xiala'
).
removeClass
(
'up'
)
});
}
},
allClose
(
newVal
,
oldVal
)
{
if
(
newVal
)
{
$
(
'.xiala'
).
each
(
function
()
{
$
(
this
).
removeClass
(
'up'
)
})
$
(
'.sub-title'
).
each
(
function
()
{
$
(
this
).
data
(
'category'
,
0
)
})
$
(
'.sanjiye'
).
each
(
function
()
{
$
(
this
).
hide
()
})
$
(
".content-box"
).
scrollTop
(
this
.
$store
.
state
.
erjiyeScroll
)
}
}
},
components
:
{
goBack
},
beforeRouteEnter
(
to
,
from
,
next
)
{
console
.
log
(
'to'
)
console
.
log
(
to
)
console
.
log
(
'from'
)
console
.
log
(
from
)
beforeRouteEnter
(
to
,
from
,
next
)
{
// console.log('to')
// console.log(to)
// console.log('from')
// console.log(from)
next
()
if
(
from
.
name
===
'yjml'
)
{
next
(
vm
=>
{
vm
.
allClose
=
Math
.
random
()
})
}
else
{
next
()
}
},
beforeRouteUpdate
(
to
,
from
,
next
)
{
console
.
log
(
'beforeRouteUpdate'
)
}
}
</
script
>
...
...
src/views/xiangqing.vue
View file @
81609139
<
template
>
<div>
<div
class=
"xiangqingmmmm"
>
<goBack
class=
"animated pulse"
/>
<div
class=
"laozhao"
@
click=
"showMulu"
></div>
<div
class=
"preventHuadong"
v-show=
"mulu"
></div>
...
...
@@ -300,6 +300,10 @@ export default {
<
style
lang=
"less"
>
@r
:
75rem
;
.xiangqingmmmm
*
{
user-select
:
none
;
}
.none
{
display
:
none
;
}
...
...
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