Commit 09c1c4389b73221534e5c475822882e37f208e29
1 parent
3005798e
商品列表,2级3级的时候
Showing
1 changed file
with
3 additions
and
1 deletions
pages/goods/goodsList/goodsList.js
| ... | ... | @@ -31,8 +31,10 @@ Page({ |
| 31 | 31 | |
| 32 | 32 | if (0 != t.cat_id && t.cat_id != undefined) { |
| 33 | 33 | url += "&cat_id=" + t.cat_id; |
| 34 | - if (t.pid != undefined && t.pid != null){ | |
| 34 | + if (t.pid == undefined && t.pid == null){ | |
| 35 | 35 | url += "&parent_id=0"; |
| 36 | + }else{ | |
| 37 | + url += "&parent_id="+t.pid; | |
| 36 | 38 | } |
| 37 | 39 | } |
| 38 | 40 | ... | ... |