progress.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view>
  3. <view v-for="(item,index) in logisticsList" :key="index" class="information">
  4. <view class="basis">
  5. <view class="dot" v-if="item.title" :style="item.status?'background-color:#f83224':''">
  6. </view>
  7. <view class="dot-1" v-else :style="item.status?'background-color:#f83224':''">
  8. </view>
  9. <view class="name" :style="item.status?'color:#f83224':''">
  10. {{item.title}}
  11. </view>
  12. <view class="time" :style="item.status?'color:#f83224':''">
  13. {{item.time}}
  14. </view>
  15. </view>
  16. <view class="shu" v-show="index < logisticsList.length-1&&!item.imageUrl"> </view>
  17. <view class="shu-1" v-show="index < logisticsList.length-1&&item.imageUrl"> </view>
  18. <view class="does" :id="'does'+index" :style="item.status?'color:#333':''">
  19. {{ item.does }}
  20. </view>
  21. <view class="img-1" v-if="item.imageUrl">
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. props: {
  29. logisticsList: {
  30. typeof: Array,
  31. default: []
  32. }
  33. },
  34. data() {
  35. return {
  36. }
  37. }
  38. }
  39. </script>
  40. <style scoped lang="scss">
  41. .information {
  42. position: relative;
  43. }
  44. .basis {
  45. display: flex;
  46. align-items: center;
  47. margin-top: 28rpx;
  48. .dot {
  49. border-radius: 50%;
  50. background-color: rgba(227, 227, 227, 1);
  51. width: 18rpx;
  52. height: 18rpx;
  53. margin-right: 20rpx;
  54. z-index: 100;
  55. }
  56. .dot-1 {
  57. border-radius: 50%;
  58. background-color: rgba(227, 227, 227, 1);
  59. width: 10rpx;
  60. height: 10rpx;
  61. margin-right: 20rpx;
  62. margin-left: 4rpx;
  63. z-index: 100;
  64. }
  65. .name {
  66. font-size: 28rpx;
  67. margin-right: 20rpx;
  68. }
  69. .time {
  70. font-size: 24rpx;
  71. }
  72. }
  73. .img-1{
  74. background-color: #D8D8D8;
  75. border-radius: 4rpx;
  76. width: 608rpx;
  77. height: 368rpx;
  78. margin-left: 30rpx;
  79. margin-bottom: 28rpx;
  80. }
  81. .shu {
  82. position: absolute;
  83. height: 126rpx;
  84. width: 2rpx;
  85. background-color: rgba(151, 151, 151, .6);
  86. left: 8rpx;
  87. top: 22rpx;
  88. }
  89. .shu-1{
  90. position: absolute;
  91. height: 484rpx;
  92. width: 2rpx;
  93. background-color: rgba(151, 151, 151, .6);
  94. left: 8rpx;
  95. top: 22rpx;
  96. }
  97. .does {
  98. font-size: 24rpx;
  99. color: rgba(119, 119, 119, .8);
  100. margin: 8rpx 0 0 36rpx;
  101. height: 60rpx;
  102. }
  103. </style>