order-submit.vue 1.6 KB

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