index.wxml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <view class="wux-class {{ classes.wrap }}">
  2. <view class="{{ classes.hd }}">
  3. <view wx:if="{{ resultIcon }}" class="{{ classes.icon }}">
  4. <icon type="{{ resultIcon.type }}" size="{{ resultIcon.size }}" color="{{ resultIcon.color }}" />
  5. </view>
  6. <block wx:else>
  7. <slot name="header"></slot>
  8. </block>
  9. </view>
  10. <view class="{{ classes.bd }}">
  11. <view wx:if="{{ title }}" class="{{ classes.title }}">{{ title }}</view>
  12. <view wx:if="{{ label }}" class="{{ classes.desc }}">{{ label }}</view>
  13. <view wx:if="{{ buttons.length }}" class="{{ classes.buttons }}">
  14. <block wx:for="{{ buttons }}" wx:for-item="button" wx:key="index">
  15. <wux-button
  16. type="{{ button.type }}"
  17. clear="{{ button.clear }}"
  18. block="{{ button.block }}"
  19. full="{{ button.full }}"
  20. outline="{{ button.outline }}"
  21. size="{{ button.size }}"
  22. disabled="{{ button.disabled }}"
  23. loading="{{ button.loading }}"
  24. form-type="{{ button.formType }}"
  25. open-type="{{ button.openType }}"
  26. hover-stop-propagation="{{ button.hoverStopPropagation }}"
  27. hover-start-time="{{ button.hoverStartTime }}"
  28. hover-stay-time="{{ button.hoverStayTime }}"
  29. lang="{{ button.lang }}"
  30. bind:getuserinfo="bindgetuserinfo"
  31. session-from="{{ button.sessionFrom }}"
  32. send-message-title="{{ button.sendMessageTitle }}"
  33. send-message-path="{{ button.sendMessagePath }}"
  34. send-message-img="{{ button.sendMessageImg }}"
  35. show-message-card="{{ button.showMessageCard }}"
  36. bind:contact="bindcontact"
  37. bind:getphonenumber="bindgetphonenumber"
  38. app-parameter="{{ button.appParameter }}"
  39. binderror="onError"
  40. bindopensetting="bindopensetting"
  41. data-index="{{ index }}"
  42. bind:click="onClick"
  43. >
  44. {{ button.text }}
  45. </wux-button>
  46. </block>
  47. </view>
  48. <slot></slot>
  49. </view>
  50. <view class="{{ classes.ft }}">
  51. <block wx:if="{{ extra }}">
  52. <text>{{ extra }}</text>
  53. </block>
  54. <block wx:else>
  55. <slot name="footer"></slot>
  56. </block>
  57. </view>
  58. </view>