Blame view

src/components/orderPay.vue 3.02 KB
455431ac   liuqimichale   欠费缴纳--费用支付
1
2
3
  <template>
    <div>
      <div class="car-wrap">
26e543b8   liuqimichale   ajax 统一封装
4
5
6
        <div class="carBG" :class="carWrapBG | formateColor">
          <p class="carNumber">{{carNumber}}</p>
          <p class="payFee">{{payFee/100}}.00元</p>
455431ac   liuqimichale   欠费缴纳--费用支付
7
8
9
        </div>
      </div>
  
26e543b8   liuqimichale   ajax 统一封装
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
      <ul class="fee-wrap">
        <li>
          <span>待缴金额</span>
          <span>36.00</span>
        </li>
        <li>
          <span>优惠金额</span>
          <span>36.00</span>
        </li>
        <li>
          <span>应付金额</span>
          <span>36.00</span>
        </li>
      </ul>
      <div style="padding: 20px 18px">
        <div class="toPay">微信支付</div>
      </div>
  
      <p class="tip">
        温馨提示:
      </p>
      <p style="color: #666;padding: 0 18px;">
        请在支付完成后15分钟内出场,如超出15分钟,会
        产生相应费用。
      </p>
  
  
455431ac   liuqimichale   欠费缴纳--费用支付
37
38
39
40
41
    </div>
  </template>
  
  <script>
  export default {
26e543b8   liuqimichale   ajax 统一封装
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
    name: 'orderPay',
    data() {
      return {
        carWrapBG: 0,
        carNumber: '京A12312',
        payFee: 0
      }
    },
    created() {
      this.carWrapBG = this.$route.query.carColor
    },
    filters:{
      formateColor(val){
        switch (val) {
          case '0':
            return 'carBlue'
            break;
          case '1':
            return 'carYellow'
            break;
          case '2':
            return 'carGreen'
            break;
          case '3':
            return 'carWhite'
            break;
          case '4':
            return 'carBlack'
            break;
        }
      }
    }
455431ac   liuqimichale   欠费缴纳--费用支付
74
75
76
77
78
79
  }
  </script>
  
  <style scoped lang="scss">
    .car-wrap {
      padding: 7px 7px;
26e543b8   liuqimichale   ajax 统一封装
80
      background: #FFF;
455431ac   liuqimichale   欠费缴纳--费用支付
81
82
83
84
85
    }
  
    .carBG {
      width: 100%;
      height: 130px;
26e543b8   liuqimichale   ajax 统一封装
86
87
88
89
90
91
    }
    .carBlue{
      background: url("../assets/images/blueBG.png") no-repeat;
      background-size: 100% 100%;
    }
    .carYellow{
455431ac   liuqimichale   欠费缴纳--费用支付
92
93
94
      background: url("../assets/images/yellowBG.png") no-repeat;
      background-size: 100% 100%;
    }
26e543b8   liuqimichale   ajax 统一封装
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
    .carGreen{
      background: url("../assets/images/greenBG.png") no-repeat;
      background-size: 100% 100%;
    }
    .carWhite{
      background: url("../assets/images/whiteBG.png") no-repeat;
      background-size: 100% 100%;
    }
    .carBlack{
      background: url("../assets/images/blackBG.png") no-repeat;
      background-size: 100% 100%;
    }
  
    .carNumber {
      padding: 20px 0 10px;
      font-size: 30px;
      color: #fff;
      text-align: center;
    }
  
    .payFee {
      font-size: 24px;
      color: #FF7B7B;
      text-align: center;
    }
  
    .fee-wrap {
      background: #FFF;
      padding: 0 18px;
      > li {
        display: flex;
        justify-content: space-between;
        height: 30px;
        line-height: 30px;
        border-bottom: 1px solid #EAEAEA;
        &:last-child {
          border-bottom: 0;
        }
      }
  
    }
  
    .toPay {
      width: 100%;
      height: 44px;
      margin: 0 auto;
      line-height: 44px;
      text-align: center;
      background: linear-gradient(180deg, #3885D9 0%, #4194EF 100%);
      border-radius: 4px;
      border: 1px solid #0D72E2;
      font-size: 20px;
      color: #FFF;
      cursor: pointer;
    }
    .tip{
      padding-left: 40px;
      background: url("../assets/images/free-tip.png") no-repeat 18px center;
      background-size: 16px 16px;
      color: #666;
    }
455431ac   liuqimichale   欠费缴纳--费用支付
156
  </style>