Blame view

js/paybacknew.js 20.9 KB
624dbad9   liuqimichale   赤峰签名+混淆
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  // var code = getUrlParam('code');
  // var local = window.location.href;
  // if (code == null || code === '') {
  //     window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + jsajax.appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect'
  //
  // } else {
  //
  // }
  //
  // function getUrlParam(name) {
  //     var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
  //     var r = window.location.search.substr(1).match(reg)
  //     if (r != null) return unescape(r[2])
  //     return null
  // }
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
16
  
d68fc748   liuqimichale   多笔缴纳费用
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
  var fun = {
      dateFormat: function (msd) {
          var time = msd
  
          if (null != time && "" != time) {
  
              if (time > 60 && time < 60 * 60) {
  
                  time = parseInt(time / 60.0) + "分钟" + parseInt((parseFloat(time / 60.0) -
  
                      parseInt(time / 60.0)) * 60) + "秒";
  
              }
  
              else if (time >= 60 * 60 && time < 60 * 60 * 24) {
  
                  time = parseInt(time / 3600.0) + "小时" + parseInt((parseFloat(time / 3600.0) -
  
                      parseInt(time / 3600.0)) * 60) + "分钟" +
  
                      parseInt((parseFloat((parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60) -
  
                          parseInt((parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60)) * 60) + "秒";
  
              } else if (time >= 60 * 60 * 24) {
  
                  time = parseInt(time / 3600.0 / 24) + "天" + parseInt((parseFloat(time / 3600.0 / 24) -
  
                      parseInt(time / 3600.0 / 24)) * 24) + "小时" + parseInt((parseFloat(time / 3600.0) -
  
                      parseInt(time / 3600.0)) * 60) + "分钟" +
  
                      parseInt((parseFloat((parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60) -
  
                          parseInt((parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60)) * 60) + "秒";
  
              }
  
              else {
  
                  time = parseInt(time) + "秒";
  
              }
  
          }
  
          return time;
      },
      checkIN: function (i) {
          return i.parkState == 10
      },
      checkOUT: function (i) {
          return i.parkState == 20
      },
      //查询单个待支付单费用
      getOneorder: function (carNumber, parkCode, orderId, parkCode) {
d68fc748   liuqimichale   多笔缴纳费用
73
74
75
76
77
78
79
  
          var salt = jsajax.salt(32);
          var token = mUrl.GetToken();
          if (token == null) {
              token = '';
          }
          var jsondata = {
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
80
              app_id: _app_id,
d68fc748   liuqimichale   多笔缴纳费用
81
82
83
84
85
              deviceInfo: "BC0703A4-AFB0-4B51-9089-9B7487C0CC6E",
              salt: salt,
              sign: fun.getMd5sign(),
              sign_type: "md5",
              token: token,
d72ff7ef   liuqimichale   西城 扫码支付 签名
86
              payType: 4,
d68fc748   liuqimichale   多笔缴纳费用
87
88
89
90
91
92
93
              appId: jsajax.appID,
              orderId: orderId,
              terminalSource: '7',
              parkCode: parkCode,
              carNumber: carNumber,
  
          }
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
94
  
d68fc748   liuqimichale   多笔缴纳费用
95
96
97
98
99
100
101
102
103
104
          jsajax.defaultReq(
              mUrl.oneCardorder,
              JSON.stringify(jsondata),
              function (data) {
                  console.log(data)
                  if (data.code == '0') {
                      //setdiv();
                      setTimeout(function () {
                          var datas = data.data
                          console.log(datas)
d68fc748   liuqimichale   多笔缴纳费用
105
106
                          var due = datas.due;//总计费用
                          var unpaid = datas.unpaid;//待支付
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
107
  
d68fc748   liuqimichale   多笔缴纳费用
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
                          var discountFee;
                          var discountDesc;
                          if (datas.discountFee && datas.discountFee != '' && datas.discountFee != undefined) {
                              discountFee = datas.discountFee;//已优惠
                              if (datas.discountDesc && datas.discountDesc != '' && datas.discountDesc != undefined) {
                                  discountDesc = datas.discountDesc;//已优惠
                              }
                          }
                          var _num = 1
                          var _paySrcType = 101
                          //console.log('-------------------------------'+discountType);
                          //查询到车牌号订单信息
                          var src = 'monPay.html?carnum=' + carNumber
                              // + "&inparktime=" + inparktime
                              // + "&parkName=" + parkName
                              // + "&staytime=" + staytime
                              + "&due=" + due
                              + "&unpaid=" + unpaid
                              + "&num=" + _num
                              // + "&paid=" + paid
                              // + "&no=" + no
d72ff7ef   liuqimichale   西城 扫码支付 签名
129
                              + '&appId=' + datas.appId
d68fc748   liuqimichale   多笔缴纳费用
130
131
132
133
134
135
                              + "&disfee=" + discountFee
                              + "&disdesc=" + discountDesc
                              + "&orderId=" + orderId
                              + "&parkCode=" + parkCode
                              + "&paySrcType=" + _paySrcType
  
d68fc748   liuqimichale   多笔缴纳费用
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
                          window.location.assign(encodeURI(src))
                      }, 100);
                  }
              }
          )
      },
      queryArrearageSta: function () {
          // var salt = jsajax.salt(32);
          // var token = mUrl.GetToken();
  
          var salt = jsajax.salt(32);
          var token = mUrl.GetToken();
          if (token == null) {
              token = '';
          }
          var list = "[" + fun.orderIds + "]"
          var orderlist = fun.orderIds
          var codes = "[" + fun.parkCodes + "]"
          var jsondata = {
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
155
              app_id: _app_id,
d68fc748   liuqimichale   多笔缴纳费用
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
              deviceInfo: "BC0703A4-AFB0-4B51-9089-9B7487C0CC6E",
              salt: salt,
              sign: fun.getMd5sign(),
              sign_type: "md5",
              token: token,
              appId: jsajax.appID,
              orderIds: list,
              terminalSource: '7',
              payType: 4,
              orgId: '10003',
  
          }
          console.log('查询单个的入参   ' + JSON.stringify(jsondata) + "   请求的接口" + mUrl.oneCardorder);
          jsajax.defaultReq(
              mUrl.queryArrearageSta,
              JSON.stringify(jsondata),
              function (data) {
                  console.log('获取单个待支付订单  ' + JSON.stringify(data));
                  var datas = data.data.carArrearages[0]
                  console.log(datas)
d68fc748   liuqimichale   多笔缴纳费用
176
177
178
179
                  setTimeout(function () {
                      var discountFee = datas.arrearageDiscFee;//已优惠
                      var discountDesc = datas.discDesc;//已优惠
                      var carNumber = datas.carNumber;
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
180
  
d68fc748   liuqimichale   多笔缴纳费用
181
182
183
184
185
186
187
188
189
190
191
                      var due = datas.arrearageTotalFee;//总计费用
                      var unpaid = datas.arrearageActFee;//待支付
                      var paid = datas.arrearageActFee;//实付
                      var discountType = datas.discountType;
  
                      if (datas.discountFee && datas.discountFee != '' && datas.discountFee != undefined) {
                          discountFee = datas.discountFee;//已优惠
                          if (datas.discountDesc && datas.discountDesc != '' && datas.discountDesc != undefined) {
                              discountDesc = datas.discountDesc;//已优惠
                          }
                      }
d68fc748   liuqimichale   多笔缴纳费用
192
193
                      var _num = datas.arrearageNum
                      var _paySrcType = 103
d68fc748   liuqimichale   多笔缴纳费用
194
195
                      //查询到车牌号订单信息
                      var src = 'monPay.html?carnum=' + carNumber
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
196
  
d68fc748   liuqimichale   多笔缴纳费用
197
198
199
200
201
                          + "&due=" + due
                          + "&unpaid=" + unpaid
                          + "&paid=" + paid
                          + "&num=" + _num
                          // + "&no=" + no
d72ff7ef   liuqimichale   西城 扫码支付 签名
202
                          + '&appId=' + datas.appId
d68fc748   liuqimichale   多笔缴纳费用
203
204
205
206
207
208
                          + "&disfee=" + discountFee
                          + "&disdesc=" + discountDesc
                          + "&orderId=" + orderlist
                          // + '&discountType=' + discountType
                          + '&parkCode=' + codes
                          + "&paySrcType=" + _paySrcType
d68fc748   liuqimichale   多笔缴纳费用
209
210
211
212
213
214
215
216
217
218
219
220
221
                      window.location.assign(encodeURI(src))
                  }, 100);
  
              }
          )
      },
      getMd5sign: function () {
          var salt = jsajax.salt(32);
          var token = mUrl.GetToken();
          if (token == null) {
              token = '';
          }
          var sortd = [
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
222
              { keyname: 'app_id', value: _app_id },
d68fc748   liuqimichale   多笔缴纳费用
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
              { keyname: 'deviceInfo', value: 'BC0703A4-AFB0-4B51-9089-9B7487C0CC6E' },
              { keyname: 'salt', value: salt },
              { keyname: 'sign_type', value: 'md5' },
              { keyname: 'token', value: token }
          ];
          var md5sign = jsajax.getsign(sortd);
          return md5sign;
  
      },
      allMoney: 0,
      inData: [], //在场
      outData: [], //离场
      listData: [],
      selectLen: 0,
      orderIds: [], // 选中订单号数组
      orderArr: [],
      parkCodes: [],
      parkCodeArr: [],
      selectedMon: 0,//选中了总金额
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
242
      flag: false,
d68fc748   liuqimichale   多笔缴纳费用
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
      getQueryVariable: function (variable) {
          var query = window.location.search.substring(1);
          var vars = query.split("&");
          for (var i = 0; i < vars.length; i++) {
              var pair = vars[i].split("=");
              if (pair[0] == variable) {
                  return decodeURI(pair[1]);
              }
          }
          return (false);
      },
  
      init: function () {
          console.log(fun.listData)
          fun.inData = fun.listData.filter(fun.checkIN)
          fun.outData = fun.listData.filter(fun.checkOUT)
          console.log(fun.inData)
          console.log(fun.outData)
          if (fun.inData.length > 0) {
              $('#pay-wrap').html('')
              // carNumber,parkCode,orderId
              $('#pay-wrap').attr('carNumber', fun.inData[0].carNumber)
              $('#pay-wrap').attr('parkCode', fun.inData[0].parkCode)
              $('#pay-wrap').attr('orderId', fun.inData[0].orderId)
4e5f7a9a   liuqimichale   多笔缴纳费用
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
  
              var orderFreeDuration = Number((fun.inData[0].orderFreeDuration))
              var parkDuration = Number((fun.inData[0].parkDuration))
  
              if (orderFreeDuration > parkDuration) {
                  fun.flag = true
                  $('#pay-wrap').append('<div class="pay-header">\n' +
                      '            <span>' + fun.inData[0].carNumber + '</span>\n' +
                      '            <span>本次费用</span>\n' +
                      '        </div>\n' +
                      '        <div class="pay-body">\n' +
                      '            <p>停车场名称:' + fun.inData[0].parkName + '</p>\n' +
                      '            <p>进场时间:' + fun.inData[0].parkInTime + '</p>\n' +
                      '            <p>出场时间:' + fun.inData[0].parkOutTime + '</p>\n' +
                      '            <p>停车时长:' + fun.dateFormat(fun.inData[0].parkDuration) + '</p>\n' +
                      '            <span class="pay-money">' + ((fun.inData[0].unPayFee) / 100).toFixed(2) + '元</span>\n' +
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
283
                      '<p  class="out-btn arrears-btn" data-orderId="' + fun.inData[0].orderId + '"  data-money="' + fun.inData[0].unPayFee + '" data-carNumber="' + fun.inData[0].carNumber + '"  data-parkCode="' + fun.inData[0].parkCode + '">申请离场' +
4e5f7a9a   liuqimichale   多笔缴纳费用
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
                      '                <span class="orderId" style="display: none" ' +
                      '>' + fun.inData[0].orderId + '</span>' +
                      '</p>' +
                      '        </div>')
              } else {
                  $('#pay-wrap').append('<div class="pay-header">\n' +
                      '            <span>' + fun.inData[0].carNumber + '</span>\n' +
                      '            <span>本次费用</span>\n' +
                      '        </div>\n' +
                      '        <div class="pay-body">\n' +
                      '            <p>停车场名称:' + fun.inData[0].parkName + '</p>\n' +
                      '            <p>进场时间:' + fun.inData[0].parkInTime + '</p>\n' +
                      '            <p>出场时间:' + fun.inData[0].parkOutTime + '</p>\n' +
                      '            <p>停车时长:' + fun.dateFormat(fun.inData[0].parkDuration) + '</p>\n' +
                      '            <span class="pay-money">' + ((fun.inData[0].unPayFee) / 100).toFixed(2) + '元</span>\n' +
                      '<p  class="outpay-btn">出场缴费' +
                      '                <span class="orderId" style="display: none">' + fun.inData[0].orderId + '</span>' +
                      '</p>' +
                      '        </div>')
              }
d68fc748   liuqimichale   多笔缴纳费用
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
          } else {
              $('#pay-wrap').html('')
              $('#pay-wrap').append('<p style="height: 50px;line-height: 50px;text-align: center">无本次订单费用</p>')
          }
  
          if (fun.outData.length > 0) {
              $('#arrears-list').html('')
              for (var i = 0; i < fun.outData.length; i++) {
                  var num = ((fun.outData[i].unPayFee) / 100).toFixed(2);
                  console.log(fun.outData[i].unPayFee)
                  fun.allMoney += Number(fun.outData[i].unPayFee)
                  fun.orderArr.push(fun.outData[i].orderId)
                  fun.parkCodeArr.push(fun.outData[i].parkcode)
                  // console.log(fun.allMoney)
                  $('#arrears-list').append('<li  data-parkCode="' + fun.outData[i].parkCode + '" data-orderId="' + fun.outData[i].orderId + '" data-unPayFee="' + fun.outData[i].unPayFee + '">\n' +
                      '                <div class="arrears-header">\n' +
                      '                    <span>' + fun.outData[i].carNumber + '</span>\n' +
                      '                    <span>欠费</span>\n' +
                      '                </div>\n' +
                      '                <div class="arrears-body">\n' +
                      '                    <p>停车场名称:' + fun.outData[i].parkName + '</p>\n' +
                      '                    <p>进场时间:' + fun.outData[i].parkInTime + '</p>\n' +
                      '                    <p>出场时间:' + fun.outData[i].parkOutTime + '</p>\n' +
                      '                    <p>停车时长:' + fun.dateFormat(fun.outData[i].parkDuration) + '</p>\n' +
                      '                    <span class="arrears-money">' + num + '元</span>\n' +
                      '                </div>\n' +
                      '            </li>')
              }
              $('#allMoneyWrap').text(((fun.allMoney) / 100).toFixed(2))
          } else {
              $('#arrears-wrap').html('')
              $('#arrears-wrap').append('<p style="height: 50px;line-height: 50px;text-align: center">无历史欠费费用</p>')
          }
      },
      _initData: function () {
d68fc748   liuqimichale   多笔缴纳费用
339
340
341
342
343
344
345
346
347
348
          var _carNumber = fun.getQueryVariable('carNumber')
          console.log(_carNumber)
  
          /**
           * @param {} second
           * @return {}
           * @desc 秒转化成dd hh:mm:ss
           */
          var salt = jsajax.salt(32);
          var sortd = [
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
349
              { keyname: 'app_id', value: _app_id },
d68fc748   liuqimichale   多笔缴纳费用
350
351
352
353
354
              { keyname: 'deviceInfo', value: 'BC0703A4-AFB0-4B51-9089-9B7487C0CC6E' },
              { keyname: 'salt', value: salt },
              { keyname: 'sign_type', value: 'md5' },
              { keyname: 'token', value: '8957e613280b46f7ae8aaea71ed17353' },
              { keyname: 'pageNum', value: 1 },
924286a3   liuqimichale   赤峰签名+混淆
355
              { keyname: 'pageSize', value: 1000 },
d68fc748   liuqimichale   多笔缴纳费用
356
357
358
359
360
361
              { keyname: 'parkState', value: 10 },
              { keyname: 'terminalSource', value: 7 },
              { keyname: 'carNumber', value: _carNumber }
          ];
          var md5sign = jsajax.getsign(sortd);
          var jsondata = {
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
362
              app_id: _app_id,
d68fc748   liuqimichale   多笔缴纳费用
363
364
365
366
367
              deviceInfo: "BC0703A4-AFB0-4B51-9089-9B7487C0CC6E",
              salt: salt,
              sign_type: "md5",
              token: '8957e613280b46f7ae8aaea71ed17353',
              pageNum: 1,
d72ff7ef   liuqimichale   西城 扫码支付 签名
368
              pageSize: 1000,
d68fc748   liuqimichale   多笔缴纳费用
369
370
371
372
373
374
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
419
420
421
422
423
424
425
              parkState: 10,
              terminalSource: 7,
              carNumber: _carNumber,
              sign: md5sign
          }
          console.log('停车记录传参  ' + JSON.stringify(jsondata));
          jsajax.defaultReq(
              mUrl.listServer,
              JSON.stringify(jsondata),
              function (data) {
                  console.log(data.data.dataList)
  
                  var data = data.data.dataList;
                  if (data.length == 0) {
                      $('#tip-title').text('您的停车费用为0元,无须缴费,谢谢!')
                      return
                  } else {
                      fun.listData = data
                      fun.init()// 初始化
                  }
  
              })
  
      }
  }
  fun._initData()
  
  //.........................   Tab 切换
  $('#tab-wrap li').on('click', function () {
      var _index = $(this).index()
      $(this).addClass('active').siblings().removeClass('active')
      $('#tab-main>div').eq(_index).show().siblings().hide()
  })
  
  //.........................   全选
  $('#check-btn').on('click', function () {
      if ($(this).hasClass('checkedActive')) {
          $('#listLen').text('0')
          $('#listMon').text('¥ 0.00')
          $('#arrears-list li').removeClass('active')
          fun.selectLen = 0
          fun.selectedMon = 0
          fun.orderIds = []
          fun.parkCodes = []
      } else {
          $('#listLen').text(fun.outData.length)
          $('#listMon').text('¥ ' + ((fun.allMoney) / 100).toFixed(2))
          $('#arrears-list li').addClass('active')
          fun.selectLen = fun.outData.length
          fun.selectedMon = fun.allMoney
          fun.orderIds = fun.orderArr
          fun.parkCodes = fun.parkCodeArr
      }
      $(this).toggleClass('checkedActive')
  })
  
  //.........................   单个选择操作
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
426
  $('#arrears-list').delegate('li', 'click', function () {
d68fc748   liuqimichale   多笔缴纳费用
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
461
462
463
      var mon = $(this).attr('data-unpayfee')
      var orderid = $(this).attr('data-orderid')
      var parkcode = $(this).attr('data-parkcode')
      if ($(this).hasClass('active')) {
          $('#check-btn').removeClass('checkedActive') //去掉全选
          // 总结现在已经选中了那些
          var _index = fun.orderIds.indexOf(orderid)
          fun.orderIds = fun.orderIds.filter(function (i) {
              return i !== orderid
          })
  
          var _index = fun.parkCodes.indexOf(parkcode)
          fun.parkCodes = fun.parkCodes.filter(function (i) {
              return i !== orderid
          })
          fun.selectLen--
          fun.selectedMon = fun.selectedMon - mon
          $('#listLen').text(fun.selectLen)
          $('#listMon').text('¥ ' + ((fun.selectedMon) / 100).toFixed(2))
      } else {
          fun.orderIds.push(orderid)
          fun.parkCodes.push(parkcode)
          fun.selectLen++
          if (fun.selectLen == fun.outData.length) {
              $('#check-btn').addClass('checkedActive') //全选了
          }
          fun.selectedMon = Number(fun.selectedMon) + Number(mon)
          $('#listLen').text(fun.selectLen)
          $('#listMon').text('¥ ' + ((fun.selectedMon) / 100).toFixed(2))
          //总结选择了那些
  
      }
      $(this).toggleClass('active')
  })
  
  //.........................   本次费用
  $('#pay-wrap').on('click', function () {
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
464
      if (fun.flag) {
4e5f7a9a   liuqimichale   多笔缴纳费用
465
466
          return
      }
d68fc748   liuqimichale   多笔缴纳费用
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
      var carNumber = $(this).attr('carNumber')
      var parkCode = $(this).attr('parkCode')
      var orderId = $(this).attr('orderId')
      fun.getOneorder(carNumber, parkCode, orderId, parkCode)
  })
  
  //.........................   历史欠费
  
  $('#opr-btn').on('click', function () {
  
      if (fun.orderIds.length == 0) {
          return
      } else {
          fun.queryArrearageSta()
      }
  
  })
  
4e5f7a9a   liuqimichale   多笔缴纳费用
485
486
487
  //.........................   免费离场
  
  $(document).on('click', '.out-btn', function () {
4e5f7a9a   liuqimichale   多笔缴纳费用
488
489
490
491
492
      var money = $(this).attr('data-money')
      console.log(money)
      var _orderId = $(this).attr('data-orderId')
  
      var carNumber = $(this).attr('data-carnumber')
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
493
  
4e5f7a9a   liuqimichale   多笔缴纳费用
494
      var parkCode = $(this).attr('data-parkcode')
4e5f7a9a   liuqimichale   多笔缴纳费用
495
496
497
  
      var paySrcType = '101'
  
4e5f7a9a   liuqimichale   多笔缴纳费用
498
499
500
501
502
503
504
505
506
507
      console.log(paySrcType)
      localStorage.setItem('paySrcType', paySrcType)
      localStorage.setItem('parkCode', parkCode)
      $('.dialog-out').show()
      var salt = jsajax.salt(32);
      var token = mUrl.GetToken();
      if (token == null) {
          token = '';
      }
      var jsondata = {
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
508
          app_id: _app_id,
4e5f7a9a   liuqimichale   多笔缴纳费用
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
          deviceInfo: "BC0703A4-AFB0-4B51-9089-9B7487C0CC6E",
          salt: salt,
          sign: getMd5sign(),
          sign_type: "md5",
          //token : token,
  
          //appId:jsajax.appID,
          orderId: _orderId,
          payOrderType: '101',
          terminalSource: '1',
          //parkCode:parkCode,
          // carNumber:carNumber,
  
      }
      jsajax.defaultReq(
          cepath + '/appAccountPay/appApplyParkOut',
          JSON.stringify(jsondata),
          function (data) {
              console.log(data)
4e5f7a9a   liuqimichale   多笔缴纳费用
528
529
530
531
532
533
534
535
              if (data.code == '5005') {
                  getOneorder(carNumber, parkCode, _orderId)
  
              } else {
                  $('.dialog-out').show()
                  // window.location.href = 'zeroout.html'
              }
              // alert(data.message)
4e5f7a9a   liuqimichale   多笔缴纳费用
536
          })
4e5f7a9a   liuqimichale   多笔缴纳费用
537
538
  })
  
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
539
  $('.close-btn').on('click', function () {
4e5f7a9a   liuqimichale   多笔缴纳费用
540
541
542
      $('.dialog-out').hide()
  })
  
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
543
  function getMd5sign() {
4e5f7a9a   liuqimichale   多笔缴纳费用
544
545
546
547
548
549
      var salt = jsajax.salt(32);
      var token = mUrl.GetToken();
      if (token == null) {
          token = '';
      }
      var sortd = [
a0c3e5ba   liuqimichale   赤峰 扫码支付 签名
550
551
552
553
554
          { keyname: 'app_id', value: _app_id },
          { keyname: 'deviceInfo', value: 'BC0703A4-AFB0-4B51-9089-9B7487C0CC6E' },
          { keyname: 'salt', value: salt },
          { keyname: 'sign_type', value: 'md5' },
          { keyname: 'token', value: token }
4e5f7a9a   liuqimichale   多笔缴纳费用
555
556
557
558
559
      ];
      var md5sign = jsajax.getsign(sortd);
      return md5sign;
  
  }
d68fc748   liuqimichale   多笔缴纳费用