index.wxml
732 Bytes
<view class="result-dialog {{show ? 'show' : ''}}" catchtouchmove="noop" wx:if="{{show}}" bindtap="onMaskTap">
<view class="dialog-card" animation="{{cardAnimation}}" catchtap="noop">
<view class="icon-wrap">
<image class="icon" src="{{type==='success' ? (IMG_URL + 'customer/success-icon.png') : (IMG_URL + 'customer/error-icon.png')}}" mode="aspectFit" />
</view>
<view class="content">
<slot wx:if="{{useSlot}}"></slot>
<block wx:else>
<view class="title">{{title}}</view>
<view wx:if="{{description}}" class="desc">{{description}}</view>
</block>
</view>
<view class="footer">
<view class="ok-btn" bindtap="onOk">{{okText}}</view>
</view>
</view>
</view>