| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title></title>
- <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- </head>
- <body>
- <script src="js/zepto.js"></script>
- <script src="Script/Common/huayi.config.js"></script>
- <script src="Script/Common/huayi.http.js"></script>
- <script type="text/javascript">
- var openid = helper.cookies.get("openid");
- var code = helper.request.queryString("code");
- var menucode = helper.request.queryString("menucode");
- if(!openid) {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + 'WxLogin/GetOpenId',
- data: {
- code: code
- },
- dataType: 'json',
- success: function(result) {
- if(result.state.toLowerCase() == "success") {
- helper.cookies.set("openid", result.data.openid, 7);
- helper.cookies.set("usercode", result.data.usercode, 7);
- var UserCode = result.data.usercode;
- gourl();
- }
- }
- });
- } else {
- gourl();
- }
- function gourl() {
- switch(menucode) {
- case "XXSC":
- window.location.replace("html/index.html?menuCode=XXSC");
- break; //信息管理 》》 信息发布
- case "XXCL":
- window.location.replace("html/WorkCL.html?menuCode=XXCL");
- break; //高级管理》》信息处理
- case "SJTJ":
- window.location.replace("html/Census.html?menuCode=SJTJ");
- break; //高级管理》》数据统计
- case "GDLB":
- window.location.replace("html/WorkList.html?menuCode=GDLB");
- break; //信息管理 》》 信息工单列表
- case "GRZX":
- window.location.replace("signout.html?menuCode=GRZX");
- break; //个人中心
- case "GDTZ":
- window.location.replace("html/WorkAnn.html?menuCode=GDTZ");
- break; //工公告通知
- default:
- window.location.replace("html/error.html");
- break;
- }
- }
- </script>
- </body>
- </html>
|