Commit d95b073f637f17b73a6e149887ca4ab2551df566

Authored by 后端研发-苏明海
2 parents 9581b348 8f9e8ae6

Merge branch 'dev' into 'test'

Dev

See merge request !88
pages/goods/goodsList/goodsList.js
@@ -31,8 +31,10 @@ Page({ @@ -31,8 +31,10 @@ Page({
31 31
32 if (0 != t.cat_id && t.cat_id != undefined) { 32 if (0 != t.cat_id && t.cat_id != undefined) {
33 url += "&cat_id=" + t.cat_id; 33 url += "&cat_id=" + t.cat_id;
34 - if (t.pid != undefined && t.pid != null){ 34 + if (t.pid == undefined || t.pid == null){
35 url += "&parent_id=0"; 35 url += "&parent_id=0";
  36 + }else{
  37 + url += "&parent_id="+t.pid;
36 } 38 }
37 } 39 }
38 40