order-submit.vue 1.7 KB

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