Popup.wxml 949 Bytes
<view class="popup "   hidden="{{!showPopup}}">
  <view class="popup-bg" bindtap="hidePopup"></view>
  <view class="popup-content {{close?'close':''}}" style="height:{{height}};background:{{bodyColor}}">
    <block wx:if="{{title}}">
      <view class="popup-title text-center" style="background:{{headerColor}}">{{title}}
        <view class="popup-close" wx:if="{{showCloseButton}}" bindtap="hidePopup">
        <mp-icon icon="close2" color="#B1B1B3" size="20"></mp-icon>
      </view>
      </view>
    </block>
    <view class="popup-slot {{title?'':'notitle' }}">
      <slot></slot>
    </view>
    <view class="popup-footer isFullSucreen {{!showConfirm?'cancel-only':''}}" wx:if="{{showFooter}}">
      <view class="cancel btn text-center" wx:if="{{only}}" bindtap="hidePopup">取消</view>
      <view class="confirm {{only?'btn':'doubtn'}} text-center"  wx:if="{{showConfirm}}"  bindtap="confirm">确定</view>
    </view>
  </view>
</view>