Commit 00e95f171ac3fb7fc8606d27342e886504b578fe

Authored by yvan.ni
1 parent 7ce4dd6c

我的小店,我的分类商品

packageC/pages/goods/distributionCategoryList/index.js
... ... @@ -143,9 +143,9 @@ Page({
143 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 149 if (that.data.is_show_gb != 1 && that.data.is_show_pp != 1 && that.data.is_show_pl) {
150 150 that.data.pl_timer = setInterval(function () {
151 151 if (that.data.catelist.length > 0) {
... ... @@ -521,6 +521,7 @@ Page({
521 521 let { currentData } = this.data;
522 522 currentData.cat_id = this.data.cat_id;
523 523 currentData.page = this.data.stylePage;
  524 + currentData.parent_id = 0;
524 525  
525 526 let url = '/api/weshop/users/distribut/pagemyshop';
526 527 getApp().promiseGet(url, {
... ...
packageC/pages/goods/distributionCategoryList/index.wxml
... ... @@ -33,7 +33,8 @@
33 33 </view>
34 34 <view wx:if="{{is_show_pl}}">
35 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 38 <text>{{item.name}}</text>
38 39 </view>
39 40 </scroll-view>
... ...