Commit 14293798cd3b54f296ef96775c02687c14aeadd0
1 parent
eb3f66ef
分类修改
Showing
1 changed file
with
16 additions
and
13 deletions
pages/goods/categoryList/categoryList.wxml
@@ -96,8 +96,8 @@ | @@ -96,8 +96,8 @@ | ||
96 | <view class='f_item'> | 96 | <view class='f_item'> |
97 | <view class="pic_view" bindtap="goServiceCategoryList" data-cid="{{fitem.id}}" data-pid="0"> | 97 | <view class="pic_view" bindtap="goServiceCategoryList" data-cid="{{fitem.id}}" data-pid="0"> |
98 | 98 | ||
99 | - <image wx:if="{{fitem.showImgType==1}}" binderror="bind_bnerr2" class='fl_img' data-errorimg="catelist[{{index}}].items.image" src='{{fitem.showImg}}'></image> | ||
100 | - <image wx:else class='fl_img' binderror="bind_bnerr2" data-errorimg="catelist[{{index}}].items.image" src='{{iurl}}{{fitem.showImg}}'></image> | 99 | + <image wx:if="{{fitem.showImgType==1}}" binderror="bind_bnerr2" class='fl_img' data-errorimg="xmlist[{{index}}].showImg" src='{{fitem.showImg}}'></image> |
100 | + <image wx:else class='fl_img' binderror="bind_bnerr2" data-errorimg="xmlist[{{index}}].showImg" src='{{iurl}}{{fitem.showImg}}'></image> | ||
101 | 101 | ||
102 | <view class='over_view'></view> | 102 | <view class='over_view'></view> |
103 | <text class='f_item_over_t'>{{fitem.name}}</text></view> | 103 | <text class='f_item_over_t'>{{fitem.name}}</text></view> |
@@ -236,7 +236,7 @@ | @@ -236,7 +236,7 @@ | ||
236 | <view class="t-c"> | 236 | <view class="t-c"> |
237 | <image class="brand_img" src="{{user.logo}}" data-errorimg="groups[{{pidx}}].array[{{idx}}].logo" binderror="bind_bnerr_pp"></image> | 237 | <image class="brand_img" src="{{user.logo}}" data-errorimg="groups[{{pidx}}].array[{{idx}}].logo" binderror="bind_bnerr_pp"></image> |
238 | <view class="brand_img_name ellipsis-1 fs24">{{user.name}}</view> | 238 | <view class="brand_img_name ellipsis-1 fs24">{{user.name}}</view> |
239 | - </view> | 239 | + </view> |
240 | </view> | 240 | </view> |
241 | 241 | ||
242 | 242 | ||
@@ -255,7 +255,8 @@ | @@ -255,7 +255,8 @@ | ||
255 | <block wx:for="{{xmlist}}"> | 255 | <block wx:for="{{xmlist}}"> |
256 | <view class="brand_img_frame" bindtap="goServiceCategoryList" data-cid="{{item.id}}" > | 256 | <view class="brand_img_frame" bindtap="goServiceCategoryList" data-cid="{{item.id}}" > |
257 | <view class="t-c"> | 257 | <view class="t-c"> |
258 | - <image class="brand_img" src="{{item.ico}}" data-errorimg="xmlist[{{index}}].ico" binderror="bind_bnerr_pp" mode="heightFix"></image> | 258 | + <image wx:if="{{item.ico}}" class="brand_img" src="{{item.ico}}" mode="heightFix"></image> |
259 | + <image wx:else class="brand_img" src="{{iurl + '/miniapp/images/no_cate_def.png'}}" mode="heightFix"></image> | ||
259 | <view class="brand_img_name ellipsis-1 fs24">{{item.name}}</view> | 260 | <view class="brand_img_name ellipsis-1 fs24">{{item.name}}</view> |
260 | </view> | 261 | </view> |
261 | </view> | 262 | </view> |
@@ -280,7 +281,7 @@ | @@ -280,7 +281,7 @@ | ||
280 | <block wx:if="{{goodslist && goodslist.length>0}}"> | 281 | <block wx:if="{{goodslist && goodslist.length>0}}"> |
281 | <block wx:for="{{goodslist}}" wx:for-item="goods" wx:for-index="indx"> | 282 | <block wx:for="{{goodslist}}" wx:for-item="goods" wx:for-index="indx"> |
282 | <view class="type_img_frame t-c ib" data-cid="{{goods.items.id}}" data-pid="{{goods.items.parent_id}}" bindtap="go_cate"> | 283 | <view class="type_img_frame t-c ib" data-cid="{{goods.items.id}}" data-pid="{{goods.items.parent_id}}" bindtap="go_cate"> |
283 | - <image class=" type_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> | 284 | + <image class=" type_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> |
284 | <view class="brand_img_name fs24 ellipsis-1 pdh10">{{goods.items.name}}</view> | 285 | <view class="brand_img_name fs24 ellipsis-1 pdh10">{{goods.items.name}}</view> |
285 | </view> | 286 | </view> |
286 | </block> | 287 | </block> |
@@ -367,13 +368,13 @@ | @@ -367,13 +368,13 @@ | ||
367 | <view class="project_type" style="background-color:#f4f4f4;overflow-y:auto;position:fixed;left:0;z-index:99;top:108rpx;" id="thress_type3"> | 368 | <view class="project_type" style="background-color:#f4f4f4;overflow-y:auto;position:fixed;left:0;z-index:99;top:108rpx;" id="thress_type3"> |
368 | <view class="project_type-frame" style="margin-bottom:120rpx;"> | 369 | <view class="project_type-frame" style="margin-bottom:120rpx;"> |
369 | <view wx:if="{{is_show_gb}}"> | 370 | <view wx:if="{{is_show_gb}}"> |
370 | - <view bindtap="click_classify" class="tab-bar-item {{select_classify_on==223 ? 'active' : ''}}" data-index="223" data-name="国家" wx:if="{{is_country}}"> | 371 | + <view bindtap="click_classify" class="tab-bar-item {{select_classify_on==223 ? 'active' : ''}}" data-index="223" data-name="国家" wx:if="{{is_country}}" data-current="223"> |
371 | <text style="">国家</text> | 372 | <text style="">国家</text> |
372 | </view> | 373 | </view> |
373 | </view> | 374 | </view> |
374 | 375 | ||
375 | <view wx:if="{{is_show_pp}}"> | 376 | <view wx:if="{{is_show_pp}}"> |
376 | - <view bindtap="click_classify" class="tab-bar-item {{select_classify_on==220 ? 'active' : ''}}" wx:if="{{is_brand}}" data-index="220" data-name="品牌"> | 377 | + <view bindtap="click_classify" class="tab-bar-item {{select_classify_on==220 ? 'active' : ''}}" wx:if="{{is_brand}}" data-index="220" data-name="品牌" data-current="220"> |
377 | <text style="">品牌</text> | 378 | <text style="">品牌</text> |
378 | </view> | 379 | </view> |
379 | </view> | 380 | </view> |
@@ -381,7 +382,7 @@ | @@ -381,7 +382,7 @@ | ||
381 | 382 | ||
382 | <!-- 卡项 --> | 383 | <!-- 卡项 --> |
383 | <view wx:if="{{is_show_xm}}"> | 384 | <view wx:if="{{is_show_xm}}"> |
384 | - <view bindtap="click_classify" class="tab-bar-item {{select_classify_on == 221 ? 'active' : ''}}" data-index="221" data-name="项目"> | 385 | + <view bindtap="click_classify" class="tab-bar-item {{select_classify_on == 221 ? 'active' : ''}}" data-index="221" data-name="项目" data-current="221"> |
385 | <text>项目</text> | 386 | <text>项目</text> |
386 | </view> | 387 | </view> |
387 | </view> | 388 | </view> |
@@ -465,7 +466,7 @@ | @@ -465,7 +466,7 @@ | ||
465 | <view class="brand_img_frame "wx:for="{{brand_list.array}}" wx:for-item="user" wx:for-index="idx" bindtap="go_brand" data-bid="{{user.id}}" > | 466 | <view class="brand_img_frame "wx:for="{{brand_list.array}}" wx:for-item="user" wx:for-index="idx" bindtap="go_brand" data-bid="{{user.id}}" > |
466 | 467 | ||
467 | <view class="t-c"> | 468 | <view class="t-c"> |
468 | - <image class=" brand_img" src="{{user.logo}}" data-pix="{{pidx}}" data-idx="{{idx}}" data-errorimg="groups[{{pidx}}].array[{{idx}}].logo" binderror="bind_bnerr_pp"></image> | 469 | + <image class="brand_img" src="{{user.logo}}" data-pix="{{pidx}}" data-idx="{{idx}}" data-errorimg="groups[{{pidx}}].array[{{idx}}].logo" binderror="bind_bnerr_pp"></image> |
469 | <view class="brand_img_name ellipsis-1 fs24">{{user.name}}</view> | 470 | <view class="brand_img_name ellipsis-1 fs24">{{user.name}}</view> |
470 | </view> | 471 | </view> |
471 | </view> | 472 | </view> |
@@ -484,9 +485,10 @@ | @@ -484,9 +485,10 @@ | ||
484 | 485 | ||
485 | <view class="classify_content-frame flex flex-wrap" style="padding-bottom: 130rpx;"> | 486 | <view class="classify_content-frame flex flex-wrap" style="padding-bottom: 130rpx;"> |
486 | <block wx:for="{{xmlist}}"> | 487 | <block wx:for="{{xmlist}}"> |
487 | - <view class="brand_img_frame" bindtap="goServiceCategoryList" data-cid="{{item.id}}" > | 488 | + <view class="brand_img_frame" bindtap="goServiceCategoryList" data-cid="{{item.id}}"> |
488 | <view class="t-c"> | 489 | <view class="t-c"> |
489 | - <image class="brand_img" src="{{item.ico}}" data-errorimg="xmlist[{{index}}].ico" binderror="bind_bnerr_pp" mode="heightFix"></image> | 490 | + <image wx:if="{{item.ico}}" class="brand_img" src="{{item.ico}}" mode="heightFix"></image> |
491 | + <image wx:else class="brand_img" src="{{iurl + '/miniapp/images/no_cate_def.png'}}" mode="heightFix"></image> | ||
490 | <view class="brand_img_name ellipsis-1 fs24">{{item.name}}</view> | 492 | <view class="brand_img_name ellipsis-1 fs24">{{item.name}}</view> |
491 | </view> | 493 | </view> |
492 | </view> | 494 | </view> |
@@ -496,9 +498,10 @@ | @@ -496,9 +498,10 @@ | ||
496 | 498 | ||
497 | 499 | ||
498 | <!-- 品类--> | 500 | <!-- 品类--> |
499 | - <block wx:if="{{select_classify_on==0&&is_show_pl}}"> | 501 | + <!-- <block wx:if="{{select_classify_on==0&&is_show_pl}}"> --> |
502 | + <block wx:if="{{is_show_pl}}"> | ||
500 | <!-- <block wx:if="{{select_classify_on!=220&&select_classify_on!=223}}"> --> | 503 | <!-- <block wx:if="{{select_classify_on!=220&&select_classify_on!=223}}"> --> |
501 | - <block wx:if="{{select_classify_on == 0}}"> | 504 | + <block wx:if="{{select_classify_on!=220&&select_classify_on!=223&&select_classify_on!=221}}"> |
502 | <view style="width:100%;height:100%;position: relative;"> | 505 | <view style="width:100%;height:100%;position: relative;"> |
503 | <view class="classify_name fs28 flex ai-center flex-space-between" id="header" data-pid="0" data-cid="{{cat_id}}" bindtap='select_more' style="box-sizing:border-box;position:fixed;z-index: 999;width:74%;background-color:#ffffff;padding:0 20rpx;"> | 506 | <view class="classify_name fs28 flex ai-center flex-space-between" id="header" data-pid="0" data-cid="{{cat_id}}" bindtap='select_more' style="box-sizing:border-box;position:fixed;z-index: 999;width:74%;background-color:#ffffff;padding:0 20rpx;"> |
504 | <view class="classify_title ellipsis-1">{{classify_name}}</view> | 507 | <view class="classify_title ellipsis-1">{{classify_name}}</view> |