Commit f824edb8e1fe1491341b9aeca35c480a53276f56
1 parent
41b72afb
分类
Showing
1 changed file
with
4 additions
and
5 deletions
pages/goods/categoryList/categoryList.js
@@ -60,7 +60,7 @@ Page({ | @@ -60,7 +60,7 @@ Page({ | ||
60 | is_hot: 0, | 60 | is_hot: 0, |
61 | msgStatus:false, //页面显示暂无数据状态 | 61 | msgStatus:false, //页面显示暂无数据状态 |
62 | countDownNum: 3, | 62 | countDownNum: 3, |
63 | - timer: '', //定时器 | 63 | + timer: null, //定时器 |
64 | lastMsg:false, | 64 | lastMsg:false, |
65 | toView:"", | 65 | toView:"", |
66 | is_show_class:false,//是否添加新样式 | 66 | is_show_class:false,//是否添加新样式 |
@@ -706,9 +706,8 @@ Page({ | @@ -706,9 +706,8 @@ Page({ | ||
706 | // 新的版本分类点击一级分类 | 706 | // 新的版本分类点击一级分类 |
707 | click_classify:function(e){ | 707 | click_classify:function(e){ |
708 | // 在风格三的时候,才会有current | 708 | // 在风格三的时候,才会有current |
709 | - this.setData({ | ||
710 | - countDownNum: 3, | ||
711 | - }); | 709 | + clearInterval(this.data.timer); |
710 | + | ||
712 | let cur = e.currentTarget.dataset.current; | 711 | let cur = e.currentTarget.dataset.current; |
713 | if(cur) { | 712 | if(cur) { |
714 | if (this.data.currentTab == cur) { | 713 | if (this.data.currentTab == cur) { |
@@ -745,7 +744,7 @@ Page({ | @@ -745,7 +744,7 @@ Page({ | ||
745 | } | 744 | } |
746 | this.setData({ one_level_classify: arr2}); | 745 | this.setData({ one_level_classify: arr2}); |
747 | //this.data.one_level_classify[e.currentTarget.dataset.index]['items']['is_show_class'] = true | 746 | //this.data.one_level_classify[e.currentTarget.dataset.index]['items']['is_show_class'] = true |
748 | - console.log(e.currentTarget.dataset.index) | 747 | + // console.log(e.currentTarget.dataset.index) |
749 | clearInterval(this.data.timer); | 748 | clearInterval(this.data.timer); |
750 | this.setData({ countDownNum: 3, stylePage: 1, scrollTop: 0}); | 749 | this.setData({ countDownNum: 3, stylePage: 1, scrollTop: 0}); |
751 | this.data.ishaf_three = 0; | 750 | this.data.ishaf_three = 0; |