index.wxml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <pop-manager
  2. show="{{ show }}"
  3. type="center"
  4. >
  5. <view class="zan-dialog--container">
  6. <view
  7. wx:if="{{ title }}"
  8. class="zan-dialog__header"
  9. >{{ title }}</view>
  10. <view
  11. class="zan-dialog__content {{ title ? 'zan-dialog__content--title' : '' }}"
  12. >
  13. <text>{{ message }}</text>
  14. </view>
  15. <view
  16. class="zan-dialog__footer {{ buttonsShowVertical ? 'zan-dialog__footer--vertical' : 'zan-dialog__footer--horizon' }}"
  17. >
  18. <block
  19. wx:for="{{ buttons }}"
  20. wx:key="{{ item.text }}-{{ item.type }}"
  21. >
  22. <zan-button
  23. class="zan-dialog__button"
  24. custom-class="{{ index === 0 ? 'zan-dialog__button-inside--first' : 'zan-dialog__button-inside' }}"
  25. data-type="{{ item.type }}"
  26. data-open-type="{{ item.openType }}"
  27. open-type="{{ item.openType }}"
  28. bind:btnclick="handleButtonClick"
  29. bind:getuserinfo="handleUserInfoResponse"
  30. bind:getphonenumber="handlePhoneResponse"
  31. bind:opensetting="handleOpenSettingResponse"
  32. >
  33. <view
  34. style="color: {{ item.color || '#333' }}"
  35. >{{ item.text }}</view>
  36. </zan-button>
  37. </block>
  38. </view>
  39. </view>
  40. </pop-manager>