Commit 14293798cd3b54f296ef96775c02687c14aeadd0

Authored by 后端研发-苏泰源
1 parent eb3f66ef

分类修改

pages/goods/categoryList/categoryList.wxml
... ... @@ -96,8 +96,8 @@
96 96 <view class='f_item'>
97 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 102 <view class='over_view'></view>
103 103 <text class='f_item_over_t'>{{fitem.name}}</text></view>
... ... @@ -236,7 +236,7 @@
236 236 <view class="t-c">
237 237 <image class="brand_img" src="{{user.logo}}" data-errorimg="groups[{{pidx}}].array[{{idx}}].logo" binderror="bind_bnerr_pp"></image>
238 238 <view class="brand_img_name ellipsis-1 fs24">{{user.name}}</view>
239   - </view>
  239 + </view>
240 240 </view>
241 241  
242 242  
... ... @@ -255,7 +255,8 @@
255 255 <block wx:for="{{xmlist}}">
256 256 <view class="brand_img_frame" bindtap="goServiceCategoryList" data-cid="{{item.id}}" >
257 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 260 <view class="brand_img_name ellipsis-1 fs24">{{item.name}}</view>
260 261 </view>
261 262 </view>
... ... @@ -280,7 +281,7 @@
280 281 <block wx:if="{{goodslist && goodslist.length>0}}">
281 282 <block wx:for="{{goodslist}}" wx:for-item="goods" wx:for-index="indx">
282 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 285 <view class="brand_img_name fs24 ellipsis-1 pdh10">{{goods.items.name}}</view>
285 286 </view>
286 287 </block>
... ... @@ -367,13 +368,13 @@
367 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 369 <view class="project_type-frame" style="margin-bottom:120rpx;">
369 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 372 <text style="">国家</text>
372 373 </view>
373 374 </view>
374 375  
375 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 378 <text style="">品牌</text>
378 379 </view>
379 380 </view>
... ... @@ -381,7 +382,7 @@
381 382  
382 383 <!-- 卡项 -->
383 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 386 <text>项目</text>
386 387 </view>
387 388 </view>
... ... @@ -465,7 +466,7 @@
465 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 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 470 <view class="brand_img_name ellipsis-1 fs24">{{user.name}}</view>
470 471 </view>
471 472 </view>
... ... @@ -484,9 +485,10 @@
484 485  
485 486 <view class="classify_content-frame flex flex-wrap" style="padding-bottom: 130rpx;">
486 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 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 492 <view class="brand_img_name ellipsis-1 fs24">{{item.name}}</view>
491 493 </view>
492 494 </view>
... ... @@ -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 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 505 <view style="width:100%;height:100%;position: relative;">
503 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 507 <view class="classify_title ellipsis-1">{{classify_name}}</view>
... ...