| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <!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()
- }
- }
- });
- }
- else {
- gourl()
- }
- //gourl()
- function gourl()
- {
- switch (menucode)
- {
- case "GRZX": window.location.replace("html/personal.html"); break;
- case "WYZX": window.location.replace("html/mytousu.html?menuCode=WYZX"); break;
- case "WYQZ": window.location.replace("html/mytousu.html?menuCode=WYQZ"); break;
- case "WYTS": window.location.replace("html/mytousu.html?menuCode=WYTS"); break;
- case "WYJY": window.location.replace("html/mytousu.html?menuCode=WYJY"); break;
- case "WYBY": window.location.replace("html/mytousu.html?menuCode=WYBY"); break;
- case "RXJJ": window.location.replace("html/jianJie.html"); break;
- case "SLNR": window.location.replace("html/shouLiCon.html"); break;
- case "SLFS": window.location.replace("html/shouLiWay.html"); break;
- case "ZYSX": window.location.replace("html/zhuYiShiXiang.html"); break;
- case "ZYZS": window.location.replace("html/personalInfo.html"); break;
- default: window.location.replace("html/error.html"); break;
- }
- }
- </script>
- </body>
- </html>
|