Commit a607b625cd57f05808bc98fc77c0c4d00172cb18
1 parent
a0026826
商品分类修改
Showing
2 changed files
with
4 additions
and
4 deletions
pages/goods/categoryList/categoryList.js
@@ -295,8 +295,8 @@ Page({ | @@ -295,8 +295,8 @@ Page({ | ||
295 | go_cate:function(t){ | 295 | go_cate:function(t){ |
296 | var cid= t.currentTarget.dataset.cid; | 296 | var cid= t.currentTarget.dataset.cid; |
297 | var pid = t.currentTarget.dataset.pid; | 297 | var pid = t.currentTarget.dataset.pid; |
298 | - console.log("是这个吗", pid); | ||
299 | - var lurl = "/pages/goods/goodsList/goodsList?cat_id=" + cid + "&parent_id="+pid; | 298 | + console.log("是这个吗", pid); |
299 | + var lurl = "/pages/goods/goodsList/goodsList?cat_id=" + cid +"&pid="+pid; | ||
300 | wx.navigateTo({ url: lurl}); | 300 | wx.navigateTo({ url: lurl}); |
301 | }, | 301 | }, |
302 | 302 |
pages/goods/categoryList/categoryList.wxml
@@ -218,7 +218,7 @@ | @@ -218,7 +218,7 @@ | ||
218 | <block wx:for="{{goodslist}}"wx:for-item="goods"wx:for-index="indx"> | 218 | <block wx:for="{{goodslist}}"wx:for-item="goods"wx:for-index="indx"> |
219 | 219 | ||
220 | <view class="brand_img_frame t-c ib" data-cid="{{goods.items.id}}" data-pid="1" bindtap="go_cate"> | 220 | <view class="brand_img_frame t-c ib" data-cid="{{goods.items.id}}" data-pid="1" bindtap="go_cate"> |
221 | - <image class="brand_img"src="{{goods.items.image==null||goods.items.image==''?iurl+'/miniapp/images/no_cate_def.png':goods.items.image}}"binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image> | 221 | + <image class="brand_img"src="{{goods.items.icoimg==null||goods.items.icoimg==''?iurl+'/miniapp/images/no_cate_def.png':goods.items.icoimg}}"binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image> |
222 | <view class="brand_img_name fs24">{{goods.items.name}}</view> | 222 | <view class="brand_img_name fs24">{{goods.items.name}}</view> |
223 | </view> | 223 | </view> |
224 | 224 | ||
@@ -245,7 +245,7 @@ | @@ -245,7 +245,7 @@ | ||
245 | <block wx:if="{{goods.arrays.length>0}}"> | 245 | <block wx:if="{{goods.arrays.length>0}}"> |
246 | <view class="classify_content-frame flex-wrap"> | 246 | <view class="classify_content-frame flex-wrap"> |
247 | <view class="brand_img_frame t-c ib" data-cid="{{item.items.id}}" data-pid="2"wx:for="{{goods.arrays}}" wx:for-index="index" wx:for-item="item" bindtap="go_cate"> | 247 | <view class="brand_img_frame t-c ib" data-cid="{{item.items.id}}" data-pid="2"wx:for="{{goods.arrays}}" wx:for-index="index" wx:for-item="item" bindtap="go_cate"> |
248 | - <image class="brand_img"src="{{item.items.icoimg==null?iurl+'/miniapp/images/no_cate_def.png':item.items.icoimg}}"binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image> | 248 | + <image class="brand_img"src="{{item.icoimg==null||item.icoimg==''?iurl+'/miniapp/images/no_cate_def.png':item.icoimg}}"binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image> |
249 | <view class="brand_img_name fs24">{{item.name}}</view> | 249 | <view class="brand_img_name fs24">{{item.name}}</view> |
250 | </view> | 250 | </view> |
251 | </view> | 251 | </view> |