index.wxml 964B

123456789101112131415161718192021222324252627282930313233
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <view class="van-submit-bar custom-class">
  3. <slot name="top" />
  4. <view wx:if="{{ tip }}" class="van-submit-bar__tip">
  5. {{ tipStr }}<slot name="tip" />
  6. </view>
  7. <view class="bar-class {{ utils.bem('submit-bar__bar', { safe: safeAreaInsetBottom && isIPhoneX }) }}">
  8. <slot />
  9. <view class="van-submit-bar__text">
  10. <block wx:if="{{ hasPrice }}">
  11. <text>{{ label || '合计:' }}</text>
  12. <text class="van-submit-bar__price price-class">
  13. <text class="van-submit-bar__currency">{{ currency }}</text> {{ priceStr }}
  14. </text>
  15. </block>
  16. </view>
  17. <van-button
  18. square
  19. size="large"
  20. type="{{ buttonType }}"
  21. loading="{{ loading }}"
  22. disabled="{{ disabled }}"
  23. class="van-submit-bar__button"
  24. custom-class="button-class"
  25. bind:click="onSubmit"
  26. >
  27. {{ loading ? '' : buttonText }}
  28. </van-button>
  29. </view>
  30. </view>