Qrbox.wxml
379 Bytes
<!-- components/Qrbox.wxml -->
<!-- <text>components/Qrbox.wxml</text> -->
<view class="qr-box">
<view wx:if="{{!imgSrc}}" class="loader box-center" />
<image
wx:else
class="qrImg"
webp="{{true}}"
bindtap="previewImage"
binderror="imageError"
bindload="imageLoad"
data-url="{{imgSrc}}"
src="{{imgSrc}}"
/>
</view>