checkout.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="content">
  3. <view class="main">
  4. <view class="main-item" v-for="(item,index) in 10">
  5. <view class="main-title flex">
  6. <view class="title">
  7. 黄色,37码,数量3
  8. </view>
  9. <view class="type" v-if="index%2==0">
  10. 合格
  11. </view>
  12. <view class="type1" v-else>
  13. 报废
  14. </view>
  15. </view>
  16. <view class="main-info flex">
  17. <scroll-view scroll-x="true" class="main-price">
  18. <view class="image-box">
  19. <view class="image-item" v-for="(itm,ind) in 10">
  20. <image src="../../static/img/user-item2.png" mode=""></image>
  21. </view>
  22. </view>
  23. </scroll-view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {};
  33. },
  34. onLoad() {},
  35. onShow() {},
  36. onReachBottom() {},
  37. onReady() {},
  38. methods: {}
  39. };
  40. </script>
  41. <style lang="scss">
  42. page,
  43. .content {
  44. min-height: 100%;
  45. height: auto;
  46. }
  47. .main {
  48. padding-bottom: 100rpx;
  49. }
  50. .main-item {
  51. width: 700rpx;
  52. background: #FFFFFF;
  53. border-radius: 24rpx;
  54. margin: 20rpx auto 0;
  55. padding: 28rpx 16rpx;
  56. .main-title {
  57. padding: 0 14rpx 30rpx 10rpx;
  58. border-bottom: 1px solid #fafafa;
  59. .title {
  60. font-size: 32rpx;
  61. font-family: PingFang SC;
  62. font-weight: bold;
  63. color: #323333;
  64. }
  65. .type {
  66. font-size: 30rpx;
  67. font-family: PingFang SC;
  68. font-weight: bold;
  69. color: #999999;
  70. }
  71. .type1 {
  72. font-size: 30rpx;
  73. font-family: PingFang SC;
  74. font-weight: bold;
  75. color: #FF4C4C;
  76. }
  77. }
  78. .main-info {
  79. padding: 20rpx 14rpx;
  80. .main-price {
  81. width: 100%;
  82. .image-box {
  83. display: flex;
  84. align-items: center;
  85. .image-item {
  86. margin-left: 10rpx;
  87. width: 110rpx;
  88. height: 110rpx;
  89. flex-shrink: 0;
  90. image {
  91. width: 100%;
  92. height: 100%;
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }
  99. </style>