Commit c84d66983a5044dd69859937a33bfd63fda2b5fc

Authored by pengye
1 parent d3a4d12c

邀请函、商家有礼、商家详情券列表展示已领取、未领取,获取用户对应商家的券列表接口调整2

... ... @@ -1121,7 +1121,7 @@ Page({
}
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...
... ... @@ -1190,7 +1190,7 @@ Page({
}
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...
... ... @@ -1205,7 +1205,7 @@ Page({
}
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...
... ... @@ -1096,7 +1096,7 @@ Page({
}
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...
... ... @@ -1051,7 +1051,7 @@ Page({
}
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...
... ... @@ -1052,7 +1052,7 @@ Page({
}
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...
... ... @@ -1050,7 +1050,7 @@ Page({
}
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...
... ... @@ -1007,7 +1007,7 @@ Page({
}
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...
... ... @@ -1051,7 +1051,7 @@ Page({
}
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...
... ... @@ -1050,7 +1050,7 @@ Page({
}
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...
... ... @@ -1084,7 +1084,7 @@ Page({
}
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...
... ... @@ -285,7 +285,7 @@ Page({
let list = res.data;
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...
... ... @@ -413,7 +413,7 @@ Page({
}
list.forEach(item=>{
let idx = coupon_dataList.findIndex(b => b.id === item.id);
if (idx) {
if (idx!== null && idx!== undefined) {
coupon_dataList[idx].resultCoupon = '1';//显示已领取
}
})
... ...