Commit d95b073f637f17b73a6e149887ca4ab2551df566
Merge branch 'dev' into 'test'
Dev See merge request !88
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 | ... | ... |