Commit c84d66983a5044dd69859937a33bfd63fda2b5fc

Authored by pengye
1 parent d3a4d12c

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

@@ -1121,7 +1121,7 @@ Page({ @@ -1121,7 +1121,7 @@ Page({
1121 } 1121 }
1122 list.forEach(item=>{ 1122 list.forEach(item=>{
1123 let idx = coupon_dataList.findIndex(b => b.id === item.id); 1123 let idx = coupon_dataList.findIndex(b => b.id === item.id);
1124 - if (idx) { 1124 + if (idx!== null && idx!== undefined) {
1125 coupon_dataList[idx].resultCoupon = '1';//显示已领取 1125 coupon_dataList[idx].resultCoupon = '1';//显示已领取
1126 } 1126 }
1127 }) 1127 })
@@ -1190,7 +1190,7 @@ Page({ @@ -1190,7 +1190,7 @@ Page({
1190 } 1190 }
1191 list.forEach(item=>{ 1191 list.forEach(item=>{
1192 let idx = coupon_dataList.findIndex(b => b.id === item.id); 1192 let idx = coupon_dataList.findIndex(b => b.id === item.id);
1193 - if (idx) { 1193 + if (idx!== null && idx!== undefined) {
1194 coupon_dataList[idx].resultCoupon = '1';//显示已领取 1194 coupon_dataList[idx].resultCoupon = '1';//显示已领取
1195 } 1195 }
1196 }) 1196 })
@@ -1205,7 +1205,7 @@ Page({ @@ -1205,7 +1205,7 @@ Page({
1205 } 1205 }
1206 list.forEach(item=>{ 1206 list.forEach(item=>{
1207 let idx = coupon_dataList.findIndex(b => b.id === item.id); 1207 let idx = coupon_dataList.findIndex(b => b.id === item.id);
1208 - if (idx) { 1208 + if (idx!== null && idx!== undefined) {
1209 coupon_dataList[idx].resultCoupon = '1';//显示已领取 1209 coupon_dataList[idx].resultCoupon = '1';//显示已领取
1210 } 1210 }
1211 }) 1211 })
@@ -1096,7 +1096,7 @@ Page({ @@ -1096,7 +1096,7 @@ Page({
1096 } 1096 }
1097 list.forEach(item=>{ 1097 list.forEach(item=>{
1098 let idx = coupon_dataList.findIndex(b => b.id === item.id); 1098 let idx = coupon_dataList.findIndex(b => b.id === item.id);
1099 - if (idx) { 1099 + if (idx!== null && idx!== undefined) {
1100 coupon_dataList[idx].resultCoupon = '1';//显示已领取 1100 coupon_dataList[idx].resultCoupon = '1';//显示已领取
1101 } 1101 }
1102 }) 1102 })
@@ -1051,7 +1051,7 @@ Page({ @@ -1051,7 +1051,7 @@ Page({
1051 } 1051 }
1052 list.forEach(item=>{ 1052 list.forEach(item=>{
1053 let idx = coupon_dataList.findIndex(b => b.id === item.id); 1053 let idx = coupon_dataList.findIndex(b => b.id === item.id);
1054 - if (idx) { 1054 + if (idx!== null && idx!== undefined) {
1055 coupon_dataList[idx].resultCoupon = '1';//显示已领取 1055 coupon_dataList[idx].resultCoupon = '1';//显示已领取
1056 } 1056 }
1057 }) 1057 })
@@ -1052,7 +1052,7 @@ Page({ @@ -1052,7 +1052,7 @@ Page({
1052 } 1052 }
1053 list.forEach(item=>{ 1053 list.forEach(item=>{
1054 let idx = coupon_dataList.findIndex(b => b.id === item.id); 1054 let idx = coupon_dataList.findIndex(b => b.id === item.id);
1055 - if (idx) { 1055 + if (idx!== null && idx!== undefined) {
1056 coupon_dataList[idx].resultCoupon = '1';//显示已领取 1056 coupon_dataList[idx].resultCoupon = '1';//显示已领取
1057 } 1057 }
1058 }) 1058 })
@@ -1050,7 +1050,7 @@ Page({ @@ -1050,7 +1050,7 @@ Page({
1050 } 1050 }
1051 list.forEach(item=>{ 1051 list.forEach(item=>{
1052 let idx = coupon_dataList.findIndex(b => b.id === item.id); 1052 let idx = coupon_dataList.findIndex(b => b.id === item.id);
1053 - if (idx) { 1053 + if (idx!== null && idx!== undefined) {
1054 coupon_dataList[idx].resultCoupon = '1';//显示已领取 1054 coupon_dataList[idx].resultCoupon = '1';//显示已领取
1055 } 1055 }
1056 }) 1056 })
@@ -1007,7 +1007,7 @@ Page({ @@ -1007,7 +1007,7 @@ Page({
1007 } 1007 }
1008 list.forEach(item=>{ 1008 list.forEach(item=>{
1009 let idx = coupon_dataList.findIndex(b => b.id === item.id); 1009 let idx = coupon_dataList.findIndex(b => b.id === item.id);
1010 - if (idx) { 1010 + if (idx!== null && idx!== undefined) {
1011 coupon_dataList[idx].resultCoupon = '1';//显示已领取 1011 coupon_dataList[idx].resultCoupon = '1';//显示已领取
1012 } 1012 }
1013 }) 1013 })
@@ -1051,7 +1051,7 @@ Page({ @@ -1051,7 +1051,7 @@ Page({
1051 } 1051 }
1052 list.forEach(item=>{ 1052 list.forEach(item=>{
1053 let idx = coupon_dataList.findIndex(b => b.id === item.id); 1053 let idx = coupon_dataList.findIndex(b => b.id === item.id);
1054 - if (idx) { 1054 + if (idx!== null && idx!== undefined) {
1055 coupon_dataList[idx].resultCoupon = '1';//显示已领取 1055 coupon_dataList[idx].resultCoupon = '1';//显示已领取
1056 } 1056 }
1057 }) 1057 })
@@ -1050,7 +1050,7 @@ Page({ @@ -1050,7 +1050,7 @@ Page({
1050 } 1050 }
1051 list.forEach(item=>{ 1051 list.forEach(item=>{
1052 let idx = coupon_dataList.findIndex(b => b.id === item.id); 1052 let idx = coupon_dataList.findIndex(b => b.id === item.id);
1053 - if (idx) { 1053 + if (idx!== null && idx!== undefined) {
1054 coupon_dataList[idx].resultCoupon = '1';//显示已领取 1054 coupon_dataList[idx].resultCoupon = '1';//显示已领取
1055 } 1055 }
1056 }) 1056 })
@@ -1084,7 +1084,7 @@ Page({ @@ -1084,7 +1084,7 @@ Page({
1084 } 1084 }
1085 list.forEach(item=>{ 1085 list.forEach(item=>{
1086 let idx = coupon_dataList.findIndex(b => b.id === item.id); 1086 let idx = coupon_dataList.findIndex(b => b.id === item.id);
1087 - if (idx) { 1087 + if (idx!== null && idx!== undefined) {
1088 coupon_dataList[idx].resultCoupon = '1';//显示已领取 1088 coupon_dataList[idx].resultCoupon = '1';//显示已领取
1089 } 1089 }
1090 }) 1090 })
@@ -285,7 +285,7 @@ Page({ @@ -285,7 +285,7 @@ Page({
285 let list = res.data; 285 let list = res.data;
286 list.forEach(item=>{ 286 list.forEach(item=>{
287 let idx = coupon_dataList.findIndex(b => b.id === item.id); 287 let idx = coupon_dataList.findIndex(b => b.id === item.id);
288 - if (idx) { 288 + if (idx!== null && idx!== undefined) {
289 coupon_dataList[idx].resultCoupon = '1';//显示已领取 289 coupon_dataList[idx].resultCoupon = '1';//显示已领取
290 } 290 }
291 }) 291 })
@@ -413,7 +413,7 @@ Page({ @@ -413,7 +413,7 @@ Page({
413 } 413 }
414 list.forEach(item=>{ 414 list.forEach(item=>{
415 let idx = coupon_dataList.findIndex(b => b.id === item.id); 415 let idx = coupon_dataList.findIndex(b => b.id === item.id);
416 - if (idx) { 416 + if (idx!== null && idx!== undefined) {
417 coupon_dataList[idx].resultCoupon = '1';//显示已领取 417 coupon_dataList[idx].resultCoupon = '1';//显示已领取
418 } 418 }
419 }) 419 })