index.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <wux-popup
  2. visible="{{ in }}"
  3. z-index="{{ zIndex }}"
  4. closable="{{ closable }}"
  5. mask="{{ mask }}"
  6. mask-closable="{{ maskClosable }}"
  7. bind:close="onClose"
  8. bind:closed="onClosed"
  9. >
  10. <view slot="header">{{ title }}</view>
  11. <view wx:if="{{ content || prompt }}">
  12. <text>{{ content }}</text>
  13. <view class="{{ classes.prompt }}" wx:if="{{ prompt }}">
  14. <label>
  15. <input
  16. type="{{ prompt.fieldtype }}"
  17. class="{{ classes.input }}"
  18. value="{{ prompt.response }}"
  19. password="{{ prompt.password }}"
  20. placeholder="{{ prompt.placeholder }}"
  21. maxlength="{{ maxlength }}"
  22. bindinput="bindinput"
  23. />
  24. </label>
  25. </view>
  26. </view>
  27. <view slot="footer" class="{{ classes.buttons }}">
  28. <block wx:for="{{ buttons }}" wx:for-item="button" wx:key="button">
  29. <button
  30. class="{{ classes.button[index].wrap }}"
  31. disabled="{{ button.disabled }}"
  32. open-type="{{ button.openType }}"
  33. hover-class="{{ !button.disabled ? classes.button[index].hover : 'none' }}"
  34. hover-stop-propagation="{{ button.hoverStopPropagation }}"
  35. hover-start-time="{{ button.hoverStartTime || 20 }}"
  36. hover-stay-time="{{ button.hoverStayTime || 70 }}"
  37. lang="{{ button.lang || 'en' }}"
  38. bindgetuserinfo="bindgetuserinfo"
  39. session-from="{{ button.sessionFrom }}"
  40. send-message-title="{{ button.sendMessageTitle }}"
  41. send-message-path="{{ button.sendMessagePath }}"
  42. send-message-img="{{ button.sendMessageImg }}"
  43. show-message-card="{{ button.showMessageCard }}"
  44. bindcontact="bindcontact"
  45. bindgetphonenumber="bindgetphonenumber"
  46. app-parameter="{{ button.appParameter }}"
  47. binderror="onError"
  48. bindopensetting="bindopensetting"
  49. data-index="{{ index }}"
  50. bindtap="buttonTapped"
  51. >
  52. {{ button.text }}
  53. </button>
  54. </block>
  55. </view>
  56. </wux-popup>