diff --git a/packageC/pages/group_list/group_list.js b/packageC/pages/group_list/group_list.js index 59fdf50..9a67abc 100644 --- a/packageC/pages/group_list/group_list.js +++ b/packageC/pages/group_list/group_list.js @@ -12,7 +12,7 @@ Page({ // type:1, // goodlist: null, - + isLogin: false, list: null, isLoading: false, // 检测是否已经发送请求,防止重复发送请求 noMore: false, // 检测是否有更多数据,true为没有更多数据,false为还有数据 @@ -72,22 +72,19 @@ Page({ }); }); - // this.data.is_timer=1; - // this.data.ismore=1; - // this.data.is_timer=1; - // this.data.currentPage=1; - var th=this; - // th.setData({goodlist:null,}) - // this.requestSalelist(); - - //设置全局定时器 - th.data.timer = setInterval(function () { - th.countDown(); - },1000); - - + this.data.is_timer=1; + }; + + + //设置全局定时器 + this.data.timer = setInterval(function () { + self.countDown(); + },1000); + + }; + }, /** @@ -204,7 +201,7 @@ Page({ //----倒计时函数----- countDown() { - // if(!this.data.is_timer) return false; + if(!this.data.is_timer) return false; var th=this; // 获取当前时间,同时得到活动结束时间数组 let newTime = ut.gettimestamp(); @@ -251,7 +248,6 @@ Page({ goto(e) { let url = e.target.dataset.url; - // console.log('999999',e); app.goto(url); }, diff --git a/packageC/pages/group_list/group_list.wxss b/packageC/pages/group_list/group_list.wxss index dccb54d..8c38c5c 100644 --- a/packageC/pages/group_list/group_list.wxss +++ b/packageC/pages/group_list/group_list.wxss @@ -53,6 +53,6 @@ page { font-size: 24rpx; line-height: 2; text-align: center; - margin-top: 10rpx; + /* margin-top: 10rpx; */ color: #ccc; } \ No newline at end of file