Commit ff6b62dd20c5e212a867be393fa76e3717b0cee9
Merge branch 'test' into 'qa'
Test See merge request !89
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 | ... | ... |