index.wxml 1.2 KB

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