Blame view

src/components/orderPay.vue 19.5 KB
455431ac   liuqimichale   欠费缴纳--费用支付
1
2
3
  <template>
    <div>
      <div class="car-wrap">
26e543b8   liuqimichale   ajax 统一封装
4
5
        <div class="carBG" :class="carWrapBG | formateColor">
          <p class="carNumber">{{carNumber}}</p>
ae6e7e99   liuqimichale   支付方式
6
          <p class="payFee">{{(arrearageActFee/100).toFixed(2)}}元</p>
455431ac   liuqimichale   欠费缴纳--费用支付
7
8
9
        </div>
      </div>
  
26e543b8   liuqimichale   ajax 统一封装
10
11
12
      <ul class="fee-wrap">
        <li>
          <span>待缴金额</span>
ae6e7e99   liuqimichale   支付方式
13
          <span>{{(arrearageActFee/100).toFixed(2)}}</span>
26e543b8   liuqimichale   ajax 统一封装
14
15
16
        </li>
        <li>
          <span>优惠金额</span>
ae6e7e99   liuqimichale   支付方式
17
          <span>{{(arrearageDiscFee/100).toFixed(2)}}</span>
26e543b8   liuqimichale   ajax 统一封装
18
19
20
        </li>
        <li>
          <span>应付金额</span>
ae6e7e99   liuqimichale   支付方式
21
          <span>{{(arrearageActFee/100).toFixed(2)}}</span>
26e543b8   liuqimichale   ajax 统一封装
22
23
        </li>
      </ul>
6351d1dc   liuqimichale   员工号
24
25
  
      <p style="margin-top: 20px;padding-left: 15px;">停车引导员工号(非必填)</p>
f1a5e97b   刘淇   赤峰扫码
26
      <mt-field style="font-size: 14px;color: #333;" label="" placeholder="请输入员工号" type="number" v-model="tollNxumber" :attr="{ oninput: 'if(value.length>7)value=value.slice(0,7)' }" ></mt-field>
6351d1dc   liuqimichale   员工号
27
  
26e543b8   liuqimichale   ajax 统一封装
28
      <div style="padding: 20px 18px">
3c184204   liuqimichale   支付方式 -- 支付宝
29
        <div class="toPay" @click="toPay">{{clientBrowser}}支付</div>
26e543b8   liuqimichale   ajax 统一封装
30
31
      </div>
  
7ddbff4d   liuqimichale   本次停车费用 出场
32
33
34
35
36
37
38
39
40
      <div v-if="appOrderTimeout.length>0">
        <p class="tip">
          温馨提示:
        </p>
        <p style="color: #666;padding: 0 18px;">
          {{appOrderTimeout}}
        </p>
      </div>
  
26e543b8   liuqimichale   ajax 统一封装
41
42
  
  
455431ac   liuqimichale   欠费缴纳--费用支付
43
44
45
46
    </div>
  </template>
  
  <script>
8676f3af   liuqimichale   payType 34
47
48
  // import CryptoJS from '../utils/AES.js'
  // let Base64 = require('js-base64').Base64
d8a108c6   liuqimichale   本次订单与欠费补缴订单页面合成一个
49
50
  import {  MessageBox } from 'mint-ui';
  import { aliPay, getOpenId, vxPayQuery, bankH5Pay, queryParkingRecordPageByCarNumbers } from '@/api/orderPay/orderPay'
6b286309   liuqimichale   支付方式 -- 微信
51
  
