steps.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="">
  3. <view class="sys-background-fff m-20 p-20 r-20">
  4. <view class="row-c" v-for="(item,index) in list" :key="index">
  5. <view class="column-c" style="position: relative;top: 45rpx;">
  6. <image class="wh-36"
  7. :src="item.is_dot == 1? '/static/img/login/Checked1@3x.png':'/static/img/login/Checked2@3x.png'"
  8. mode="aspectFill"></image>
  9. <view class="steps-line" :style="{opacity:index == list.length - 1?0:1}"></view>
  10. </view>
  11. <view class="sys-from-background-color steps-item p-20 r-20 column flex m-l20">
  12. <text class="size-24 text-color-576">2024-12-20 12:45:00</text>
  13. <view v-if="index == list.length - 1">
  14. <text class="size-28 text-color-000 sys-weight-600">归档确认:</text>
  15. <text class="size-28 text-color-576">-- -- -- --</text>
  16. </view>
  17. <view v-else>
  18. <text class="size-28 text-color-666">外访:</text>
  19. <text class="size-28 text-color-12 sys-weight-600">张三</text>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. props: {
  29. },
  30. data() {
  31. return {
  32. list2: [{
  33. title: '买家下单',
  34. desc: '2018-11-11'
  35. }, {
  36. title: '卖家发货',
  37. desc: '2018-11-12'
  38. }, {
  39. title: '买家签收',
  40. desc: '2018-11-13'
  41. }, {
  42. title: '交易完成',
  43. desc: '2018-11-14'
  44. }],
  45. list: [{
  46. is_dot: 1,
  47. time: '2024-12-20 12:45:00',
  48. type: '签约',
  49. name: '张三'
  50. }, {
  51. is_dot: 1,
  52. time: '2024-12-20 12:45:00',
  53. type: '签约',
  54. name: '张三'
  55. }, {
  56. is_dot: 1,
  57. time: '2024-12-20 12:45:00',
  58. type: '签约',
  59. name: '张三'
  60. }, {
  61. is_dot: 1,
  62. time: '2024-12-20 12:45:00',
  63. type: '签约',
  64. name: '张三'
  65. }, {
  66. is_dot: 0,
  67. time: '2024-12-20 12:45:00',
  68. type: '签约',
  69. name: '张三'
  70. }]
  71. }
  72. },
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. .steps-item:last-child {
  77. margin-bottom: 0;
  78. }
  79. .steps-line {
  80. width: 2rpx;
  81. background-color: #D9D9D9;
  82. height: 90rpx;
  83. }
  84. </style>