Commit 420105c7c1ae8cd8926956e05e0e77d757f1c478
1 parent
1f274c78
~~plus卡要显示出来让会员买~~
Showing
1 changed file
with
4 additions
and
1 deletions
pages/user/index/index.js
| ... | ... | @@ -174,8 +174,11 @@ Page({ |
| 174 | 174 | if (item.is_sy == 0) { |
| 175 | 175 | var now = Date.parse(new Date()); now = now / 1000; |
| 176 | 176 | if (item.end_time < now) { |
| 177 | - th.setData({ is_no_plus: 0 }) | |
| 177 | + th.setData({ is_no_plus: 0 }) | |
| 178 | + }else{ | |
| 179 | + th.setData({ is_no_plus: 1 }) | |
| 178 | 180 | } |
| 181 | + | |
| 179 | 182 | }else if(item.is_sy == 1){ |
| 180 | 183 | th.setData({ is_no_plus: 1 }) |
| 181 | 184 | } | ... | ... |