index.wxml 1.8 KB

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