index.wxml 961 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <t-popup
  2. visible="{{show}}"
  3. placement="bottom"
  4. bind:visible-change="onCancel"
  5. close-btn="{{showCloseButton}}"
  6. >
  7. <view class="popup-content">
  8. <view class="header">
  9. {{title}}
  10. </view>
  11. <view class="options">
  12. <t-cell
  13. wx:for="{{_options}}"
  14. wx:key="title"
  15. t-class="cell"
  16. title="{{item.title}}"
  17. bindclick="onOptionTap"
  18. data-index="{{index}}"
  19. border="{{false}}"
  20. >
  21. <view slot="right-icon">
  22. <t-icon
  23. name="check-circle-filled"
  24. size="36rpx"
  25. color="#fa4126"
  26. wx:if="{{item.checked}}"
  27. />
  28. <t-icon
  29. name="circle"
  30. size="36rpx"
  31. color="#C7C7C7"
  32. wx:else
  33. />
  34. </view>
  35. </t-cell>
  36. </view>
  37. <view class="button-bar" wx:if="{{showConfirmButton}}">
  38. <t-button
  39. class="btnWrapper"
  40. wx:if="{{showConfirmButton}}"
  41. t-class="btn"
  42. bindtap="onConfirm"
  43. >
  44. {{confirmButtonText}}
  45. </t-button>
  46. </view>
  47. </view>
  48. </t-popup>
  49. <t-toast id="t-toast" />