confirm.wxml 938 Bytes
<!--components/showModal/showModal.wxml-->
<view class="cu-modal bottom-modal {{cla}} {{hasShow?'show':''}}" bindtap="hide">
    <view class="cu-dialog confirm bg-white" catchtap="catchtap">
        <view class="view padding-lg confirm-header">
            {{opt.header}}
        </view>
        <view class="view margin-bottom-xl confirm-body">
            {{opt.body}}
        </view>
        <view class="flex justify-center margin-bottom-lg margin-top">
            <button class="view cu-btn margin-right-xl round bg-ghostWhite" wx:if="{{opt.cancelText}}"
                    bindtap="tapButton" data-type="cancel"
                    style="color:{{opt.cancelColor}};">{{opt.cancelText}}</button>
            <button class="view cu-btn round bg-blue"
                    bindtap="tapButton" data-type="confirm"
                    style="color:{{opt.confirmColor}};">{{opt.confirmText}}</button>
        </view>
    </view>
</view>