Commit bd687a646cdc35eb1e77d135fcb704116a7facbb
1 parent
e2efb91b
bug优化
Showing
1 changed file
with
10 additions
and
1 deletions
pages/user/index/index.js
| @@ -199,7 +199,16 @@ Page({ | @@ -199,7 +199,16 @@ Page({ | ||
| 199 | 199 | ||
| 200 | if (e != undefined && e != null && e.mobile) { | 200 | if (e != undefined && e != null && e.mobile) { |
| 201 | 201 | ||
| 202 | - this.puls_user(); | 202 | + |
| 203 | + if (e.card_field != '' && e.card_field != null && e.card_field != undefined && e.card_expiredate) { | ||
| 204 | + var now = ut.gettimestamp(); | ||
| 205 | + var str = e.card_expiredate.replace(/-/g, '/');; | ||
| 206 | + var end = new Date(str); | ||
| 207 | + end = Date.parse(end) / 1000; | ||
| 208 | + if (now < end) { | ||
| 209 | + this.puls_user(); | ||
| 210 | + } | ||
| 211 | + } | ||
| 203 | 212 | ||
| 204 | 213 | ||
| 205 | 214 |