e8db9094
liuqimichale
欠费列表
|
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
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
339
340
341
342
343
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
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
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
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
|
});
$(document).on('click','.weui-cells',function () {
console.log($(this).attr('data-flag'))
var flag = $(this).attr('data-flag')
if(flag == 0){
}else{
var money = $(this).find('.paymoney').text()
var carNumber = $(this).find('.carNumber').text()
//var parkCode = $(this).find('.parkCode').text()
var orderId = $(this).find('.orderId').text()
var parkCode= $(this).find('.parkCode').text()
// var carNumber = $(this).find('.carNumber').text()
var paySrcType = $(this).find('.paySrcType').text()
if(paySrcType == '欠费'){
paySrcType = 103
}else{
paySrcType = 101
}
localStorage.setItem('paySrcType',paySrcType)
localStorage.setItem('parkCode',parkCode)
getOneorder(carNumber,parkCode,orderId)
}
})
$(document).on('click','.out-btn',function () {
var _this = $(this).parent().parent().parent();
var money = _this.find('.paymoney').text()
console.log(money)
var _orderId = _this.find('.orderId').text()
var carNumber = _this.find('.carNumber').text()
//var parkCode = $(this).find('.parkCode').text()
// var orderId = _this.find('.orderId').text()
var parkCode= _this.find('.parkCode').text()
// var carNumber = $(this).find('.carNumber').text()
var paySrcType = _this.find('.paySrcType').text()
var paySrcType = '101'
// if(paySrcType == ''){
// paySrcType = 103
// }else{
// paySrcType = 101
// }
// alert(paySrcType)
console.log(paySrcType)
localStorage.setItem('paySrcType',paySrcType)
localStorage.setItem('parkCode',parkCode)
var salt = jsajax.salt(32);
var token = mUrl.GetToken();
if (token == null) {
token = '';
}
var jsondata = {
app_id: "0eca8f5373ca4866aec2f8e9d9367104",
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)
if(data.code=='5005'){
getOneorder(carNumber,parkCode,_orderId)
}else{
//$('.dialog-out').show()
window.location.href='zeroout.html'
}
// alert(data.message)
})
})
$('.close-btn').on('click',function () {
$('.dialog-out').hide()
})
//查询单个待支付单费用
function getOneorder(carNumber,parkCode,orderId){
// var salt = jsajax.salt(32);
// var token = mUrl.GetToken();
var salt = jsajax.salt(32);
var token = mUrl.GetToken();
if (token == null) {
token = '';
}
var jsondata = {
app_id: "0eca8f5373ca4866aec2f8e9d9367104",
deviceInfo : "BC0703A4-AFB0-4B51-9089-9B7487C0CC6E",
salt : salt,
sign : getMd5sign(),
sign_type : "md5",
token : token,
appId:jsajax.appID,
orderId:orderId,
terminalSource:'3',
parkCode:parkCode,
carNumber:carNumber,
}
console.log('查询单个的入参 '+JSON.stringify(jsondata)+" 请求的接口"+mUrl.oneCardorder);
jsajax.defaultReq(
mUrl.oneCardorder,
JSON.stringify(jsondata),
function(data){
console.log(data)
console.log('获取单个待支付订单 '+JSON.stringify(data));
if(data.code=='0'){
//setdiv();
setTimeout(function(){
var datas = data.data
console.log(datas)
var discountFee = datas.discountFee;//已优惠
var discountDesc = datas.discountDesc;//已优惠
var parkCode = datas.parkCode;
var no = datas.orderId;//.no;//订单id
var inparktime = datas.inparktime;//.inparktime;//进场时间
var plateno = datas.plateno;//车牌号
var parkName = datas.parkName;//停车场名称
var staytime = datas.staytime;//停车时长
var due = datas.due;//总计费用
var unpaid = datas.unpaid;//待支付
var paid = datas.paid;//实付
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;//已优惠
}
}
//console.log('-------------------------------'+discountType);
//查询到车牌号订单信息
var src = 'home.html?carnum='+plateno
+"&inparktime="+inparktime
+"&parkName="+parkName
+"&staytime="+staytime
+"&due="+due
+"&unpaid="+unpaid
+"&paid="+paid
+"&no="+no
+"&disfee="+discountFee
+"&disdesc="+discountDesc
+'&discountType='+discountType
+'&parkCode='+parkCode
+"&";
console.log(src)
window.location.assign(encodeURI(src))
},100);
}
}
)
}
function getMd5sign()
{
var salt = jsajax.salt(32);
var token = mUrl.GetToken();
if (token == null) {
token = '';
}
var sortd = [
{keyname:'app_id',value:'0eca8f5373ca4866aec2f8e9d9367104'},
{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;
}
|