Blame view

pc-master/src/components/base/afterSaleState.vue 2.21 KB
3f535f30   杨鑫   '初始'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
  <template>
      <div class="process">
          <div class="box">
              <icon-svg :class="{colorGlod : state === ''}"
                  style="font-size: 90px;"
                  icon-class="detail-submit"
              />
              <p>申请售后</p>
          </div>
          <span class="defaultSpot"
              :class="{glodSpot : state!==1 && state!==''}"
              v-if="state===''"
          ></span>
          <div class="box" v-if="state===1 || state===''">
              <icon-svg style="font-size: 90px; color: #999;" icon-class="detail-paySuccess" />
              <p>订单处理</p>
          </div>
          <span class="defaultSpot" :class="{glodSpot : state!==1 && state!==''}">
          </span>
          <div class="box">
              <icon-svg
                  style="font-size: 90px; color: #999;"
                  icon-class="order-detail-express"
              />
              <p>退货中</p>
          </div>
          <span class="defaultSpot" :class="{glodSpot : state!==1 && state!==''}">
          </span>
          <div class="box">
              <icon-svg
                  style="font-size: 90px; color: #999;"
                  icon-class="order-detail-finish"
              />
              <p>完成</p>
          </div>
      </div>
  </template>
  
  <script>
  export default {
      props: ['state'],
      data () {
          return {
          }
      }
  }
  </script>
  <style lang="scss" scoped>
  .process{
      width: 100%;
      display: flex;
      text-align: center;
      align-items: center;
      margin-top: 100px;
      .box{
          flex: 1;
          img{
              width: 35px;
              height: 35px;
              margin-bottom: 20px;
          }
          p{
              font-size: 14px;
          }
      }
      .spot{
          width: 130px;
          position: relative;
          margin-top: 5px;
          img{
              width: 130px;
          }
          p{
              position: absolute;
              top: -20px;
              left: 50%;
              transform: translate(-50%, 0);
          }
      }
      .defaultSpot{
          flex: 0.5;
          height: 0;
          border-bottom: 8px dotted #CCCCCC;
          span{
              position: relative;
              top: -20px;
          }
      }
      .glodSpot{
          border-color: $mainGlod;
      }
      .colorGlod{
          color: $mainGlod;
      }
  }
  </style>