Showing
1 changed file
with
5 additions
and
4 deletions
| @@ -60,7 +60,9 @@ Page({ | @@ -60,7 +60,9 @@ Page({ | ||
| 60 | sellerid: this.sid | 60 | sellerid: this.sid |
| 61 | }).then(res => { | 61 | }).then(res => { |
| 62 | if (res.ret == 200 && res.data && res.data.length > 0) { | 62 | if (res.ret == 200 && res.data && res.data.length > 0) { |
| 63 | - let list = res.data | 63 | + let list = res.data.filter(item => { |
| 64 | + return this.data.dataStr < (item.etime * 1) | ||
| 65 | + }) | ||
| 64 | // console.log('listlistlist',JSON.stringify(list)); | 66 | // console.log('listlistlist',JSON.stringify(list)); |
| 65 | // list= monidata | 67 | // list= monidata |
| 66 | list.forEach(detail => { | 68 | list.forEach(detail => { |
| @@ -294,9 +296,8 @@ Page({ | @@ -294,9 +296,8 @@ Page({ | ||
| 294 | } else { | 296 | } else { |
| 295 | endUseDate.setDate(couponDate.getDate() + parseInt(coupon.aexpiration)); | 297 | endUseDate.setDate(couponDate.getDate() + parseInt(coupon.aexpiration)); |
| 296 | } | 298 | } |
| 297 | - // 今天不是领取当日,但在有效天数内 && 今天是领取当日且可用 && 在有效天数内 && 券是开启状态 | ||
| 298 | - const isUseDate = (currentDate > startUseDate && currentDate < endUseDate) && | ||
| 299 | - (this.data.dataStr < (coupon.etime * 1) && coupon.is_open == '1') | 299 | + // 今天不是领取当日,但在有效天数内 && 今天是领取当日且可用 && 券是开启状态 |
| 300 | + const isUseDate = (currentDate > startUseDate && currentDate < endUseDate) && coupon.is_open == '1' | ||
| 300 | let obj = this.data.canSolt | 301 | let obj = this.data.canSolt |
| 301 | console.log('当前餐段、是不是法定节假日',{...obj}); | 302 | console.log('当前餐段、是不是法定节假日',{...obj}); |
| 302 | let selectedValue = true; | 303 | let selectedValue = true; |
-
Please register or login to post a comment