modify channel isShow init
Showing
1 changed file
with
3 additions
and
4 deletions
@@ -130,6 +130,9 @@ export default { | @@ -130,6 +130,9 @@ export default { | ||
130 | 'channelList.list': function() { | 130 | 'channelList.list': function() { |
131 | this.init(); | 131 | this.init(); |
132 | }, | 132 | }, |
133 | + 'isShow': function() { | ||
134 | + this.init(); | ||
135 | + }, | ||
133 | navList() { | 136 | navList() { |
134 | this.$nextTick(() => { | 137 | this.$nextTick(() => { |
135 | this.refreshProductList(this.active); | 138 | this.refreshProductList(this.active); |
@@ -321,12 +324,8 @@ export default { | @@ -321,12 +324,8 @@ export default { | ||
321 | if (this.navTop) { | 324 | if (this.navTop) { |
322 | if (this.scrollY >= this.navTop) { | 325 | if (this.scrollY >= this.navTop) { |
323 | this.isShow = true; | 326 | this.isShow = true; |
324 | - | ||
325 | - // this.isA = false; | ||
326 | } else { | 327 | } else { |
327 | this.isShow = false; | 328 | this.isShow = false; |
328 | - | ||
329 | - // this.isA = true; | ||
330 | } | 329 | } |
331 | } | 330 | } |
332 | }, | 331 | }, |
-
Please register or login to post a comment