Commit fc5a1f8556eac55cda4939b7c4b25e09299fb234
1 parent
0ea0d5ed
不要用undefine
Showing
1 changed file
with
2 additions
and
3 deletions
pages/index/index/index.wxml
... | ... | @@ -113,13 +113,12 @@ |
113 | 113 | </view> |
114 | 114 | |
115 | 115 | |
116 | - | |
117 | 116 | |
118 | - <!---大分类---> | |
117 | + <!-- 大分类 --> | |
119 | 118 | <view class="flex-center-around"> |
120 | 119 | <view wx:for="{{gd_category}}" bindtap="go_cate2" data-cid="{{item.id}}" data-pid="0"> |
121 | 120 | <view class="circle xc-class-frame t-c"> |
122 | - <image class="xc-class-img" src="{{item.icoimg==null||item.icoimg==''?url+item.icon:item.icoimg}}" binderror="bind_bnerr_icon" data-err="gd_category[{{index}}].icon"></image> | |
121 | + <image class="xc-class-img" src="{{item.icoimg==null||item.icoimg==''?(item.icon?url+item.icon:''):item.icoimg}}" binderror="bind_bnerr_icon" data-err="gd_category[{{index}}].icon"></image> | |
123 | 122 | <view class="fs24 gonju ellipsis-1">{{item.name}}</view> |
124 | 123 | </view> |
125 | 124 | </view> | ... | ... |