diff --git a/css/provinceKey.css b/css/provinceKey.css new file mode 100644 index 0000000..15a77d2 --- /dev/null +++ b/css/provinceKey.css @@ -0,0 +1,87 @@ +/* + songcx + 2018-12-18 +*/ + +.label_province{ + position:absolute; + top:6px; + left:10px; + } + .input_province{ + position:absolute; + text-align:center; + width:26px; + left:8px; + top:8px; + border:none; + outline:0; + font-family:"黑体"; + } + .input_font{ + font-size:18px; + color:#333333; + } + .input_font_plate{ + font-size:14px; + color:#333333; + } + .input_platenumber_base{ + position:absolute; + text-align:center; + width:34px; + top:13px; + border:none; + outline:0; + } + .input_city{ + left:44px; + } + + .label_platenumber{ + font-size:14px; + color:#999; + width:265px; + text-align:center; + margin-top:29px; + border:0; + outline:0; + } + + .input_park{ + font-size:14px; + color:#666; + width:265px; + text-align:center; + border:0; + outline:0; + } + + .label_btntext_confirm{ + position:absolute; + top:12px; + font-size:16px; + width:214px; + left:0; + } + .label_btn_text{ + text-align:center; + color:#FFF; + /* font-weight:bold; */ + } + + .key_province{ + font-size:17px; + position:absolute; + left:2.5px; + top:8px; + border:0; + width:28px; + text-align:center; + font-family:"黑体"; + } + +#id_keyboard_province { + position:absolute; + bottom:0px; +} \ No newline at end of file diff --git a/js/config.js b/js/config.js index 9ac0faa..cc8cecf 100644 --- a/js/config.js +++ b/js/config.js @@ -102,4 +102,27 @@ webAppH5.zeroPayServer = "/appAccountPay/zeroPay"; //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 +function IsWeixinOrAlipay(){ + // + // var ua = window.navigator.userAgent; + // //判断是不是微信 + // if ( ua.indexOf("MicroMessenger") > 0 ) { + // return 4; + // } + // //判断是不是支付宝 + // if (ua.indexOf("Alipayclient") > 0) { + // return 1; + // } + // //哪个都不 + // return "false"; + var clientType = clientBrowserEx(); + if(clientType=='wxPay'){ + return 4 + }else if(clientType=='aliPay'){ + return 1 + }else { + return 1 + } +} + diff --git a/js/list.js b/js/list.js index b3df071..46b5028 100644 --- a/js/list.js +++ b/js/list.js @@ -444,7 +444,8 @@ function getMd5sign() $('.outBtn').on('click',function () { - window.location.href = 'http://wxgzh.renniting.cn/wechatwuxi/Chifeng/Threewf/stoppayment/select.html' + //window.location.href = 'http://wxgzh.renniting.cn/wechatwuxi/Chifeng/Threewf/stoppayment/select.html' + window.location.href = 'http://wxgzh.renniting.cn/wechatwuxi/DEV/PDA-Payment/out.html' }) $('.hiddenBtn').on('click',function () { diff --git a/js/provinceKey.js b/js/provinceKey.js new file mode 100644 index 0000000..22bbbcb --- /dev/null +++ b/js/provinceKey.js @@ -0,0 +1,78 @@ +var provinces = new Array("京", "沪", "浙", "苏", "粤", "鲁", "晋", "冀", + "豫", "川", "渝", "辽", "吉", "黑", "皖", "鄂", + "津", "贵", "云", "桂", "琼", "青", "新", "藏", + "蒙", "宁", "甘", "陕", "闽", "赣", "湘","X"); +function provinceSelect() { + showProvince(); +} +function parkSelect() { + + alert("选择停车场"); +} +function confirm() { + + alert("确定"); +} + +function showProvince() { + var screenWidth = window.screen.width; + //求出列数,向下取整 + var columns = Math.floor((screenWidth - 9) / 42); + //求出行数,向上取整 + var rows = Math.ceil(31 / columns); + //算出按键背景的高度,为每个按键的高度+间隔+上下边距,48为每个按键的高度+距下一个按键的距离 + var key_bg_height = rows * 48 + 16; + var x_space = (screenWidth - 9 - 42 * columns) / (columns); + var start_x = 9 + x_space; + var start_y = 12; + var keyboard_province = document.getElementById("id_keyboard_province"); + keyboard_province.style.position = "absolute";//fixed absolute + keyboard_province.style.bottom = "0px"; + //keyboard_province.style.top = (window.screen.height - key_bg_height) + "px"; + keyboard_province.style.left = 0; + keyboard_province.style.backgroundColor = "#f2f2f2"; + keyboard_province.style.width = "100%"; + keyboard_province.style.height = key_bg_height + "px"; + //keyboard_province.style.display="block"; + keyboard_province.innerHTML = ''; + + for (var i = 0; i < rows; i++) { + for (var j = 0; j < columns; j++) { + var provinceIds = i * columns + j; + if (provinceIds < provinces.length) { + var x = 9 + (j + 1) * x_space + j * 42; + var y = 12 + i * 48; + /* var addHtml = addKeyProvince(x,y,provinceIds); + alert(addHtml); */ + $("#id_keyboard_province").append(addKeyProvince(x, y, provinceIds)); + } + else { + keyboard_province.style.display = "block"; + return; + } + } + } + //var tmpClose = "
X
"; + //$("#id_keyboard_province").append(tmpClose); + +} + +function addKeyProvince(x, y, provinceIds) { + + var addHtml = '
'; + addHtml += ''; + addHtml += ''; + addHtml += '
'; + return addHtml; +} + + +function chooseProvince(province) { + /* alert(province+"======"+provinces[7]); */ + if (province == "X") { + $("#id_keyboard_province").hide(); + } else { + document.getElementById("selProvince").value = province; + $("#id_keyboard_province").hide(); + } +} \ No newline at end of file diff --git a/listnew.html b/listnew.html new file mode 100644 index 0000000..2221e1c --- /dev/null +++ b/listnew.html @@ -0,0 +1,249 @@ + + + + + 列表详情 + + + + + + + + + + + + + + + + + + + + + +
48小时限时补缴优惠
+
+ +
+ + +
+ 申请离场 +
+ +
+
+
+
+
+

您已经成功申请离场

+

期待您的再次光临

+
+
温馨提示:请尽快出场,超过时间将重新计费哦!
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/out.html b/out.html new file mode 100644 index 0000000..bee32cb --- /dev/null +++ b/out.html @@ -0,0 +1,346 @@ + + + + + + + + + + + + + + + + + + + + + 扫码查询出场 + + + + + + + + + +
+ + + + + + + + +