Blame view

js/config.js 4.31 KB
f9cd3bb6   liuqimichale   初始化项目
1
2
3
4
5
6
7
  /*
  @songcxa
  @2018-12-14
  @移动支付配置[配置项除ip地址外勿动]
  */
  window.webAppH5 = {};
  
f9cd3bb6   liuqimichale   初始化项目
8
  /*服务器地址*/
afc9e308   liuqimichale   银联支付
9
  // var webAppRoot = "http://pay.service.huangshiparking.com";
f9cd3bb6   liuqimichale   初始化项目
10
  //test 测试环境
afc9e308   liuqimichale   银联支付
11
  var webAppRoot = "http://39.98.54.240:8090";
f9cd3bb6   liuqimichale   初始化项目
12
  //微信支付结果回调地址
4c2e8331   liuqimichale   黄石扫码支付
13
  var webAppPayResult = "http://wxgzh.huangshiparking.com/HSwechat/PDA-Payment/wxpayResult.html";
f9cd3bb6   liuqimichale   初始化项目
14
15
16
  
  /*公共参数*/
  webAppH5.comParams = {
9931d316   liuqimichale   格式化代码
17
18
19
20
21
22
    app_id: 'wx945eccc8163fd75b',
    salt: 2,
    deviceInfo: 3,
    sign_type: 'md5',
    sign: 4,
    token: '666'
f9cd3bb6   liuqimichale   初始化项目
23
24
25
26
  }
  
  //小票扫码支付参数
  webAppH5.dynCode = {//卫岗固定参数
9931d316   liuqimichale   格式化代码
27
28
29
    direction: 1,
    codeType: 1,
    channelId: "小票二维码"
f9cd3bb6   liuqimichale   初始化项目
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  }
  
  /*出、入场接口*/
  webAppH5.comServer = "/keyTopQrCodeInOutPark/noCarQRcodeInOutPark";
  /*优惠券*/
  webAppH5.discountServer = "/keyTopQrCodeInOutPark/useCouponQueryFee";
  //缴费-微信
  webAppH5.wxPayServer = "/weixinpay/publicUnifiedOrder";
  
  //缴费-微信
  webAppH5.wxGetOpenIdServer = "/weixinPublicPay/getOpenIdByCode";
  
  //缴费-支付宝
  webAppH5.aliPayServer = "/alipay/aliH5Pay";
  
  //h5-支付兑换优惠券
  webAppH5.useCouponQueryFee = "/keyTopQrCodeInOutPark/useCouponQueryFee";
  
  /*0元支付*/
  webAppH5.zeroPayServer = "/appAccountPay/zeroPay";
  
afc9e308   liuqimichale   银联支付
51
52
53
  // 新接口银联
  webAppH5.doPay = "/unionpay/doPay";
  
f9cd3bb6   liuqimichale   初始化项目
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
  /*入场参数*/
  //测试地址
  //http://localhost:18879/page/in.html?plNo=P11011700C&parkingId=1&channelId=172198242&direction=0&codeType=0&expireDate=expireDate&extendData=extendData
  //channelId=172198242 [入场设备号]
  //webAppH5.appIn = {
  //    /*入场设备号*/
  //    channelId: '172198242',
  //    /*入:0,1:出*/
  //    direction: 0
  //}
  
  /*出场参数*/
  //测试地址
  //http://localhost:18879/page/out.html?plNo=P11011700C&parkingId=1&channelId=172198243&direction=1&codeType=0&expireDate=expireDate&extendData=extendData
  //channelId=172198243 [出场设备号]
  //direction=0 [通行方向 入:0,1:出 必填]
  //webAppH5.appOut = {
  //    /*出场设备号*/
  //    channelId: '172198243',
  //    /*入:0,1:出*/
  //    direction:1
  //}
  
  //小票二维码出场
  //http://39.98.54.240/codepay/index.html?appid=0&lotId=1&payConfigId=2&receiptNo=3
  //http://localhost:1260/codepay/index.html?appid=0&lotId=1&payConfigId=2&receiptNo=3
  