455431ac   liuqimichale   欠费缴纳--费用支付
52
  export default {
26e543b8   liuqimichale   ajax 统一封装
53
54
55
56
    name: 'orderPay',
    data() {
      return {
        carWrapBG: 0,
48832909   liuqimichale   赤峰 微信支付
57
        carNumber: '',
ae6e7e99   liuqimichale   支付方式
58
        arrearageActFee: 0,
6b286309   liuqimichale   支付方式 -- 微信
59
60
        arrearageDiscFee: 0,
        arrearageActFee: 0,
d8a108c6   liuqimichale   本次订单与欠费补缴订单页面合成一个
61
62
        parkingData: [], //  在停数据
        historyList: [], // 历史欠费数据
6b286309   liuqimichale   支付方式 -- 微信
63
64
65
66
        clientBrowser: '', // 客户端
        paySrcType: '', //支付的类型   101 是本次   103是历史欠费
        orderId: '',  //支付的订单
        webAppCode: '', // 微信code
7ddbff4d   liuqimichale   本次停车费用 出场
67
        appOrderTimeout: '', // 超时描述
6351d1dc   liuqimichale   员工号
68
        tollNumber:'', // 收费员员工号
f1a5e97b   刘淇   赤峰扫码
69
        // backDeveloperCode: ''
26e543b8   liuqimichale   ajax 统一封装
70
71
72
      }
    },
    created() {
ae6e7e99   liuqimichale   支付方式
73
74
      this.carWrapBG = this.$route.query.carColor //车牌颜色
      this.carNumber = this.$route.query.carNumber
3c184204   liuqimichale   支付方式 -- 支付宝
75
76
77
      this.arrearageTotalFee = this.$route.query.arrearageTotalFee // 应收
      this.arrearageDiscFee = this.$route.query.arrearageDiscFee // 优惠
      this.arrearageActFee = this.$route.query.arrearageActFee // 实收
ae6e7e99   liuqimichale   支付方式
78
      this.clientBrowser = this.$utils.clientBrowser() //支付方式
6b286309   liuqimichale   支付方式 -- 微信
79
80
      this.paySrcType = this.$route.query.paySrcType // 实收
      this.orderId = this.$route.query.ordeID
c865a00f   liuqimichale   赤峰支付宝支付
81
      console.log(this.orderId)
7ddbff4d   liuqimichale   本次停车费用 出场
82
      this.appOrderTimeout = this.$route.query.appOrderTimeout
6b286309   liuqimichale   支付方式 -- 微信
83
84
85
      if (this.clientBrowser == "微信") {
        this.webAppCode = this.getCode();
      }
1d350d22   liuqimichale   微信支付 完成
86
  
d8a108c6   liuqimichale   本次订单与欠费补缴订单页面合成一个
87
88
89
90
91
  
  
    },
    mounted(){
  
3c184204   liuqimichale   支付方式 -- 支付宝
92
    },
6b286309   liuqimichale   支付方式 -- 微信
93
94
95
    methods: {
      getCode() {
        var appID = this.$utils.myVxAppId;
6ab7cc8c   liuqimichale   赤峰 微信支付
96
        var code = this.getUrlParam('code');
6b286309   liuqimichale   支付方式 -- 微信
97
98
99
100
101
102
103
        var local = window.location.href;
        if (code == null || code === '') {
          window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect'
        } else {
          return code;
        }
      },
6ab7cc8c   liuqimichale   赤峰 微信支付
104
      getUrlParam(name) {
c865a00f   liuqimichale   赤峰支付宝支付
105
106
107
108
109
        var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
        var r = window.location.search.substr(1).match(reg)
        if (r != null) return unescape(r[2])
        return null
      },
6b286309   liuqimichale   支付方式 -- 微信
110
111
112
      toPay() {
        let me = this
        let _order = []
c865a00f   liuqimichale   赤峰支付宝支付
113
  
6b286309   liuqimichale   支付方式 -- 微信
114
115
        console.log(this.orderId)
        if (this.paySrcType == 103) {
c865a00f   liuqimichale   赤峰支付宝支付
116
          this.orderId = JSON.parse(this.orderId)
6b286309   liuqimichale   支付方式 -- 微信
117
118
119
120
121
122
123
124
          this.orderId.forEach(item => {
            _order.push({
              orderId: item
            })
          })
          this.orderId = []
          this.orderId = _order
        }
f1a5e97b   刘淇   赤峰扫码
125
126
127
128
129
        // if(this.tollNumber){
        //    this.backDeveloperCode = this.tollNumber
        // }else{
        //   this.backDeveloperCode = this.$route.query.backDeveloperCode
        // }
6b286309   liuqimichale   支付方式 -- 微信
130
  
f1a5e97b   刘淇   赤峰扫码
131
132
133
        // tollNumber
        // this.backDeveloperCode = this.tollNumber  //  输入字段
        let ticketChargeCode =  this.$route.query.ticketChargeCode  // 二维码里面的收费员编号
6b286309   liuqimichale   支付方式 -- 微信
134
        if (this.clientBrowser == '支付宝') { // 支付宝支付
7528d5a2   liuqimichale   员工号
135
          let me = this
3c184204   liuqimichale   支付方式 -- 支付宝
136
          var aliParams = {};
6b286309   liuqimichale   支付方式 -- 微信
137
          aliParams.orderId = this.orderId;
3c184204   liuqimichale   支付方式 -- 支付宝
138
139
140
          aliParams.carNumber = this.carNumber;
          aliParams.payType = 1;// 1:支付宝 2:微信 3:银联 10:H5   4微信公众号
          aliParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付
6b286309   liuqimichale   支付方式 -- 微信
141
          aliParams.paySrcType = this.paySrcType;//101停车支付
7528d5a2   liuqimichale   员工号
142
143
          aliParams.orgId = this.$utils.myOrgId
          aliParams.backType = 2
f1a5e97b   刘淇   赤峰扫码
144
145
          aliParams.backDeveloperCode = this.tollNumber
          aliParams.ticketChargeCode = ticketChargeCode
e38fe48c   liuqimichale   接口跨域
146
          aliParams.recordArreaInfos = JSON.stringify(this.orderId);
c865a00f   liuqimichale   赤峰支付宝支付
147
          console.log(aliParams)
6b286309   liuqimichale   支付方式 -- 微信
148
149
150
151
          aliPay(aliParams).then(response => {
            console.log(response)
            if (response.code == 0) {//进场
              document.write(response.data);//打开支付表单
7528d5a2   liuqimichale   员工号
152
            } else if(response.code == 1002){//其他情况如【该卡号场内已存在】
6b286309   liuqimichale   支付方式 -- 微信
153
              console.log(response.message);
7528d5a2   liuqimichale   员工号
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
              MessageBox.confirm('', {
                message: response.message,
                title: '温馨提示',
                showCancelButton:false,
                confirmButtonText: '确定',
              }).then(action => {
                if (action == 'confirm') {     //确认的回调
                  console.log('确定');
                  this.$router.go(-1)
                }
              }).catch(err => {
                if (err == 'cancel') {     //取消的回调
                  console.log('取消');
                }
              });
            }else{
              alert(response.message)
6b286309   liuqimichale   支付方式 -- 微信
171
172
173
            }
  
          })
3c184204   liuqimichale   支付方式 -- 支付宝
174
175
        }
  
1d350d22   liuqimichale   微信支付 完成
176
        console.log(this.clientBrowser)
db6fba32   liuqimichale   农行支付---立即支付
177
        if (this.clientBrowser == '立即') { // 农行支付
d29bf602   liuqimichale   赤峰测试环境 农行支付
178
179
180
          var bankabcParams = {};
          bankabcParams.orderId = this.orderId;
          bankabcParams.carNumber = this.carNumber;
7728e2e9   liuqimichale   payType 34
181
          bankabcParams.payType = 34;// 1:支付宝 2:微信 3:银联 10:H5   4微信公众号   34 农行
d29bf602   liuqimichale   赤峰测试环境 农行支付
182
183
          bankabcParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付
          bankabcParams.paySrcType = this.paySrcType;//101停车支付
7528d5a2   liuqimichale   员工号
184
185
          bankabcParams.orgId = this.$utils.myOrgId
          bankabcParams.backType = 2
d29bf602   liuqimichale   赤峰测试环境 农行支付
186
          bankabcParams.PaymentLinkType = 1
f1a5e97b   刘淇   赤峰扫码
187
188
          bankabcParams.backDeveloperCode = this.tollNumber
          bankabcParams.ticketChargeCode = ticketChargeCode
d29bf602   liuqimichale   赤峰测试环境 农行支付
189
190
          bankabcParams.recordArreaInfos = JSON.stringify(this.orderId);
          console.log(bankabcParams)
d29bf602   liuqimichale   赤峰测试环境 农行支付
191
          bankH5Pay(bankabcParams).then(response => {
cd926e2c   liuqimichale   去掉车辆类型
192
            console.log(response)
d29bf602   liuqimichale   赤峰测试环境 农行支付
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
            if(response.code=='0'){
              let res = response.data.PaymentURL
              let _token = res.split('TOKEN=')[1]
              let OrderNo = response.data.OrderNo
              localStorage.setItem('OrderNum',OrderNo)
  
  
              if(window.navigator.userAgent.indexOf('Bankabc/Portal') > -1) {
                // alert('当前页面在新容器');
                AlipayJSBridge.call('startApp',{
                  appId:'30603024', // 固定值
                  param:{
                    type:"3", // 3: 掌银内H5页面,
                    tokenId:_token, //商户传过来的tokenId
                    paySystem:"", //商户传过来的paySystem, 没有则传空字符串
                    payType:"1111", //商户传过来的payType,没有则传'1111'
092148e6   liuqimichale   赤峰测试环境 农行支付
209
                    webviewURL:"https://wxgzh.renniting.cn/wechatwuxi/Chifeng/TEST/sweeping_payment/codepay/index.html#/payResult", //商户传过来的回跳地址
d29bf602   liuqimichale   赤峰测试环境 农行支付
210
211
212
213
214
215
216
217
218
219
220
221
222
                    remark:"其他参数", //扩展备用
                    showProgress:'NO',
                    backBehavior:'back'
                  },
                },function(result){
  
                });
              } else {
                // alert('当前页面在旧容器');
                // 旧支付方式
                window.location.href = 'https://www.abchina.com/luascript/mobilePayLua/'+  encodeURI('{"return":{"tokenID":"'+_token+'","backURL":"https://wxgzh.renniting.cn/wechatwuxi/Chifeng/TEST/sweeping_payment/codepay/index.html#/payResult","payType":""}}');
  
              }
7528d5a2   liuqimichale   员工号
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
            }else if(response.code == 1002){//其他情况如【该卡号场内已存在】
              console.log(response.message);
              MessageBox.confirm('', {
                message: response.message,
                title: '温馨提示',
                showCancelButton:false,
                confirmButtonText: '确定',
              }).then(action => {
                if (action == 'confirm') {     //确认的回调
                  console.log('确定');
                  this.$router.go(-1)
                }
              }).catch(err => {
                if (err == 'cancel') {     //取消的回调
                  console.log('取消');
                }
              });
d29bf602   liuqimichale   赤峰测试环境 农行支付
240
            }else{
092148e6   liuqimichale   赤峰测试环境 农行支付
241
              alert('支付失败')
d29bf602   liuqimichale   赤峰测试环境 农行支付
242
243
244
245
246
247
248
249
250
251
252
253
            }
  
  
            // console.log(_token)
            // let _data = 'method=invokePayFromBrowser&tokenID='+_token
            // let cryData = CryptoJS.encrypt(_data, 'G9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvM3', 'EkpTEA3FbZFGGq8Y')
            //
            // let baseCRY = Base64.encode(cryData)
            // console.log(baseCRY)
            // window.location.href='bankabc:' + encodeURIComponent('{"method":"invokePayFromBrowser","param":'+baseCRY+'}')
            // // 即为加密后的数据。其中paramsEncode是需要加密的数据、
            // // keyStr是加密时使用的key,与服务端一致、hash是偏移量,是一个随机生成的16位字符串。
1d350d22   liuqimichale   微信支付 完成
254
255
256
257
258
259
260
261
262
          })
        }
  
  
  
  
  
  
  
6b286309   liuqimichale   支付方式 -- 微信
263
        if (this.clientBrowser == '微信') { // 微信支付
42d99196   liuqimichale   赤峰小票码 -- 微信支付完成...
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
          let _openId = sessionStorage.getItem('openIdData')
          if(_openId){
            me.vxPay(_openId, this.orderId)
          }else {
            //第一步获取openid
            var codeParams = {
              code: this.webAppCode,
              appId: this.$utils.myVxAppId
            };
            getOpenId(codeParams).then(res => {
              if (res.code == 0) {
                me.vxPay(res.data, this.orderId)
                sessionStorage.setItem('openIdData', res.data)
              } else if (res.code == 40163) { //code been used, hints[重复code问题]
                alert('请重新扫码重复code问题')
                console.log(res.message);
              } else {
                alert('请重新扫码')
              }
            })
          }
6b286309   liuqimichale   支付方式 -- 微信
285
286
287
288
        }
  
      },
      vxPay(openIdData, orderIdData) {
6ab7cc8c   liuqimichale   赤峰 微信支付
289
        let vm = this
6b286309   liuqimichale   支付方式 -- 微信
290
291
292
        var wxParams = {};
        wxParams.orderId = orderIdData;
        wxParams.backType = 2,
48832909   liuqimichale   赤峰 微信支付
293
294
        wxParams.orgId = this.$utils.myOrgId,
        wxParams.payType = 4;// 1:支付宝 2:微信 3:银联 10:H5   4微信公众号
6b286309   liuqimichale   支付方式 -- 微信
295
296
297
298
299
        wxParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付
        wxParams.carNumber = this.carNumber;
        wxParams.paySrcType = this.paySrcType;//101停车支付
        wxParams.recordArreaInfos = JSON.stringify(orderIdData);
        wxParams.openId = openIdData;
f1a5e97b   刘淇   赤峰扫码
300
301
        wxParams.backDeveloperCode = this.tollNumber
        wxParams.ticketChargeCode = ticketChargeCode
6b286309   liuqimichale   支付方式 -- 微信
302
        wxParams.appId = this.$utils.myVxAppId;
c865a00f   liuqimichale   赤峰支付宝支付
303
        vxPayQuery(wxParams).then(res => {
6b286309   liuqimichale   支付方式 -- 微信
304
          if (res.code == 0) { //
6b286309   liuqimichale   支付方式 -- 微信
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
            if (res.data) {
              var data = res.data;
              console.log(JSON.stringify(data));
              if (typeof WeixinJSBridge === 'undefined') { // 微信浏览器内置对象。参考微信官方文档
                if (document.addEventListener) {
                  document.addEventListener('WeixinJSBridgeReady', vm.onBridgeReady(data), false)
                } else if (document.attachEvent) {
                  document.attachEvent('WeixinJSBridgeReady', vm.onBridgeReady(data))
                  document.attachEvent('onWeixinJSBridgeReady', vm.onBridgeReady(data))
                }
              } else {
                console.log('准备调用微信支付')
                vm.onBridgeReady(data)
              }
            } else {
              alert("没有找到返回值");
            }
7528d5a2   liuqimichale   员工号
322
          }else if(res.code == 1002){//其他情况如【该卡号场内已存在】
6b286309   liuqimichale   支付方式 -- 微信
323
            console.log(res.message);
7528d5a2   liuqimichale   员工号
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
            MessageBox.confirm('', {
              message: res.message,
              title: '温馨提示',
              showCancelButton:false,
              confirmButtonText: '确定',
            }).then(action => {
              if (action == 'confirm') {     //确认的回调
                console.log('确定');
                this.$router.go(-1)
              }
            }).catch(err => {
              if (err == 'cancel') {     //取消的回调
                console.log('取消');
              }
            });
          }else{
            alert(res.message)
6b286309   liuqimichale   支付方式 -- 微信
341
342
343
          }
        })
      },
42d99196   liuqimichale   赤峰小票码 -- 微信支付完成...
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
        onBridgeReady(params) {
          let me = this
          console.log('调用微信支付WeixinJSBridge')
          WeixinJSBridge.invoke(
            'getBrandWCPayRequest', params,
            //
            // 'getBrandWCPayRequest', { // 下面参数内容都是后台返回的
            //   'appId': data.appId, // 公众号名称,由商户传入
            //   'timeStamp': data.timeStamp, // 时间戳
            //   'nonceStr': data.nonceStr, // 随机串
            //   'package': data.package, // 预支付id
            //   'signType': data.signType, // 微信签名方式
            //   'paySign': data.paySign // 微信签名
            // },
            function (res) {
              // 使用以上方式判断前端返回,微信团队郑重提示:res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
              if (res.err_msg === 'get_brand_wcpay_request:ok') {
                console.log('成功')
                var salt = me.$utils.myCommonSalt(32);
                let wxparams = {
                  pageNum: 1,
                  pageSize: 10000,
                  parkState: 10,
                  terminalSource: 7,
                  carNumber: me.carNumber,
                  app_id: me.$utils.myVarAppid,
                  deviceInfo: me.$utils.myDeviceInfo,
                  salt: salt,
                  sign_type: "md5",
                  token:'',
d8a108c6   liuqimichale   本次订单与欠费补缴订单页面合成一个
374
                }
42d99196   liuqimichale   赤峰小票码 -- 微信支付完成...
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
                wxparams.sign = me.$utils.signObject(wxparams)
                queryParkingRecordPageByCarNumbers(wxparams).then(response => {
                  console.log(response)
                  me.parkList = response.data.dataList
  
                  // alert(JSON.stringify(me.parkList))
                  // alert(me.parkList.length)
                  if(me.parkList.length == 0){
                    me.$router.push({
                      path:'parkRecord',
                      query:{
                        carNumber: me.carNumber,
                        carNumberColor: me.carWrapBG,
                        parkFlag: 0 //  0表示在停    1表示历史
                      }
                    })
  
                  }else{
                    me.parkingData = me.parkList.filter(item => {
                      return item.parkState == '10'
                    })
                    console.log(me.parkingData)
                    me.historyList = me.parkList.filter(item => {
                      return item.parkState == '20'
                    })
                    console.log(me.historyList)
  
                    if(me.historyList.length>0){
                      MessageBox.confirm('', {
                        message: '您当前有历史欠费 是否立即补缴?',
                        title: '温馨提示',
                        confirmButtonText: '去补缴',
                        cancelButtonText: '取消'
                      }).then(action => {
                        if (action == 'confirm') {     //确认的回调
                          console.log('确定');
                          me.$router.push({
                            path:'parkRecord',
                            query:{
                              carNumber: me.carNumber,
                              carNumberColor: me.carWrapBG,
                              parkFlag: 1 //  0表示在停    1表示历史
                            }
                          })
d8a108c6   liuqimichale   本次订单与欠费补缴订单页面合成一个
419
                        }
42d99196   liuqimichale   赤峰小票码 -- 微信支付完成...
420
421
422
                      }).catch(err => {
                        if (err == 'cancel') {     //取消的回调
                          console.log('取消');
d8a108c6   liuqimichale   本次订单与欠费补缴订单页面合成一个
423
                        }
42d99196   liuqimichale   赤峰小票码 -- 微信支付完成...
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
                      });
                    }else{
  
                      if(me.paySrcType==101){  //缴费了本次
                        me.$router.push({
                          path:'parkRecord',
                          query:{
                            carNumber: me.carNumber,
                            carNumberColor: me.carWrapBG,
                            parkFlag: 0 //  0表示在停    1表示历史
                          }
                        })
                      }else{
                        MessageBox.confirm('', {
                          message: '您当前有在停订单 是否立即支付?',
                          title: '温馨提示',
                          confirmButtonText: '去支付',
                          cancelButtonText: '取消'
                        }).then(action => {
                          if (action == 'confirm') {     //确认的回调
                            console.log('确定');
                            me.$router.push({
                              path:'parkRecord',
                              query:{
                                carNumber: me.carNumber,
                                carNumberColor: me.carWrapBG,
                                parkFlag: 0 //  0表示在停    1表示历史
                              }
                            })
                          }
                        }).catch(err => {
                          if (err == 'cancel') {     //取消的回调
                            console.log('取消');
                          }
                        });
                      }
  
d8a108c6   liuqimichale   本次订单与欠费补缴订单页面合成一个
461
                    }
42d99196   liuqimichale   赤峰小票码 -- 微信支付完成...
462
                  }
d8a108c6   liuqimichale   本次订单与欠费补缴订单页面合成一个
463
  
d8a108c6   liuqimichale   本次订单与欠费补缴订单页面合成一个
464
465
  
  
42d99196   liuqimichale   赤峰小票码 -- 微信支付完成...
466
                })
d8a108c6   liuqimichale   本次订单与欠费补缴订单页面合成一个
467
468
469
  
  
  
42d99196   liuqimichale   赤峰小票码 -- 微信支付完成...
470
471
472
473
474
              } else {
                console.log('失败')
                alert('支付失败')
                me.$router.go(-2);
              }
6b286309   liuqimichale   支付方式 -- 微信
475
            }
42d99196   liuqimichale   赤峰小票码 -- 微信支付完成...
476
477
          )
        },
26e543b8   liuqimichale   ajax 统一封装
478
    },
6b286309   liuqimichale   支付方式 -- 微信
479
    filters: {
26e543b8   liuqimichale   ajax 统一封装
480
    }
455431ac   liuqimichale   欠费缴纳--费用支付
481
482
483
484
485
486
  }
  </script>
  
  <style scoped lang="scss">
    .car-wrap {
      padding: 7px 7px;
26e543b8   liuqimichale   ajax 统一封装
487
      background: #FFF;
455431ac   liuqimichale   欠费缴纳--费用支付
488
489
490
491
492
    }
  
    .carBG {
      width: 100%;
      height: 130px;
ba126a49   liuqimichale   输入手机号 问题
493
      color: #fff;
26e543b8   liuqimichale   ajax 统一封装
494
    }
