Popup.wxml
1.04 KB
<view class="popup " hidden="{{!showPopup}}" catchtouchmove="noScroll">
<view class="popup-bg" bindtap="hidePopup"></view>
<view class="popup-content {{close?'close':''}}" style="height:{{height}}">
<block wx:if="{{title}}">
<view class="popup-title text-center">{{title}}</view>
</block>
<view class="popup-slot {{isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':''}}">
<slot></slot>
</view>
<view class="popup-footer isFullSucreen" wx:if="{{only}}">
<button class="cancel btn text-center" hover-class="btn-hover" bindtap="hidePopup">取消</button>
<button class="confirm btn text-center" bindtap="confirm" hover-class="btn-hover" style="background-color: {{confirmColor}};" loading="{{loading}}">{{confirmText}}</button>
</view>
<view class="popup-footer isFullSucreen" wx:else>
<button class="confirm doubtn text-center" bindtap="confirm" hover-class="btn-hover" style="background-color: {{confirmColor}};" loading="{{loading}}">{{confirmText}}</button>
</view>
</view>
</view>