Commit 8f9e8ae6eeeb29d695ab9a9aa3f7211e1fb9110e

Authored by season
1 parent 09c1c438

商品列表父级判断修改

pages/goods/goodsList/goodsList.js
... ... @@ -31,7 +31,7 @@ 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 36 }else{
37 37 url += "&parent_id="+t.pid;
... ...