Popup.wxml 1.25 KB
<view class="popup" hidden="{{ !showPopup }}" catchtouchmove="noScroll">
  <view class="popup-bg" bindtap="hidePopup"></view>
  <view class="popup-content" style="height:{{ height }}">
    <block wx:if="{{ title }}">
      <view class="popup-title text-center {{ showTitleClose ? 'popup-title--closable' : '' }}">
        {{ title }}
        <view wx:if="{{ showTitleClose }}" class="close" bindtap="hidePopup">
          <image src="{{ closeIconUrl }}" class="close-image" mode="aspectFit" />
        </view>
      </view>
    </block>
    <view class="{{ slotClass }} popup-slot-class {{ isFullSucreen ? title ? 'isFullSucreen' : 'isFullSucreen-notitle' : '' }}" style="{{ slotStyle }}">
      <slot></slot>
    </view>
    <block wx:if="{{ showTipsArea }}">
      <view class="tips text-center">{{ tips }}</view>
    </block>
    <view wx:if="{{ showFooter }}" class="popup-footer {{ footerLayoutClass }} {{ isFullSucreen ? 'isFullSucreen' : '' }}">
      <view wx:if="{{ !singleButton }}" class="cancel btn text-center" style="{{ cancelStyle }}" bind:tap="hidePopup">{{ cancelText }}</view>
      <view class="confirm btn text-center {{ singleButton ? 'confirm--full' : '' }}" style="{{ confirmStyle }}" bind:tap="confirm">{{ confirmText }}</view>
    </view>
  </view>
</view>