Commit 8220b3b507184bfb917d6ec6b2d15a36519b30d8
1 parent
5e088250
自定义模板,在启用自定义图标的时候显示的bug优化
Showing
2 changed files
with
14 additions
and
4 deletions
components/diy_goodsGroup/diy_goodsGroup.wxml
... | ... | @@ -149,7 +149,7 @@ |
149 | 149 | <image class='zs_t_img_2l' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" |
150 | 150 | binderror="bind_bnerr3"></image> |
151 | 151 | <block wx:if="{{object.goodicon==3}}"> |
152 | - <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.position==1}}" | |
152 | + <image class='{{g_filter.get_class(object.column,object.position)}}' | |
153 | 153 | src='{{object.customicon}}'></image> |
154 | 154 | </block> |
155 | 155 | <block wx:if="{{object.goodicon==1}}"> |
... | ... | @@ -285,7 +285,7 @@ |
285 | 285 | <image class='zs_t_img_3l' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" |
286 | 286 | binderror="bind_bnerr3"></image> |
287 | 287 | <block wx:if="{{object.goodicon==3}}"> |
288 | - <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{ object.position==1}}" | |
288 | + <image class='{{g_filter.get_class(object.column,object.position)}}' | |
289 | 289 | src='{{object.customicon}}'></image> |
290 | 290 | </block> |
291 | 291 | <block wx:if="{{object.goodicon==1}}"> |
... | ... | @@ -422,7 +422,7 @@ |
422 | 422 | </block> |
423 | 423 | |
424 | 424 | <block wx:if="{{object.goodicon==3}}"> |
425 | - <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.position==2}}" | |
425 | + <image class='{{g_filter.get_class(object.column,object.position)}}' | |
426 | 426 | src='{{object.customicon}}'></image> |
427 | 427 | </block> |
428 | 428 | <block wx:if="{{object.goodicon==1}}"> | ... | ... |
components/diy_goodsGroup/diy_goodsGroup.wxss
... | ... | @@ -145,6 +145,7 @@ |
145 | 145 | height: 318rpx; |
146 | 146 | margin-top: 20rpx; |
147 | 147 | display: flex; |
148 | + position: relative; | |
148 | 149 | } |
149 | 150 | |
150 | 151 | .zs_t_img_x { |
... | ... | @@ -236,7 +237,7 @@ |
236 | 237 | height: 56rpx; |
237 | 238 | position: relative; |
238 | 239 | right: 56rpx; |
239 | - top: 234rpx; | |
240 | + top: 0rpx; | |
240 | 241 | } |
241 | 242 | |
242 | 243 | .zs_t1_x3 { |
... | ... | @@ -473,6 +474,13 @@ |
473 | 474 | left: 0rpx; |
474 | 475 | top: 10rpx; |
475 | 476 | } |
477 | +.zs_t1_x4{ | |
478 | + width: 56rpx; | |
479 | + height: 56rpx; | |
480 | + position: absolute; | |
481 | + right: 0rpx; | |
482 | + bottom: 10rpx; | |
483 | +} | |
476 | 484 | |
477 | 485 | .zs_t2_3l { |
478 | 486 | width: 56rpx; |
... | ... | @@ -562,3 +570,5 @@ |
562 | 570 | overflow: hidden; |
563 | 571 | white-space: nowrap; |
564 | 572 | } |
573 | + | |
574 | + | ... | ... |