| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <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") {
- //console.log(result.data);
- helper.cookies.set("openid", result.data.openid, 7);
- helper.cookies.set("usercode", result.data.usercode, 7);
- var UserCode = result.data.usercode;
- //console.log(result);
- gourl();
- }
- }
- });
- } else {
- gourl()
- }
- function gourl() {
- switch(menucode) {
- case "XXSC":
- window.location.replace("html/index.html");
- break; //微留言 》》 信息发布(留言板)
- case "GDLB":
- window.location.replace("html/WorkSearch.html");
- break; //微留言 》》 信息查询
- case "WJDC":
- window.location.replace("html/questionnaire.html");
- break; //微调查》》调查问卷
- case "XXCL":
- window.location.replace("html/WorkCL.html");
- break; //微调查》》管理员》》信息处理
- case "GLZX":
- window.location.replace("html/managementCenter.html");
- break; //微调查》》管理员》》管理中心
- case "SJTJ":
- window.location.replace("html/Census.html");
- break; //微调查》》管理员》》数据统计
- case "GDTZ":
- window.location.replace("/html/WorkAnn.html");
- break; //工公告通知
- case "GRZX":
- window.location.replace("signout.html");
- break; //微调查》管理员》个人中心
- default:
- window.location.replace("html/error.html");
- break;
- }
- }
- </script>
- </body>
- </html>
|