Commit 276900b7e1cbe19fed3d56e92bb5dbba01df5bac

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

分类-项目-暂无项目显示

pages/goods/categoryList/categoryList.wxml
@@ -92,20 +92,25 @@ @@ -92,20 +92,25 @@
92 <swiper-item wx:if="{{is_show_xm}}"> 92 <swiper-item wx:if="{{is_show_xm}}">
93 <scroll-view scroll-y="true" class="fenlei-list" 93 <scroll-view scroll-y="true" class="fenlei-list"
94 scroll-with-animation="true" lower-threshold="1" bindscrolltolower="scrolltolower" style="height: {{abc}}rpx;" > 94 scroll-with-animation="true" lower-threshold="1" bindscrolltolower="scrolltolower" style="height: {{abc}}rpx;" >
95 - <block wx:for="{{xmlist}}" wx:for-item="fitem" >  
96 - <view class='f_item'>  
97 - <view class="pic_view" bindtap="goServiceCategoryList" data-cid="{{fitem.id}}" data-pid="0">  
98 -  
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 -  
102 - <view class='over_view'></view>  
103 - <text class='f_item_over_t'>{{fitem.name}}</text></view>  
104 - <view class='fenlei_text_v'>  
105 - <view class='f_text' wx:for="{{fitem.array}}" wx:for-item="item" bindtap="goServiceCategoryList" data-cid="{{item.id}}" data-pid="{{item.parent_id}}">{{item.name}}</view>  
106 - </view>  
107 - </view>  
108 - </block> 95 + <block wx:if="{{xmlist && xmlist.length != 0}}">
  96 + <block wx:for="{{xmlist}}" wx:for-item="fitem" >
  97 + <view class='f_item'>
  98 + <view class="pic_view" bindtap="goServiceCategoryList" data-cid="{{fitem.id}}" data-pid="0">
  99 +
  100 + <image wx:if="{{fitem.showImgType==1}}" binderror="bind_bnerr2" class='fl_img' data-errorimg="xmlist[{{index}}].showImg" src='{{fitem.showImg}}'></image>
  101 + <image wx:else class='fl_img' binderror="bind_bnerr2" data-errorimg="xmlist[{{index}}].showImg" src='{{iurl}}{{fitem.showImg}}'></image>
  102 +
  103 + <view class='over_view'></view>
  104 + <text class='f_item_over_t'>{{fitem.name}}</text></view>
  105 + <view class='fenlei_text_v'>
  106 + <view class='f_text' wx:for="{{fitem.array}}" wx:for-item="item" bindtap="goServiceCategoryList" data-cid="{{item.id}}" data-pid="{{item.parent_id}}">{{item.name}}</view>
  107 + </view>
  108 + </view>
  109 + </block>
  110 + </block>
  111 +
  112 +
  113 + <view wx:else class="t-c fs28 c-9 pdt50">暂无项目</view>
109 </scroll-view> 114 </scroll-view>
110 </swiper-item> 115 </swiper-item>
111 </swiper> 116 </swiper>
@@ -247,21 +252,25 @@ @@ -247,21 +252,25 @@
247 <!-- 卡项 --> 252 <!-- 卡项 -->
248 <!-- <block wx:if="{{select_classify_on==220&&is_show_xm}}"> --> 253 <!-- <block wx:if="{{select_classify_on==220&&is_show_xm}}"> -->
249 <block wx:if="{{select_classify_on==221&&is_show_xm}}"> 254 <block wx:if="{{select_classify_on==221&&is_show_xm}}">
250 - <view class="classify_name fs28 flex-space-between">  
251 - <view>{{classify_name}}</view>  
252 - </view>  
253 -  
254 - <view class="classify_content-frame flex flex-wrap" style="padding-bottom: 130rpx;">  
255 - <block wx:for="{{xmlist}}">  
256 - <view class="brand_img_frame" bindtap="goServiceCategoryList" data-cid="{{item.id}}" >  
257 - <view class="t-c">  
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>  
260 - <view class="brand_img_name ellipsis-1 fs24">{{item.name}}</view>  
261 - </view>  
262 - </view> 255 + <block wx:if="{{xmlist && xmlist.length != 0}}">
  256 + <view class="classify_name fs28 flex-space-between">
  257 + <view>{{classify_name}}</view>
  258 + </view>
  259 +
  260 + <view class="classify_content-frame flex flex-wrap" style="padding-bottom: 130rpx;">
  261 + <block wx:for="{{xmlist}}">
  262 + <view class="brand_img_frame" bindtap="goServiceCategoryList" data-cid="{{item.id}}" >
  263 + <view class="t-c">
  264 + <image wx:if="{{item.ico}}" class="brand_img" src="{{item.ico}}" mode="heightFix"></image>
  265 + <image wx:else class="brand_img" src="{{iurl + '/miniapp/images/no_cate_def.png'}}" mode="heightFix"></image>
  266 + <view class="brand_img_name ellipsis-1 fs24">{{item.name}}</view>
  267 + </view>
  268 + </view>
  269 + </block>
  270 + </view>
263 </block> 271 </block>
264 - </view> 272 +
  273 + <view wx:else class="t-c fs28 c-9 pdt50">暂无项目</view>
265 </block> 274 </block>
266 275
267 <!-- 品类--> 276 <!-- 品类-->
@@ -479,21 +488,26 @@ @@ -479,21 +488,26 @@
479 488
480 <!-- 卡项 --> 489 <!-- 卡项 -->
481 <block wx:if="{{select_classify_on==221&&is_show_xm}}"> 490 <block wx:if="{{select_classify_on==221&&is_show_xm}}">
482 - <view class="classify_name fs28 flex-space-between">  
483 - <view>{{classify_name}}</view>  
484 - </view>  
485 -  
486 - <view class="classify_content-frame flex flex-wrap" style="padding-bottom: 130rpx;">  
487 - <block wx:for="{{xmlist}}">  
488 - <view class="brand_img_frame" bindtap="goServiceCategoryList" data-cid="{{item.id}}">  
489 - <view class="t-c">  
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>  
492 - <view class="brand_img_name ellipsis-1 fs24">{{item.name}}</view> 491 + <block wx:if="{{xmlist && xmlist.length != 0}}">
  492 + <view class="classify_name fs28 flex-space-between">
  493 + <view>{{classify_name}}</view>
  494 + </view>
  495 +
  496 + <view class="classify_content-frame flex flex-wrap" style="padding-bottom: 130rpx;">
  497 + <block wx:for="{{xmlist}}">
  498 + <view class="brand_img_frame" bindtap="goServiceCategoryList" data-cid="{{item.id}}">
  499 + <view class="t-c">
  500 + <image wx:if="{{item.ico}}" class="brand_img" src="{{item.ico}}" mode="heightFix"></image>
  501 + <image wx:else class="brand_img" src="{{iurl + '/miniapp/images/no_cate_def.png'}}" mode="heightFix"></image>
  502 + <view class="brand_img_name ellipsis-1 fs24">{{item.name}}</view>
  503 + </view>
493 </view> 504 </view>
494 - </view>  
495 - </block>  
496 - </view> 505 + </block>
  506 + </view>
  507 + </block>
  508 +
  509 + <view wx:else class="t-c fs28 c-9 pdt50">暂无项目</view>
  510 +
497 </block> 511 </block>
498 512
499 513