Commit 9b40aa94b5bd132f5df24e2d3759d40c11281a4c
1 parent
36c2c4e1
优惠券的数量显示问题
Showing
2 changed files
with
2 additions
and
3 deletions
pages/user/coupons/coupons.js
| ... | ... | @@ -195,7 +195,7 @@ Page({ |
| 195 | 195 | b_isuse_arr.push(b_arr[i]); |
| 196 | 196 | } |
| 197 | 197 | } |
| 198 | - data.cashcount= data.cashcount+b_arr.length; //加上包邮券的数量 | |
| 198 | + data.cashcount= data.cashcount+b_can_arr.length; //加上包邮券的数量 | |
| 199 | 199 | th.data.b_can_arr=b_can_arr; //可使用 |
| 200 | 200 | th.data.b_out_arr=b_out_arr; //过期 |
| 201 | 201 | th.data.b_isuse_arr=b_isuse_arr; //已使用 | ... | ... |
pages/user/index/index.js
| ... | ... | @@ -102,7 +102,7 @@ Page({ |
| 102 | 102 | |
| 103 | 103 | /*-----获取会员包邮券的数量-----*/ |
| 104 | 104 | rq.get("/api/weshop/userfeemail/page", { |
| 105 | - data: { user_id: e.user_id, store_id: os.stoid, pageSize:1}, | |
| 105 | + data: { user_id: e.user_id, store_id: os.stoid, pageSize:1,isuse:0}, | |
| 106 | 106 | success: function (su) { |
| 107 | 107 | if (su.data.code == 0) { |
| 108 | 108 | th.setData({ byquan: parseInt(su.data.data.total)}); |
| ... | ... | @@ -505,7 +505,6 @@ Page({ |
| 505 | 505 | |
| 506 | 506 | // } |
| 507 | 507 | // }) |
| 508 | - | |
| 509 | 508 | } |
| 510 | 509 | |
| 511 | 510 | ... | ... |