index.wxml 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <van-popup
  2. show="{{ show }}"
  3. z-index="{{ zIndex }}"
  4. overlay="{{ overlay }}"
  5. custom-class="van-dialog {{ className }}"
  6. transition="{{ transition }}"
  7. custom-style="{{ customStyle }}"
  8. close-on-click-overlay="{{ closeOnClickOverlay }}"
  9. bind:close="onClickOverlay"
  10. >
  11. <view
  12. wx:if="{{ title }}"
  13. class="van-dialog__header {{ message || useSlot ? '' : 'van-dialog--isolated' }}"
  14. >
  15. {{ title }}
  16. </view>
  17. <slot wx:if="{{ useSlot }}" />
  18. <view
  19. wx:elif="{{ message }}"
  20. class="van-dialog__message {{ title ? 'van-dialog__message--has-title' : '' }} {{ messageAlign ? 'van-dialog__message--' + messageAlign : '' }}"
  21. >
  22. <text>{{ message }}</text>
  23. </view>
  24. <view class="van-hairline--top van-dialog__footer">
  25. <van-button
  26. wx:if="{{ showCancelButton }}"
  27. size="large"
  28. loading="{{ loading.cancel }}"
  29. class="van-dialog__button van-hairline--right"
  30. custom-class="van-dialog__cancel"
  31. bind:click="onCancel"
  32. >
  33. {{ cancelButtonText }}
  34. </van-button>
  35. <van-button
  36. wx:if="{{ showConfirmButton }}"
  37. size="large"
  38. class="van-dialog__button"
  39. loading="{{ loading.confirm }}"
  40. custom-class="van-dialog__confirm"
  41. open-type="{{ confirmButtonOpenType }}"
  42. lang="{{ lang }}"
  43. business-id="{{ businessId }}"
  44. session-from="{{ sessionFrom }}"
  45. send-message-title="{{ sendMessageTitle }}"
  46. send-message-path="{{ sendMessagePath }}"
  47. send-message-img="{{ sendMessageImg }}"
  48. show-message-card="{{ showMessageCard }}"
  49. app-parameter="{{ appParameter }}"
  50. bind:click="onConfirm"
  51. bindgetuserinfo="bindGetUserInfo"
  52. bindcontact="bindContact"
  53. bindgetphonenumber="bindGetPhoneNumber"
  54. binderror="bindError"
  55. bindlaunchapp="bindLaunchApp"
  56. bindopensetting="bindOpenSetting"
  57. >
  58. {{ confirmButtonText }}
  59. </van-button>
  60. </view>
  61. </van-popup>