Ei kuvausta

index.html 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. var code = helper.request.queryString("code");
  19. var menucode = helper.request.queryString("menucode");
  20. if (!openid) {
  21. $.ajax({
  22. type: "get",
  23. url: huayi.config.callcenter_url + 'WxLogin/GetOpenId',
  24. data: { code: code },
  25. dataType: 'json',
  26. success: function (result) {
  27. if (result.state.toLowerCase() == "success") {
  28. helper.cookies.set("openid", result.data, 7);
  29. gourl()
  30. }
  31. }
  32. });
  33. }
  34. else {
  35. gourl()
  36. }
  37. function gourl()
  38. {
  39. switch (menucode)
  40. {
  41. case "GRZX": window.location.replace("html/personal.html"); break;
  42. case "WYZX": window.location.replace("html/mytousu.html"); break;
  43. // case "WYZX": window.location.replace("html/mytousu.html?menuCode=WYZX"); break;
  44. // case "WYQZ": window.location.replace("html/mytousu.html?menuCode=WYQZ"); break;
  45. // case "WYTS": window.location.replace("html/mytousu.html?menuCode=WYTS"); break;
  46. // case "WYJY": window.location.replace("html/mytousu.html?menuCode=WYJY"); break;
  47. // case "WYBY": window.location.replace("html/mytousu.html?menuCode=WYBY"); break;
  48. case "RXJJ": window.location.replace("html/jianJie.html"); break;
  49. case "SLNR": window.location.replace("html/shouLiCon.html"); break;
  50. case "SLFS": window.location.replace("html/shouLiWay.html"); break;
  51. case "ZYSX": window.location.replace("html/zhuYiShiXiang.html"); break;
  52. default: window.location.replace("html/error.html"); break;
  53. }
  54. }
  55. </script>
  56. </body>
  57. </html>