-
Status changed to merged
-
mentioned in commit 29140ff698eca341133688f888ba3ef91e65fb1f
Showing
2 changed files
pages/goods/categoryList/categoryList.wxml
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | <text class='f_item_over_t'>{{fitem.items.name}}</text></view> | 33 | <text class='f_item_over_t'>{{fitem.items.name}}</text></view> |
34 | <view class='fenlei_text_v'> | 34 | <view class='fenlei_text_v'> |
35 | <view class='f_text' wx:for="{{fitem.array}}" wx:for-item="item" | 35 | <view class='f_text' wx:for="{{fitem.array}}" wx:for-item="item" |
36 | - bindtap="go_cate" data-cid="{{item.id}}" data-pid="{{fitem.items.id}}">{{item.name}}</view> | 36 | + bindtap="go_cate" data-cid="{{item.id}}" data-pid="1">{{item.name}}</view> |
37 | </view> | 37 | </view> |
38 | </view> | 38 | </view> |
39 | </block> | 39 | </block> |
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 |