ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~ <!DOCTYPE html> <html lang="zh"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>收银台</title> <script src="/static/xinpay/smpayimg/hm.js"></script> <link href="/static/xinpay/smpayimg/common.css" rel="stylesheet"> <link href="/static/xinpay/smpayimg/index.css" rel="stylesheet"> <script type="text/javascript" src="/static/xinpay/smpayimg/jquery-1.11.1.js"></script> </head> <body class="wx-pay" rlt="1"> <div class="head"> <div class="main"> <div class="logo-area"> <h2>收银台</h2> </div> </div> </div> <div class="main"> <div class="pay-content"> <p> <strong>请您及时付款,以便订单尽快处理!</strong> </p> <p class="order-id">支付金额:<span id="PaysumOfMoney">{php} echo number_format($data['total_fee']/100,2); {/php}</span> 元</p> <ul class="payInfor"> <li id="PayOrderId">订单编号:{php} echo $data['merchant_trade_no']; {/php}</li> </ul> <div class="wx-pay-cont"> <div class="wx-ecode fl"> <h1 style="font-size: 2em;font-family: '楷体';">请打开<span style="color: #f58a0c;font-weight: bold;">{php} echo $pay_type; {/php}</span>客户端扫一扫支付</h1> <p> <img id="wxerweima" src="{php} echo $re['pay_info']; {/php}" alt="" width="301" >二维码有效时长为2小时,请尽快支付 </p> </div> </div> </div> </div> <input type="hidden" id="return" value="{php} echo $data['return_url'];{/php}"> <input type="hidden" id="out_trade_no" value="{php} echo $data['merchant_trade_no'];{/php}"> </body></html> <script type="text/javascript"> var interval = setInterval(function(){ $.ajax({ type:'post', url:"{:url('api/xinpay/query')}", dataType:'json', data:{out_trade_no:$('#out_trade_no').val()}, success:function(data){ console.log(data); if (data.status==1) { //alert('支付成功'); location.href=$('#return').val(); } } }) }, 3000); </script> ~~~