Commit f824edb8e1fe1491341b9aeca35c480a53276f56

Authored by 后端研发-苏泰源
1 parent 41b72afb

分类

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