wechat_pay_qrcode.html 830 B

12345678910111213141516171819202122232425262728
  1. {template 'header'}
  2. <html>
  3. <head lang="en">
  4. <meta charset="UTF-8">
  5. <title></title>
  6. </head>
  7. <body>
  8. <image src="{$picture}?time={php echo time()}" style="margin: 2% 2% 2% 25%;width: 250px;height: 250px;"></image>
  9. <br/>
  10. <span style="margin: 2% 2% 2% 25%;width: 250px;height: 250px;">
  11. 打开手机微信,扫描二维码继续支付。
  12. </span>
  13. </body>
  14. <script>
  15. get_result = function() {
  16. $.post("{php echo $this->createWebUrl('Pay', array('direct' => 1, 'operate' => 'check_pay_result'))}", {'orderid' : '{$order['id']}'}, function(data) {
  17. data = $.parseJSON(data);
  18. if (data.message.errno == 1) {
  19. alert('支付成功!');
  20. location.href="{php echo $this->createWebUrl('Orders', array('direct' => 1))}";
  21. return false;
  22. }
  23. });
  24. }
  25. setInterval('get_result()', 4000);
  26. </script>
  27. </html>
  28. {template 'common/footer'}