Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

flow-path-list - 副本.vue 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!-- 办理流程 -->
  2. <template>
  3. <view :class="['as-layout-horizontal', index as any === 0?'active':'', 'logistics-gray']" style="overflow: visible"
  4. v-for="(item,index) in options" :key="index">
  5. <view class="logistics-layout">
  6. <view class="logistics-layout-top">
  7. <view class="title">
  8. {{(item as ItemType).title}}
  9. </view>
  10. </view>
  11. <view class="desc">
  12. {{(item as ItemType).desc}}
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script setup lang="ts">
  18. import { PropType } from "vue";
  19. interface ItemType {
  20. title : string,
  21. desc : string,
  22. right ?: boolean,
  23. }
  24. const emit = defineEmits(['more'])
  25. const props = defineProps({
  26. //数据列表
  27. options: {
  28. type: Array as PropType<ItemType[]>,
  29. default: () => ([])
  30. },
  31. })
  32. </script>
  33. <style lang="scss" scoped>
  34. .as-layout-horizontal {
  35. border-left: 2px solid #00B38B;
  36. padding-bottom: 45rpx;
  37. margin-top: 10rpx;
  38. position: relative;
  39. &::after {
  40. content: '';
  41. left: -8rpx;
  42. top: -10rpx;
  43. position: absolute;
  44. width: 12rpx;
  45. height: 12rpx;
  46. border-radius: 50%;
  47. border: 2rpx solid #00B38B;
  48. box-sizing: border-box;
  49. }
  50. &:last-child {
  51. border-left: none;
  52. padding-bottom: 0px;
  53. &::after {
  54. left: -4.5rpx;
  55. }
  56. }
  57. .logistics-layout {
  58. padding-left: 35rpx;
  59. &-top {
  60. width: 100%;
  61. display: flex;
  62. margin-top: -20rpx;
  63. align-items: center;
  64. .more {
  65. display: flex;
  66. align-items: center;
  67. .label {
  68. font-size: 24rpx;
  69. color: #00B38B;
  70. }
  71. .arror {
  72. width: 30rpx;
  73. height: 30rpx;
  74. }
  75. }
  76. }
  77. .title {
  78. font-size: 28rpx;
  79. color: #0D0F26;
  80. flex: 1;
  81. font-weight: bold;
  82. }
  83. .desc {
  84. font-size: 24rpx;
  85. margin-top: 20rpx;
  86. margin-bottom: 20rpx;
  87. color: #666666;
  88. line-height: 25px;
  89. }
  90. }
  91. }
  92. .logistics-gray {
  93. border-color: #DCDCDC;
  94. &::after {
  95. background-color: #DCDCDC;
  96. border: none;
  97. }
  98. }
  99. .active {
  100. position: relative;
  101. &::after {
  102. content: '';
  103. position: absolute;
  104. width: 12rpx;
  105. height: 12rpx;
  106. left: -8rpx;
  107. border-radius: 50%;
  108. background-color: #00B38B;
  109. }
  110. }
  111. </style>