Açıklama Yok

index.html 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. $.ajax({
  20. type: "get",
  21. url: huayi.config.callcenter_url + '/WxLogin/EditUserInfo',
  22. data: {
  23. code: 9979 ,
  24. mobile:15838110328 ,
  25. OpenId: openid
  26. },
  27. dataType: 'json',
  28. success: function (result) {
  29. if (result.state.toLowerCase() == "success") {
  30. // console.log()
  31. // helper.cookies.set("openid", result.data, 7);
  32. // gourl()
  33. }
  34. }
  35. });
  36. // var menucode = helper.request.queryString("menucode");
  37. // if (!openid) {
  38. // $.ajax({
  39. // type: "get",
  40. // url: huayi.config.callcenter_url + 'WxLogin/GetOpenId',
  41. // data: { code: code },
  42. // dataType: 'json',
  43. // success: function (result) {
  44. // if (result.state.toLowerCase() == "success") {
  45. // console.log()
  46. // helper.cookies.set("openid", result.data, 7);
  47. // gourl()
  48. // }
  49. // }
  50. // });
  51. // }
  52. // else {
  53. // gourl()
  54. // }
  55. // function gourl()
  56. // {
  57. // switch (menucode)
  58. // {
  59. // case "SLNR": window.location.replace("html/home.html"); break;
  60. // // case "GRZX": window.location.replace("html/login.html"); break;
  61. // // case "WYZX": window.location.replace("html/addWorkOrder.html"); break;
  62. // // case "RXJJ": window.location.replace("html/workOrdeListr.html"); break;
  63. // // case "SLFS": window.location.replace("html/gongDanDetail.html"); break;
  64. // // case "ZYSX": window.location.replace("html/zhuYiShiXiang.html"); break;
  65. // default: window.location.replace("html/error.html"); break;
  66. // }
  67. // }
  68. </script>
  69. </body>
  70. </html>