You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.5 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/>
  2. <title>充值-支付</title><meta name="keywords" content="关键词"><meta name="description" content="描述"><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
  3. <link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet">
  4. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script>
  5. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script>
  6. <script>
  7. //调用微信JS api 支付
  8. function jsApiCall()
  9. {
  10. WeixinJSBridge.invoke(
  11. 'getBrandWCPayRequest',
  12. <?php echo $jsApiParameters; ?>,
  13. function(res){
  14. WeixinJSBridge.log(res.err_msg);
  15. //alert(res.err_code+res.err_desc+res.err_msg);
  16. if(res.err_msg=='get_brand_wcpay_request:ok')
  17. {
  18. alert('支付成功!');
  19. }
  20. else
  21. {
  22. alert('支付失败!');
  23. }
  24. setTimeout("location.href = '<?php echo $returnUrl; ?>'",2000);
  25. }
  26. );
  27. }
  28. function callpay()
  29. {
  30. if (typeof WeixinJSBridge == "undefined"){
  31. if( document.addEventListener ){
  32. document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
  33. }else if (document.attachEvent){
  34. document.attachEvent('WeixinJSBridgeReady', jsApiCall);
  35. document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
  36. }
  37. }else{
  38. jsApiCall();
  39. }
  40. }
  41. </script>
  42. </head><body onload="callpay();">
  43. <div class="classreturn loginsignup">
  44. <div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div>
  45. <div class="ds-in-bl tit center"><span>充值</span></div>
  46. </div>
  47. <style>
  48. .bottoma{display:block;font-size:18px;padding:10px;border-radius:2px;}
  49. </style>
  50. <div class="floor">
  51. <div style="margin:10px;text-align:left;">
  52. <p>订单已于 <b style="color:#fea700;"><?php echo $post['created_at']; ?></b> 提交成功,请您尽快付款!</p>
  53. 订单号:<?php echo $post['id']; ?><br>
  54. 应付金额:<strong style="color:#D03737;"><?php echo $post['money']; ?></strong> 元<br><br>
  55. <p style="color:#999;font-size:.875em">请您在提交订单后30分钟内完成支付,否则订单会自动取消。</p>
  56. </div>
  57. <a style="margin:0 10px 10px 10px;background-color:#1aad19;text-align:center;color:#fff;border:1px solid #179e16;" class="bottoma" href="javascript:callpay();">去支付</a>
  58. </div>
  59. </body></html>