<!DOCTYPE HTML> <html> <head> <style> .sbtn1{ font-size: 20px; color: #ffffff; padding: 0; border:none; } </style> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>在线订单</title> <script type="text/javascript" src="__JS__/jquery.js"></script> <Script type="text/javascript"> function GetUrlName(name) { var strs = []; var url = decodeURI(window.location.search); //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(1); strs = str.split("&"); for (var i = 0; i < strs.length; i++) { theRequest[strs[i].split("=")[0]] = unescape((strs[i].split("=")[1])); } } return(theRequest[name]); } var validCode=true; function getSms() { if ($("#custName").val() == '' || $("#idNo").val() == '' || $("#phoneNo").val() == '') { alert('参数不能为空'); return ; } if (validCode == false) return ; validCode = false; //获取短信验证码 $.ajax({ type: "POST", url: "/sdk.php/WapPay/shortcut_pay", dataType:'json', data: { 'user_id' : $("#user_id").val(), 'game_id' : $("#game_id").val(), 'custName' : $("#custName").val(), 'cardNo' : $("#cardNo").val(), 'idNo' : $("#idNo").val(), 'phoneNo' : $("#phoneNo").val() }, success:function(res){ // 返回列表数组,构造数据流模块 if (res.status == 1) { var time=60; if (1) { validCode=false; var sms=document.getElementById("btn1"); var t=setInterval(function () { time--; sms.innerText=time+"秒" if (time==0) { clearInterval(t); sms.innerText="获取短信验证码"; juege.inherit=""; validCode=true; } },1000); } } else { alert(res.info); } } }); } var btnpay = false; function sendform() { if (btnpay == true) return false; btnpay = true; var isok = false; if ($("#custName").val() != '' && $("#idNo").val() != '' && $("#phoneNo").val() != '' && $("#smsCode").val() != '') { isok = true; $("#wfsubmit").val("支付中..."); } else { alert("参数有误"); isok = false; } return isok; } </Script> <script type="text/javascript"> </script> <script type="text/javascript" src="__JS__/demo.js"></script> <style type="text/css"> </style> <br> <br> <br> </head> <body > <img src="__IMG__/bag_yellow.png" align="center" style="position:absolute; align:center;width:100%;height:610px;top: -200px;" /> <div class="wfwarp" style=" margin:0 auto;width:708px;height:900px;top: 10px;" > <div style="position:absolute; align:center ;top:0px;" > <br><br><br> <span style=" text-align: left; " ><font size="6" color="#4a4a4a" face="verdana">待支付......</font></span> <br> <br> <br> <span style="float:left;"><font size="5" color="#4a4a4a" face="verdana">订单超过30分钟自动取消,请在30分钟内完成支付</font></span> <br> <br> <br> <br> <div align="center" class="wforderl" style=" width:708px;height:1000px;top: 10px;"> <div class="wfforml" id="wfforml" style=" width:708px;height:1000px;top: 10px;"> <div style=" position: relative; width:708px;height:819px;top: 10px;"> <img src="__IMG__/form_bag1.png" style="width:100%; height:100%" /> <form id="wfform" name="wfform" method="post" action="{:U('WapPay/shortcut_pay')}" target="_parent"> <input type="hidden" name="user_id" id="user_id" value="{$user_id}" /> <input type="hidden" name="game_id" id="game_id" value="{$game_id}" /> <div class="wfbdbox" style=" position: absolute; top:80px; right:5px;"> <label class="wfbdxx" style=" position: absolute;top: 10px;left:-25px;"><font size="5" >姓名:</font></label> <div class="wftextbox" style=" position: absolute;right:5px;"> <input type="text" name="custName" id="custName" style="border:0px; outline: none; background-repeat:no-repeat;background-image:url('__IMG__/input.png') ;width:460px;height:50px;"/><em>*</em> </div> </div> <div class="wfbdbox" style=" position: absolute; top: 180px; right:5px;"> <label class="wfbdxx" style=" position: absolute;top: 10px;left:20px;"><font size="5" >银行卡号:</font></label> <div class="wftextbox" style=" position: absolute;right:5px;"> <input type="text" name="cardNo" id="cardNo" style="border:0px; outline: none; background-repeat:no-repeat;background-image:url('__IMG__/input.png') ;width:460px;height:50px"/><em>*</em> </div> </div> <div class="wfbdbox" style=" position: absolute; top: 280px; right:5px;"> <label class="wfbdxx" style=" position: absolute;top: 10px;left:20px;"><font size="5" >身份证号:</font></label> <div class="wftextbox" style=" position: absolute;right:5px;"> <input type="text" name="idNo" id="idNo" style="border:0px; outline: none; background-repeat:no-repeat;background-image:url('__IMG__/input.png') ;width:460px;height:50px" /><em>*</em> </div> </div> <div class="wfbdbox" style=" position: absolute; top: 380px; right:5px;"> <label class="wfbdxx" style=" position: absolute;top: 10px;left:0px;"><font size="5" >手机号:</font></label> <div class="wftextbox" style=" position: absolute;right:5px;"> <input type="text" name="phoneNo" id="phoneNo" style="border:0px; outline: none; background-repeat:no-repeat;background-image:url('__IMG__/input.png') ;width:460px;height:50px;" /><em>*</em> </div> </div> <div class="wfbdbox" style=" position: absolute; top: 480px; right:5px;"> <label class="wfbdxx" style=" position: absolute;top: 10px;left:0px;" ><font size="5" >验证码:</font></label> <input type="text" name="smsCode" id="smsCode" class="c_code_msg" style="border:0px; outline: none; background-repeat:no-repeat;background-image:url('__IMG__/input2.png') ;width:48%;height:50px;"> <button type="button"class='sbtn1' id="btn1" onClick="getSms()" style="color:#ffffff;outline: none;background:url(__IMG__/anniu.png);position: absolute;right:20px; border-style:none; width:190px;height:50px; background-repeat:no-repeat;background-size: 100% 100%;" >获取短信验证码</button> </div> <div class="wfbdbox" style=" position: absolute; top: 580px; right:5px;"> <label class="wfbdxx" style=" position: absolute;top: 10px;left:20px;"><font size="5" >支付金额:</font></label> <div class="wftextbox"> <span class="rt" style=" position: absolute; top: 0px; right:30px;"><font id="money" size="8" color="#d42008" face="verdana">{$pay_amount}元</font></span> </div> </div> <div class="wfsubbox" style=" position: absolute; top: 880px; right:20px;"> <input onclick="return sendform()" style=" font-size:30px;border:0px; outline: none; background-repeat:no-repeat;color:#000000;background-image:url('__IMG__/submit.png');width:750px;height:100px;" type="submit" name="wfsubmit" id="wfsubmit" value="立即提交订单" /> </div> </form> </div> </div> </div> </div> </div> </html>