|
...
|
...
|
@@ -955,6 +955,19 @@ Page({ |
|
|
|
detail.receiveNumText = Math.floor(num / 100) * 100 + '+';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(num == 0){
|
|
|
|
let str = detail.grant_num*1
|
|
|
|
detail.receiveNumText = ''
|
|
|
|
if (str >= 0 && str <= 100) {
|
|
|
|
detail.receiveNumText = str.toString();
|
|
|
|
} else if (str >= 101 && str <= 199) {
|
|
|
|
detail.receiveNumText = '100+';
|
|
|
|
} else if (str >= 200 && str <= 299) {
|
|
|
|
detail.receiveNumText = '200+';
|
|
|
|
} else {
|
|
|
|
detail.receiveNumText = Math.floor(str / 100) * 100 + '+';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (detail.exp_date && detail.exp_date.week_data) {
|
|
|
|
let noon = this.hasConsecutiveSelect(detail.exp_date.week_data, '1').rArr.join('、')
|
|
|
|
let nig = this.hasConsecutiveSelect(detail.exp_date.week_data, '2').rArr.join('、')
|
|
...
|
...
|
@@ -1015,6 +1028,19 @@ Page({ |
|
|
|
detail.receiveNumText = Math.floor(num / 100) * 100 + '+';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(num == 0){
|
|
|
|
let str = detail.grant_num*1
|
|
|
|
detail.receiveNumText = ''
|
|
|
|
if (str >= 0 && str <= 100) {
|
|
|
|
detail.receiveNumText = str.toString();
|
|
|
|
} else if (str >= 101 && str <= 199) {
|
|
|
|
detail.receiveNumText = '100+';
|
|
|
|
} else if (str >= 200 && str <= 299) {
|
|
|
|
detail.receiveNumText = '200+';
|
|
|
|
} else {
|
|
|
|
detail.receiveNumText = Math.floor(str / 100) * 100 + '+';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (detail.exp_date && detail.exp_date.week_data) {
|
|
|
|
let noon = this.hasConsecutiveSelect(detail.exp_date.week_data, '1').rArr.join('、')
|
|
|
|
let nig = this.hasConsecutiveSelect(detail.exp_date.week_data, '2').rArr.join('、')
|
|
...
|
...
|
@@ -1108,10 +1134,10 @@ Page({ |
|
|
|
if (match) {
|
|
|
|
item.number = match.number;
|
|
|
|
}
|
|
|
|
item.grant_num = item.grant_num*1
|
|
|
|
if(item.grant_num < 0 || item.grant_num == 0) couponArr.splice(index,1)
|
|
|
|
if(item.number>item.grant_num){
|
|
|
|
item.number = item.grant_num
|
|
|
|
item.grant_last = item.grant_last*1*1
|
|
|
|
if(item.grant_last < 0 || item.grant_last == 0) couponArr.splice(index,1)
|
|
|
|
if(item.number>item.grant_last){
|
|
|
|
item.number = item.grant_last
|
|
|
|
}
|
|
|
|
});
|
|
|
|
if(couponArr.length>0){
|
...
|
...
|
|