order-submit.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view class="order-submit">
  3. <simple-safe-view>
  4. <view class="control">
  5. <view class="count">共{{ orderInfo.allCount }}件商品</view>
  6. <view class="price">
  7. <view class="total">
  8. 总计:
  9. <text class="paymount">¥{{ orderInfo.payAllPrice | priceFormat }}</text>
  10. </view>
  11. <view class="reduce" v-if="orderInfo.discountedPrice">
  12. 共减:¥{{ orderInfo.discountedPrice | priceFormat }}
  13. </view>
  14. </view>
  15. <tui-button type="base" width="210rpx" height="80rpx" shape="circle" @click="$emit('submit')">
  16. 提交订单
  17. </tui-button>
  18. </view>
  19. </simple-safe-view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. name: 'order-submit',
  25. props: {
  26. orderInfo: {
  27. type: Object,
  28. default: () => {}
  29. }
  30. },
  31. data() {
  32. return {}
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .order-submit {
  38. @extend .fixed-bottom;
  39. border-top: 1px solid #eee;
  40. background-color: #fff;
  41. .control {
  42. @extend .cm-flex-between;
  43. height: 100rpx;
  44. box-sizing: border-box;
  45. padding: 0 24rpx;
  46. .count {
  47. font-size: 28rpx;
  48. }
  49. .price {
  50. font-size: 26rpx;
  51. .paymount {
  52. color: #f83c6c;
  53. }
  54. .reduce {
  55. color: #f83c6c;
  56. font-size: 24rpx;
  57. }
  58. }
  59. }
  60. }
  61. </style>