CartList.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <view>
  3. <view class="cart_list" v-for="item in 5">
  4. <view class="chelvc-flex-item store">
  5. <u-radio-group>
  6. <u-radio>
  7. 顺风租车
  8. <u-icon name="arrow-right" />
  9. </u-radio>
  10. </u-radio-group>
  11. <view class="">领券</view>
  12. </view>
  13. <view class="cartList chelvc-flex">
  14. <u-radio-group>
  15. <u-radio>
  16. <image src="@/static/logo.png" mode="scaleToFill" />
  17. </u-radio>
  18. </u-radio-group>
  19. <view>
  20. <view class="text-title">23款大众捷达VS5(越野)+市区免费+市区免车</view>
  21. <view class="chelvc-flex-item">
  22. <view class="chelvc-flex">
  23. <view>
  24. <text class="text-22">¥</text>
  25. <text style="font-size: 30rpx; font-weight: 800">450</text>
  26. </view>
  27. <view class="price chelvc-flex-item">
  28. <text>预计到手价</text>
  29. <text class="text-22">¥</text>
  30. <text style="font-size: 26rpx; font-weight: 800">196</text>
  31. </view>
  32. </view>
  33. <view class="addStyle">x 1</view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. props: {
  43. list: {
  44. style: Array,
  45. default: [],
  46. },
  47. },
  48. };
  49. </script>
  50. <style lang="scss" scoped>
  51. .cart_list {
  52. height: 310rpx;
  53. padding: 10rpx 20rpx;
  54. border-radius: 10rpx;
  55. background-color: #fff;
  56. margin-bottom: 20rpx;
  57. .store {
  58. height: 50rpx;
  59. }
  60. .cartList {
  61. margin-top: 15rpx;
  62. image {
  63. width: 200rpx;
  64. height: 200rpx;
  65. margin-right: 20rpx;
  66. border-radius: 10rpx;
  67. }
  68. }
  69. .text-title {
  70. font-size: 32rpx;
  71. font-weight: 800;
  72. display: -webkit-box;
  73. overflow: hidden;
  74. -webkit-box-orient: vertical;
  75. -webkit-line-clamp: 2;
  76. margin: 20rpx 0 60rpx;
  77. }
  78. .price {
  79. width: 185rpx;
  80. height: 30rpx;
  81. padding: 10rpx;
  82. font-size: 24rpx;
  83. color: #f66e0d;
  84. margin-left: 10rpx;
  85. margin-bottom: 10rpx;
  86. border-radius: 30rpx;
  87. background-color: rgba(0, 0, 0, 0.1);
  88. }
  89. .addStyle {
  90. height: 40rpx;
  91. width: 75rpx;
  92. border-radius: 40rpx;
  93. line-height: 40rpx;
  94. font-size: 24rpx;
  95. text-align: center;
  96. color: #7f7f7f;
  97. border: 1rpx solid #7f7f7f;
  98. }
  99. }
  100. </style>