Showing
2 changed files
with
14 additions
and
4 deletions
| @@ -38,9 +38,14 @@ Page({ | @@ -38,9 +38,14 @@ Page({ | ||
| 38 | getList() { | 38 | getList() { |
| 39 | App.Activity.GetNewRechargeList({ | 39 | App.Activity.GetNewRechargeList({ |
| 40 | sellerid: this.data.sellerid, | 40 | sellerid: this.data.sellerid, |
| 41 | - is_expire: '0' | ||
| 42 | }).then(res => { | 41 | }).then(res => { |
| 43 | - let list = res.data; | 42 | + let arr=[] |
| 43 | + res.data.forEach(i=>{ | ||
| 44 | + if(i.status!='1'){ | ||
| 45 | + arr.push(i) | ||
| 46 | + } | ||
| 47 | + }) | ||
| 48 | + let list = arr; | ||
| 44 | list.forEach((item,index) => { | 49 | list.forEach((item,index) => { |
| 45 | if(item.is_open=='0'){ | 50 | if(item.is_open=='0'){ |
| 46 | list.splice(index,1) | 51 | list.splice(index,1) |
| @@ -472,9 +472,14 @@ Page({ | @@ -472,9 +472,14 @@ Page({ | ||
| 472 | getNewRechargeListfFun(probablyPrice) { | 472 | getNewRechargeListfFun(probablyPrice) { |
| 473 | App.Activity.GetNewRechargeList({ | 473 | App.Activity.GetNewRechargeList({ |
| 474 | sellerid: this.data.options.sid, | 474 | sellerid: this.data.options.sid, |
| 475 | - is_expire: '0' | ||
| 476 | }).then(res => { | 475 | }).then(res => { |
| 477 | - let list = res.data; | 476 | + let arr=[] |
| 477 | + res.data.forEach(i=>{ | ||
| 478 | + if(i.status!='1'){ | ||
| 479 | + arr.push(i) | ||
| 480 | + } | ||
| 481 | + }) | ||
| 482 | + let list = arr; | ||
| 478 | list.forEach((item,index) => { | 483 | list.forEach((item,index) => { |
| 479 | if(item.is_open=='0'){ | 484 | if(item.is_open=='0'){ |
| 480 | list.splice(index,1) | 485 | list.splice(index,1) |
-
Please register or login to post a comment