6b286309   liuqimichale   支付方式 -- 微信
495
496
  
    .carBlue {
26e543b8   liuqimichale   ajax 统一封装
497
498
499
      background: url("../assets/images/blueBG.png") no-repeat;
      background-size: 100% 100%;
    }
6b286309   liuqimichale   支付方式 -- 微信
500
501
  
    .carYellow {
455431ac   liuqimichale   欠费缴纳--费用支付
502
503
504
      background: url("../assets/images/yellowBG.png") no-repeat;
      background-size: 100% 100%;
    }
6b286309   liuqimichale   支付方式 -- 微信
505
506
  
    .carGreen {
26e543b8   liuqimichale   ajax 统一封装
507
508
509
      background: url("../assets/images/greenBG.png") no-repeat;
      background-size: 100% 100%;
    }
6b286309   liuqimichale   支付方式 -- 微信
510
511
  
    .carWhite {
26e543b8   liuqimichale   ajax 统一封装
512
513
514
      background: url("../assets/images/whiteBG.png") no-repeat;
      background-size: 100% 100%;
    }
6b286309   liuqimichale   支付方式 -- 微信
515
516
  
    .carBlack {
26e543b8   liuqimichale   ajax 统一封装
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
      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;
    }
6b286309   liuqimichale   支付方式 -- 微信
563
564
  
    .tip {
26e543b8   liuqimichale   ajax 统一封装
565
      padding-left: 40px;
b137bb0e   liuqimichale   扫码后 车牌是否 咨询页面
566
      background: url("../assets/images/tip.png") no-repeat 18px center;
26e543b8   liuqimichale   ajax 统一封装
567
568
569
      background-size: 16px 16px;
      color: #666;
    }
455431ac   liuqimichale   欠费缴纳--费用支付
570
  </style>