pay.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>运送支付</title>
  8. <link rel="stylesheet" href="/static/mobile/css/weui.min.css">
  9. <style>
  10. .weui-icon_msg {
  11. width: 128px;
  12. height: 128px;
  13. }
  14. .weui-icon-success {
  15. font-size: 23px;
  16. color: #148d8f;
  17. }
  18. </style>
  19. <script src="/static/jquery-1.11.3.min.js"></script>
  20. </head>
  21. <body ontouchstart="">
  22. {empty name="$error"}
  23. <div id="qrcode22" style="text-align: center;padding-top: 10%">
  24. <img style="width: 80%;" src="{:url('admin/Qrcode/qrcode',['type'=>1,'code'=>$info['url']])}" alt="支付二维码">
  25. </div>
  26. {/empty}
  27. <div class="weui-msg" style="display: none" id="s1">
  28. <div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
  29. <div class="weui-msg__text-area">
  30. <h2 class="weui-msg__title">支付成功</h2>
  31. </div>
  32. <div class="weui-msg__extra-area">
  33. </div>
  34. </div>
  35. {notempty name="$error"}
  36. <div class="weui-msg" id="s2">
  37. <div class="weui-msg__icon-area"><i class="weui-icon-warn weui-icon_msg"></i></div>
  38. <div class="weui-msg__text-area">
  39. <h2 class="weui-msg__title">{$error}</h2>
  40. </div>
  41. <div class="weui-msg__extra-area">
  42. </div>
  43. </div>
  44. {/notempty}
  45. <br>
  46. <br>
  47. <div class="weui-footer weui-footer_fixed-bottom">
  48. <p class="weui-footer__links">
  49. <a href="javascript:;" class="weui-footer__link">病人运送支付</a>
  50. </p>
  51. <p class="weui-footer__text">Copyright © 霸洁云</p>
  52. </div>
  53. <script>
  54. {empty name="$error"}
  55. var timer = null;
  56. var url = '{:url("Index/checkPay",["id"=>$info["id"]])}';
  57. var id = {$info["id"]};
  58. $(function () {
  59. timer = setInterval(function () {
  60. $.post(url,{id:id},function (res) {
  61. if(res.code == 1){
  62. $('#s1').show();
  63. $('#qrcode22').hide();
  64. }
  65. });
  66. },2000);
  67. });
  68. {/empty}
  69. </script>
  70. </body>
  71. </html>