Brak opisu

index.html 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>微信首页</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. </head>
  10. <body>
  11. <script src="layui/layui.js"></script>
  12. <script src="js/zepto.js"></script>
  13. <script src="Script/Common/huayi.config.js"></script>
  14. <script src="Script/Common/huayi.http.js"></script>
  15. <script type="text/javascript">
  16. var openid = helper.cookies.get("openid");
  17. // var openid = 'obwtK6JT-bTCeSbtqu4lkw4lIz0o'
  18. // helper.cookies.set("openid", openid);
  19. var code = helper.request.queryString("code");
  20. var menucode = helper.request.queryString("menucode");
  21. // if(!openid) {
  22. // $.ajax({
  23. // type: "get",
  24. // url: huayi.config.callcenter_url + 'WxLogin/GetOpenId',
  25. // data: {
  26. // code: code,RedirectUrl:window.location.href
  27. // },
  28. // dataType: 'json',
  29. // success: function(result) {
  30. // if(result.state.toLowerCase() == "success") {
  31. // helper.cookies.set("openid", result.data, 7);
  32. // gourl()
  33. // }
  34. // }
  35. // });
  36. // } else {
  37. // gourl()
  38. // }
  39. gourl()
  40. function gourl() {
  41. switch(menucode) {
  42. case "SLNR":
  43. window.location.replace("html/home.html");
  44. break;
  45. default:
  46. window.location.replace("html/error.html");
  47. break;
  48. }
  49. }
  50. </script>
  51. </body>
  52. </html>