index.wxml 1.1 KB

123456789101112131415161718
  1. <pop-manager show="{{ show }}" type="center">
  2. <view class="zan-dialog--container">
  3. <view wx:if="{{ title }}" class="zan-dialog__header">{{ title }}</view>
  4. <view class="zan-dialog__content {{ title ? 'zan-dialog__content--title' : '' }}">
  5. <scroll-view class="zan-dialog__content--scroll" scroll-y="{{ isScroll }}">
  6. <text>{{ message }}</text>
  7. </scroll-view>
  8. </view>
  9. <view class="zan-dialog__footer {{ buttonsShowVertical ? 'zan-dialog__footer--vertical' : 'zan-dialog__footer--horizon' }}">
  10. <block wx:for="{{ buttons }}" wx:key="this">
  11. <zan-button class="zan-dialog__button" custom-class="{{ index === 0 ? 'zan-dialog__button-inside--first' : 'zan-dialog__button-inside' }}" data-type="{{ item.type }}" data-open-type="{{ item.openType }}" open-type="{{ item.openType }}" bind:btnclick="handleButtonClick"
  12. bind:getuserinfo="handleUserInfoResponse" bind:getphonenumber="handlePhoneResponse" bind:opensetting="handleOpenSettingResponse">
  13. <view style="color: {{ item.color || '#333' }}">{{ item.text }}</view>
  14. </zan-button>
  15. </block>
  16. </view>
  17. </view>
  18. </pop-manager>