cm-order-submit-nav.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <view class="cm-order-submit-nav submit">
  3. <view class="count">共1件商品</view>
  4. <view class="total">
  5. <view class="price"> <text class="label">总计:</text> <text>¥200.00</text> </view>
  6. <view class="reduce"> <text class="label">共减:</text> <text>¥20.00</text> </view>
  7. </view>
  8. <button class="btn">提交订单</button>
  9. </view>
  10. </template>
  11. <script></script>
  12. <style lang="scss" scoped>
  13. .submit {
  14. display: flex;
  15. justify-content: space-between;
  16. align-items: center;
  17. box-sizing: border-box;
  18. position: fixed;
  19. width: 100%;
  20. height: 100rpx;
  21. bottom: 0;
  22. left: 0;
  23. padding: 0 24rpx;
  24. background: #fff;
  25. .count {
  26. font-size: 28rpx;
  27. color: #333333;
  28. }
  29. .total {
  30. display: flex;
  31. flex-direction: column;
  32. justify-content: center;
  33. align-items: flex-start;
  34. margin: 0 24rpx;
  35. .price {
  36. font-size: 26rpx;
  37. color: #ff457b;
  38. .label {
  39. color: #333333;
  40. }
  41. }
  42. .reduce {
  43. margin-top: 4rpx;
  44. font-size: 24rpx;
  45. color: #ff457b;
  46. }
  47. }
  48. .btn {
  49. width: 210rpx;
  50. height: 80rpx;
  51. background: linear-gradient(90deg, #fa55bf 0%, #f83c6c 100%);
  52. opacity: 1;
  53. color: #fff;
  54. line-height: 80rpx;
  55. text-align: center;
  56. border-radius: 40rpx;
  57. margin: 0;
  58. }
  59. }
  60. </style>