f9cd3bb6   liuqimichale   初始化项目
81
82
83
84
85
86
87
88
  //首页
  //进出场标识>>>>>>>>>>direction=0 [通行方向 入:0,1:出 必填]
  //测试服务器进场首页
  //http://39.98.54.240/codepay/index.html?plNo=P11011700C&parkingId=1&channelId=172198242&direction=0&codeType=0&expireDate=expireDate&extendData=extendData
  
  //测试服务器出场首页
  //http://39.98.54.240/codepay/index.html?plNo=P11011700C&parkingId=1&channelId=172198243&direction=1&codeType=0&expireDate=expireDate&extendData=extendData
  
f9cd3bb6   liuqimichale   初始化项目
89
90
91
92
93
  //测试支付[任你停测试-首页-停车记录(停车列表车牌号,再找到对应停车场编号)]
  //http://test.renniting.cn/parking/admin/SubMenus/allparkrecords.html
  
  //http://localhost:1260/pay.html?orderId=101526715300086198272&parkName=%E9%9D%99%E9%9B%85%E5%9C%B0%E4%B8%8A&parkCode=B1504020C7&inparktime=2018-12-24%2010%3A58%3A24&outtime=2018-12-24%2011%3A05%3A10&staytime=420&due=70&paid=0&orderTotalFee=70&orderFee=7&discountFee=63&plateno=%E8%92%99DTK366&outPayOrderNo=B1504020C720181224110510813DTK366-172192102&appOrderTimeout=%E8%AF%B7%E5%9C%A8%E6%94%AF%E4%BB%98%E5%AE%8C%E6%88%9010%E5%88%86%E9%92%9F%E5%86%85%E5%87%BA%E5%9C%BA%EF%BC%8C%E5%A6%82%E8%B6%85%E6%97%B6%E6%9C%AA%E5%87%BA%E5%9C%BA%EF%BC%8C%E4%BC%9A%E7%BB%A7%E7%BB%AD%E8%AE%A1%E8%B4%B9%E3%80%82&discountDesc=1%E6%8A%98%E4%BC%98%E6%83%A0&queryOrderInfo=%7B%22app_id%22%3A%221%22%2C%22carNumber%22%3A%22%E8%92%99DTK366%22%2C%22channelId%22%3A%22172192102%22%2C%22codeType%22%3A0%2C%22deviceInfo%22%3A%223%22%2C%22direction%22%3A1%2C%22parkingId%22%3A%22B1504020C7%22%2C%22plNo%22%3A%22B1504020C7%22%2C%22salt%22%3A%222%22%2C%22sign%22%3A%224%22%2C%22sign_type%22%3A%22md5%22%2C%22terminalSource%22%3A%227%22%2C%22token%22%3A%22666%22%7D&needPay=true
  
9931d316   liuqimichale   格式化代码
94
  function IsWeixinOrAlipay() {
0a2d5088   liuqimichale   不是我的车牌跳转
95
96
97
98
99
100
101
102
103
104
105
106
107
    //
    //   var ua = window.navigator.userAgent;
    //   //判断是不是微信
    //   if ( ua.indexOf("MicroMessenger") > 0 ) {
    //     return 4;
    //   }
    //   //判断是不是支付宝
    //   if (ua.indexOf("Alipayclient") > 0) {
    //   return 1;
    // }
    // //哪个都不
    // return "false";
    var clientType = clientBrowserEx();
9931d316   liuqimichale   格式化代码
108
    if (clientType == 'wxPay') {
0a2d5088   liuqimichale   不是我的车牌跳转
109
      return 4
9931d316   liuqimichale   格式化代码
110
111
112
113
    } else if (clientType == 'aliPay') {
      return 1
    } else {
      return 1
0a2d5088   liuqimichale   不是我的车牌跳转
114
115
    }
  }
f9cd3bb6   liuqimichale   初始化项目