index.wxml 856 B

123456789101112131415161718192021222324252627282930313233
  1. <view class="btn-bar">
  2. <view class="left">
  3. <t-button
  4. wx:for="{{buttons.left}}"
  5. wx:key="type"
  6. wx:for-item="leftBtn"
  7. size="extra-small"
  8. shape="round"
  9. t-class="order-btn delete-btn"
  10. catchtap="onServiceBtnTap"
  11. data-type="{{leftBtn.type}}"
  12. >
  13. {{leftBtn.name}}
  14. </t-button>
  15. </view>
  16. <view class="right">
  17. <t-button
  18. wx:for="{{buttons.right}}"
  19. wx:key="type"
  20. wx:for-item="rightBtn"
  21. size="extra-small"
  22. variant="{{ rightBtn.primary ? 'base' : 'outline'}}"
  23. shape="round"
  24. t-class="order-btn {{rightBtn.primary ? 'primary' : 'normal'}}"
  25. catchtap="onServiceBtnTap"
  26. data-type="{{rightBtn.type}}"
  27. open-type="{{ rightBtn.openType }}"
  28. data-share="{{ rightBtn.dataShare }}"
  29. >
  30. {{rightBtn.name}}
  31. </t-button>
  32. </view>
  33. </view>