index.wxml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 van-submit-bar__bar">
  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 class="van-submit-bar__price-integer">{{ integerStr }}</text><text>{{decimalStr}}</text>
  23. </text>
  24. <text class="van-submit-bar__suffix-label">{{ suffixLabel }}</text>
  25. </view>
  26. <van-button
  27. round
  28. type="{{ buttonType }}"
  29. loading="{{ loading }}"
  30. disabled="{{ disabled }}"
  31. class="van-submit-bar__button"
  32. custom-class="button-class"
  33. custom-style="width: 100%;"
  34. bind:click="onSubmit"
  35. >
  36. {{ loading ? '' : buttonText }}
  37. </van-button>
  38. </view>
  39. <view wx:if="{{ safeAreaInsetBottom }}" class="van-submit-bar__safe" />
  40. </view>