index.wxml 2.2 KB

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