Commit 81609139 by mamingqun

cb

parent d5b30e7f
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{{ele.catname}} {{ele.catname}}
<div v-if="ele.child.length" class="xiala"></div> <div v-if="ele.child.length" class="xiala"></div>
</li> </li>
<div :class="[ele.catname,'none']"> <div :class="[ele.catname,'none','sanjiye']">
<li <li
class="san-title" class="san-title"
v-for="(park, num1) in ele.child" v-for="(park, num1) in ele.child"
...@@ -71,7 +71,8 @@ export default { ...@@ -71,7 +71,8 @@ export default {
filterList: [], filterList: [],
upAndDown: 'up-img', upAndDown: 'up-img',
lastOpen: null, lastOpen: null,
aniLock: true aniLock: true,
allClose: false
} }
}, },
activated() { activated() {
...@@ -79,7 +80,7 @@ export default { ...@@ -79,7 +80,7 @@ export default {
this.resetSearch() this.resetSearch()
$(".content-box").scrollTop(this.$store.state.erjiyeScroll) $(".content-box").scrollTop(this.$store.state.erjiyeScroll)
}, },
mounted() { mounted() {
this.watchMaodian() this.watchMaodian()
...@@ -88,7 +89,6 @@ export default { ...@@ -88,7 +89,6 @@ export default {
}, 2000); }, 2000);
this.watchBottom(); this.watchBottom();
}, },
methods: { methods: {
watchMaodian() { watchMaodian() {
...@@ -222,18 +222,42 @@ export default { ...@@ -222,18 +222,42 @@ export default {
$('#' + oldVal + ' .xiala').removeClass('up') $('#' + 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: { components: {
goBack goBack
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter(to, from, next) {
console.log('to')
console.log( to ) // console.log('to')
console.log('from') // console.log(to)
console.log( from ) // 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> </script>
......
<template> <template>
<div> <div class="xiangqingmmmm">
<goBack class="animated pulse" /> <goBack class="animated pulse" />
<div class="laozhao" @click="showMulu"></div> <div class="laozhao" @click="showMulu"></div>
<div class="preventHuadong" v-show="mulu"></div> <div class="preventHuadong" v-show="mulu"></div>
...@@ -300,6 +300,10 @@ export default { ...@@ -300,6 +300,10 @@ export default {
<style lang="less"> <style lang="less">
@r: 75rem; @r: 75rem;
.xiangqingmmmm *{
user-select: none;
}
.none { .none {
display: 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