EP-WachatApp/eaterplanet_ecommerce/components/image/index.wxml

4 lines
389 B
Plaintext
Raw Normal View History

2023-03-24 11:24:28 +08:00
<view class="img-view" style="width:{{w}}px;height:{{h}}px;">
<image class='img-image' bindload="imageLoad" bindtap="preview" lazyLoad="{{isLazy}}" mode="aspectFill" src="{{img}}" style="width:{{w}}px;height:{{h}}px;border-radius:{{isCircle?'50%':''}};"></image>
<image class='img-image' hidden="{{isLoad}}" src="{{defaultImage}}" style="width:{{w}}px;height:{{h}}px;"></image>
</view>