Açıklama Yok

appindex.html 2.1KB

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. <link rel="stylesheet" href="layui/css/layui.mobile.css" />
  10. </head>
  11. <body>
  12. <script src="layui/layui.js"></script>
  13. <script src="js/zepto.js"></script>
  14. <script src="Script/Common/huayi.config.js"></script>
  15. <script src="Script/Common/huayi.http.js"></script>
  16. <script type="text/javascript">
  17. var openid = helper.cookies.get("openid");
  18. var usercode = helper.request.queryString("usercode");
  19. var signcode = helper.request.queryString("signcode");
  20. var menucode = helper.request.queryString("menucode");
  21. if (openid && openid.indexOf(usercode) != -1) {
  22. gourl();
  23. }
  24. else if (usercode && signcode) {
  25. $.ajax({
  26. type: "get",
  27. url: huayi.config.callcenter_url + 'WxLogin/GetZWWUser',
  28. async: false,
  29. data: { usercode: usercode, signcode: signcode },
  30. dataType: 'json',
  31. success: function (data) {
  32. if (data.state.toLowerCase() == "success") {
  33. helper.cookies.set("openid", data.data, 7);
  34. if (!helper.cookies.get("openid")) {
  35. window.location.replace("html/error.html?r=" + Math.random());
  36. }
  37. gourl();
  38. }
  39. }
  40. });
  41. }
  42. function gourl() {
  43. switch (menucode.toLowerCase()) {
  44. case "add": window.location.replace("html/mytousu.html?menuCode=WYTS&r=" + Math.random()); break;
  45. case "list": window.location.replace("html/allsuqiu.html?r=" + Math.random()); break;
  46. default: window.location.replace("html/error.html?r=" + Math.random()); break;
  47. }
  48. }
  49. </script>
  50. </body>
  51. </html>