Commit 81609139 by mamingqun

cb

parent d5b30e7f
......@@ -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>
......
<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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment