Commit 00e95f171ac3fb7fc8606d27342e886504b578fe
1 parent
7ce4dd6c
我的小店,我的分类商品
Showing
2 changed files
with
6 additions
and
4 deletions
packageC/pages/goods/distributionCategoryList/index.js
@@ -143,9 +143,9 @@ Page({ | @@ -143,9 +143,9 @@ Page({ | ||
143 | that.setData({ store_config: e, is_do: 1 }); | 143 | that.setData({ store_config: e, is_do: 1 }); |
144 | 144 | ||
145 | //---有勾品类--- | 145 | //---有勾品类--- |
146 | - if (that.data.is_show_pl) { | ||
147 | - that.getGoodsCategoris(); | ||
148 | - } | 146 | + //if (that.data.is_show_pl) { |
147 | + // that.getGoodsCategoris(); | ||
148 | + //} | ||
149 | if (that.data.is_show_gb != 1 && that.data.is_show_pp != 1 && that.data.is_show_pl) { | 149 | if (that.data.is_show_gb != 1 && that.data.is_show_pp != 1 && that.data.is_show_pl) { |
150 | that.data.pl_timer = setInterval(function () { | 150 | that.data.pl_timer = setInterval(function () { |
151 | if (that.data.catelist.length > 0) { | 151 | if (that.data.catelist.length > 0) { |
@@ -521,6 +521,7 @@ Page({ | @@ -521,6 +521,7 @@ Page({ | ||
521 | let { currentData } = this.data; | 521 | let { currentData } = this.data; |
522 | currentData.cat_id = this.data.cat_id; | 522 | currentData.cat_id = this.data.cat_id; |
523 | currentData.page = this.data.stylePage; | 523 | currentData.page = this.data.stylePage; |
524 | + currentData.parent_id = 0; | ||
524 | 525 | ||
525 | let url = '/api/weshop/users/distribut/pagemyshop'; | 526 | let url = '/api/weshop/users/distribut/pagemyshop'; |
526 | getApp().promiseGet(url, { | 527 | getApp().promiseGet(url, { |
packageC/pages/goods/distributionCategoryList/index.wxml
@@ -33,7 +33,8 @@ | @@ -33,7 +33,8 @@ | ||
33 | </view> | 33 | </view> |
34 | <view wx:if="{{is_show_pl}}"> | 34 | <view wx:if="{{is_show_pl}}"> |
35 | <scroll-view scroll-y scroll-with-animation class="tab-view" scroll-top="{{scrollTop}}" style="height:88%"> | 35 | <scroll-view scroll-y scroll-with-animation class="tab-view" scroll-top="{{scrollTop}}" style="height:88%"> |
36 | - <view wx:for="{{catelist}}" class="tab-bar-item {{select_classify_on==index ? 'active' : ''}}" data-current="{{index}}" catchtap="click_classify" data-cid="{{item.id}}" data-index="{{index}}" data-name="{{item.name}}"> | 36 | + <view wx:for="{{catelist}}" wx:if="{{item}}" class="tab-bar-item {{select_classify_on==index ? 'active' : ''}}" |
37 | + data-current="{{index}}" catchtap="click_classify" data-cid="{{item.id}}" data-index="{{index}}" data-name="{{item.name}}"> | ||
37 | <text>{{item.name}}</text> | 38 | <text>{{item.name}}</text> |
38 | </view> | 39 | </view> |
39 | </scroll-view> | 40 | </scroll-view> |