fight-create-order.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <view class="figth-create-order">
  3. <!-- 收货地址 -->
  4. <cm-choose-address :addressData="addressData"></cm-choose-address>
  5. <view class="grid"></view>
  6. <!-- 订单列表 -->
  7. <view class="order-list">
  8. <view class="order-section">
  9. <!-- 供应商 -->
  10. <view class="origin">
  11. <image class="cover" src="https://picsum.photos/100/100?random=1"></image>
  12. <view class="name">华熙生物</view>
  13. </view>
  14. <!-- 商品列表 -->
  15. <view class="goods-list">
  16. <!-- 商品信息 -->
  17. <view class="order-goods"><cm-order-prodcut></cm-order-prodcut></view>
  18. <view class="order-goods"><cm-order-prodcut></cm-order-prodcut></view>
  19. </view>
  20. <!-- 合计 -->
  21. <view class="total-price"> <text>合计:</text> <text class="price">¥900.00</text> </view>
  22. <!-- 留言 -->
  23. <view class="remark">
  24. <view class="label">留言:</view> <input class="control" type="text" placeholder="请输入内容" />
  25. </view>
  26. </view>
  27. </view>
  28. <view class="grid"></view>
  29. <!-- 优惠券 -->
  30. <cm-order-coupon-section></cm-order-coupon-section>
  31. <view class="grid"></view>
  32. <!-- 运费 -->
  33. <cm-order-freight-section></cm-order-freight-section>
  34. <!-- 提交导航 -->
  35. <cm-order-submit-nav></cm-order-submit-nav>
  36. </view>
  37. </template>
  38. <script>
  39. import CmChooseAddress from '@/components/cm-module/cm-choose-address/cm-choose-address.vue'
  40. import CmOrderProdcut from '@/components/cm-module/cm-order-prodcut/cm-order-prodcut.vue'
  41. import CmOrderSubmitNav from '@/components/cm-module/cm-order-submit-nav/cm-order-submit-nav.vue'
  42. import CmOrderCouponSection from '@/components/cm-module/cm-order-coupon-section/cm-order-coupon-section.vue'
  43. import CmOrderFreightSection from '@/components/cm-module/cm-order-freight-section/cm-order-freight-section.vue'
  44. export default {
  45. components: {
  46. CmOrderProdcut,
  47. CmChooseAddress,
  48. CmOrderSubmitNav,
  49. CmOrderCouponSection,
  50. CmOrderFreightSection
  51. },
  52. data() {
  53. return {
  54. addressData: {}
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .figth-create-order {
  61. background: #f7f7f7;
  62. min-height: 100vh;
  63. }
  64. .grid {
  65. width: 100%;
  66. height: 20rpx;
  67. background: #f7f7f7;
  68. }
  69. .order-list {
  70. background: #fff;
  71. .order-section {
  72. padding: 38rpx 0;
  73. margin-top: 20rpx;
  74. &:first-child {
  75. margin-top: 0;
  76. }
  77. }
  78. .goods-list {
  79. .order-goods {
  80. padding-top: 32rpx;
  81. &:first-child {
  82. padding-top: 0;
  83. }
  84. }
  85. }
  86. .origin {
  87. padding: 0 24rpx;
  88. margin-bottom: 16rpx;
  89. display: flex;
  90. justify-content: flex-start;
  91. align-items: center;
  92. .cover {
  93. width: 56rpx;
  94. height: 56rpx;
  95. border-radius: 4rpx;
  96. }
  97. .name {
  98. margin-left: 16rpx;
  99. font-size: 30rpx;
  100. color: #333333;
  101. }
  102. }
  103. }
  104. .total-price {
  105. padding: 24rpx;
  106. text-align: right;
  107. font-size: 26rpx;
  108. color: #333;
  109. background: #fff;
  110. .price {
  111. color: #ff457b;
  112. }
  113. }
  114. .remark {
  115. padding: 0 24rpx;
  116. display: flex;
  117. justify-content: space-between;
  118. align-items: center;
  119. background: #fff;
  120. .label {
  121. width: 78rpx;
  122. font-size: 26rpx;
  123. color: #999999;
  124. margin-right: 16rpx;
  125. }
  126. .control {
  127. flex: 1;
  128. font-size: 26rpx;
  129. color: #333333;
  130. padding: 8rpx 16rpx;
  131. background: #f7f7f7;
  132. border-radius: 8rpx;
  133. }
  134. }
  135. </style>