OAuth.html 840 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.0">
  6. <title>Document</title>
  7. </head>
  8. <body>
  9. <div>
  10. <button type="button" class="layui-btn layui-btn-normal" id="OAuth">微信网页授权</button>
  11. </div>
  12. </body>
  13. <script>
  14. const moduleInit = ['tool'];
  15. function gouguInit() {
  16. var form = layui.form, tool = layui.tool, upload = layui.upload;
  17. //刷新二维码
  18. $('#OAuth').click(function(e){
  19. // var loadIndex = layer.msg('请稍等...', {
  20. // icon: 16,
  21. // shade: 0.01
  22. // });;
  23. $.ajax({
  24. url: "/wechat/officialaccount/OAuth",
  25. type: 'get',
  26. // success: function (res) {
  27. // $('#codebox').attr('src',res)
  28. // layer.close(loadIndex)
  29. // }
  30. })
  31. });
  32. }
  33. </script>
  34. </html>