| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <!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";
- var code = helper.request.queryString("code");
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + '/WxLogin/EditUserInfo',
- data: {
- code: 9979 ,
- mobile:15838110328 ,
- OpenId: openid
- },
- dataType: 'json',
- success: function (result) {
- if (result.state.toLowerCase() == "success") {
- // console.log()
- // helper.cookies.set("openid", result.data, 7);
- // gourl()
- }
- }
- });
- // 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()
- // helper.cookies.set("openid", result.data, 7);
- // gourl()
- // }
- // }
- // });
- // }
- // else {
- // gourl()
- // }
-
- // function gourl()
- // {
- // switch (menucode)
- // {
- // case "SLNR": window.location.replace("html/home.html"); break;
- // // case "GRZX": window.location.replace("html/login.html"); break;
- // // case "WYZX": window.location.replace("html/addWorkOrder.html"); break;
- // // case "RXJJ": window.location.replace("html/workOrdeListr.html"); break;
- // // case "SLFS": window.location.replace("html/gongDanDetail.html"); break;
- // // case "ZYSX": window.location.replace("html/zhuYiShiXiang.html"); break;
- // default: window.location.replace("html/error.html"); break;
- // }
- // }
- </script>
- </body>
- </html>
|