stepStatus.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view class="step-status_bx">
  3. <template
  4. v-for="(s,idx) in stepOptions"
  5. >
  6. <view
  7. :key="idx"
  8. >
  9. <i :class="['iconfont','iconjihuo', s.complete?'clorBule':'']"></i>
  10. {{s.name}}
  11. </view>
  12. <view
  13. :key="idx"
  14. v-if="idx != 2"
  15. class="dot-box">
  16. <view
  17. :key="i"
  18. v-for="i in 5" :class="['dot',s.complete?'clorBule':'']"></view>
  19. </view>
  20. </template>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. name:'StepStatus',
  26. props:{
  27. stepOptions:{
  28. type:Array,
  29. default:()=>[]
  30. },
  31. active:{
  32. type:Number,
  33. default: 0
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .step-status_bx {
  40. padding:30upx 40upx;
  41. display: flex;
  42. align-items: center;
  43. justify-content: space-between;
  44. background-color: #FFFFFF;
  45. & .iconfont {
  46. color: #CCCCCC;
  47. font-size: 44upx;
  48. margin-right: 10upx;
  49. &.clorBule {
  50. color: #3385FF;
  51. }
  52. }
  53. .dot-box {
  54. width: 88upx;
  55. display: flex;
  56. align-items: center;
  57. justify-content: space-between;
  58. & .dot {
  59. width: 8upx;
  60. height: 8upx;
  61. background-color: #CCCCCC;
  62. border-radius: 50%;
  63. &.clorBule {
  64. background-color: #3385FF;
  65. }
  66. }
  67. }
  68. }
  69. </style>