| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <!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="layui/layui.js"></script>
- <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, 7);
- gourl()
- }
- console.log(openid);
- }
-
-
- });
- }
- else {
- gourl()
- }
-
- function gourl()
- {
- switch (menucode)
- {
- case "XXSC": window.location.replace("html/index.html?menuCode=XXSC"); break;//信息上传
- case "XXCL": window.location.replace("html/Wordeal.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;//工单列表
- default: window.location.replace("html/error.html"); break;
- }
- }
- </script>
- </body>
- </html>
|