纸通宝商家版本的小程序,原生微信开发。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

16 lines
791 B

<wxs src="../wxs/utils.wxs" module="utils" />
<view style="{{ viewStyle }}" class="custom-class {{ utils.bem('image', { round })}}" bind:tap="onClick">
<image wx:if="{{ !error }}" src="{{ src }}" mode="{{ mode }}" lazy-load="{{ lazyLoad }}"
class="image-class van-image__img" show-menu-by-longpress="{{ showMenuByLongpress }}" bind:load="onLoad"
bind:error="onError" webp/>
<view wx:if="{{ loading && showLoading }}" class="loading-class van-image__loading">
<slot wx:if="{{ useLoadingSlot }}" name="loading" />
<van-icon wx:else name="photo-o" size="22" />
</view>
<view wx:if="{{ error && showError }}" class="error-class van-image__error">
<slot wx:if="{{ useErrorSlot }}" name="error" />
<van-icon wx:else name="warning-o" size="22" />
</view>
</view>