| 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 openid = 'obwtK6JT-bTCeSbtqu4lkw4lIz0o'
- // helper.cookies.set("openid", 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,RedirectUrl:window.location.href
- // },
- // 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 "SLNR":
- window.location.replace("html/home.html");
- break;
- default:
- window.location.replace("html/error.html");
- break;
- }
- }
- </script>
- </body>
- </html>
|