Commit 10c4c215bcfde315da034b45ed288780ab9ffac6

Authored by pengye
1 parent 1b6629e3

优惠券扫码购买页不显示已过期的券

... ... @@ -60,7 +60,9 @@ Page({
sellerid: this.sid
}).then(res => {
if (res.ret == 200 && res.data && res.data.length > 0) {
let list = res.data
let list = res.data.filter(item => {
return this.data.dataStr < (item.etime * 1)
})
// console.log('listlistlist',JSON.stringify(list));
// list= monidata
list.forEach(detail => {
... ... @@ -294,9 +296,8 @@ Page({
} else {
endUseDate.setDate(couponDate.getDate() + parseInt(coupon.aexpiration));
}
// 今天不是领取当日,但在有效天数内 && 今天是领取当日且可用 && 在有效天数内 && 券是开启状态
const isUseDate = (currentDate > startUseDate && currentDate < endUseDate) &&
(this.data.dataStr < (coupon.etime * 1) && coupon.is_open == '1')
// 今天不是领取当日,但在有效天数内 && 今天是领取当日且可用 && 券是开启状态
const isUseDate = (currentDate > startUseDate && currentDate < endUseDate) && coupon.is_open == '1'
let obj = this.data.canSolt
console.log('当前餐段、是不是法定节假日',{...obj});
let selectedValue = true;
... ...