Commit d3edbe27281fe2dcb519bb15f349b24b5d352f8f
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
2 changed files
with
14 additions
and
18 deletions
packageC/pages/group_list/group_list.js
| @@ -12,7 +12,7 @@ Page({ | @@ -12,7 +12,7 @@ Page({ | ||
| 12 | // type:1, | 12 | // type:1, |
| 13 | // goodlist: null, | 13 | // goodlist: null, |
| 14 | 14 | ||
| 15 | - | 15 | + isLogin: false, |
| 16 | list: null, | 16 | list: null, |
| 17 | isLoading: false, // 检测是否已经发送请求,防止重复发送请求 | 17 | isLoading: false, // 检测是否已经发送请求,防止重复发送请求 |
| 18 | noMore: false, // 检测是否有更多数据,true为没有更多数据,false为还有数据 | 18 | noMore: false, // 检测是否有更多数据,true为没有更多数据,false为还有数据 |
| @@ -72,22 +72,19 @@ Page({ | @@ -72,22 +72,19 @@ Page({ | ||
| 72 | }); | 72 | }); |
| 73 | }); | 73 | }); |
| 74 | 74 | ||
| 75 | - // this.data.is_timer=1; | ||
| 76 | - // this.data.ismore=1; | ||
| 77 | - // this.data.is_timer=1; | ||
| 78 | - // this.data.currentPage=1; | ||
| 79 | - var th=this; | ||
| 80 | - // th.setData({goodlist:null,}) | ||
| 81 | - // this.requestSalelist(); | ||
| 82 | - | ||
| 83 | - //设置全局定时器 | ||
| 84 | - th.data.timer = setInterval(function () { | ||
| 85 | - th.countDown(); | ||
| 86 | - },1000); | ||
| 87 | - | ||
| 88 | - | 75 | + this.data.is_timer=1; |
| 76 | + | ||
| 89 | }; | 77 | }; |
| 78 | + | ||
| 79 | + | ||
| 80 | + //设置全局定时器 | ||
| 81 | + this.data.timer = setInterval(function () { | ||
| 82 | + self.countDown(); | ||
| 83 | + },1000); | ||
| 84 | + | ||
| 85 | + | ||
| 90 | }; | 86 | }; |
| 87 | + | ||
| 91 | }, | 88 | }, |
| 92 | 89 | ||
| 93 | /** | 90 | /** |
| @@ -204,7 +201,7 @@ Page({ | @@ -204,7 +201,7 @@ Page({ | ||
| 204 | 201 | ||
| 205 | //----倒计时函数----- | 202 | //----倒计时函数----- |
| 206 | countDown() { | 203 | countDown() { |
| 207 | - // if(!this.data.is_timer) return false; | 204 | + if(!this.data.is_timer) return false; |
| 208 | var th=this; | 205 | var th=this; |
| 209 | // 获取当前时间,同时得到活动结束时间数组 | 206 | // 获取当前时间,同时得到活动结束时间数组 |
| 210 | let newTime = ut.gettimestamp(); | 207 | let newTime = ut.gettimestamp(); |
| @@ -251,7 +248,6 @@ Page({ | @@ -251,7 +248,6 @@ Page({ | ||
| 251 | 248 | ||
| 252 | goto(e) { | 249 | goto(e) { |
| 253 | let url = e.target.dataset.url; | 250 | let url = e.target.dataset.url; |
| 254 | - // console.log('999999',e); | ||
| 255 | app.goto(url); | 251 | app.goto(url); |
| 256 | }, | 252 | }, |
| 257 | 253 |
packageC/pages/group_list/group_list.wxss
| @@ -53,6 +53,6 @@ page { | @@ -53,6 +53,6 @@ page { | ||
| 53 | font-size: 24rpx; | 53 | font-size: 24rpx; |
| 54 | line-height: 2; | 54 | line-height: 2; |
| 55 | text-align: center; | 55 | text-align: center; |
| 56 | - margin-top: 10rpx; | 56 | + /* margin-top: 10rpx; */ |
| 57 | color: #ccc; | 57 | color: #ccc; |
| 58 | } | 58 | } |
| 59 | \ No newline at end of file | 59 | \ No newline at end of file |