|
|
@@ -111,6 +111,36 @@
|
|
111
|
111
|
$("zx_fj").val($.cookie("fj"));
|
|
112
|
112
|
$(".zx_user").val($.cookie("user"));
|
|
113
|
113
|
}
|
|
|
114
|
+ if (!$.cookie("callcenter_url")) {
|
|
|
115
|
+ $.ajax({
|
|
|
116
|
+ type:"get",
|
|
|
117
|
+ // url:"http://k100.800100.net/SysConfig/GetConfig",
|
|
|
118
|
+ url: huayi.config.callcenter_url + "Login/GetAuAuthDate",
|
|
|
119
|
+ async:false,
|
|
|
120
|
+ success:function(res){
|
|
|
121
|
+ var res=$.parseJSON(res)
|
|
|
122
|
+ if(res.state== "success") {
|
|
|
123
|
+ debugger
|
|
|
124
|
+ $.cookie("callcenter_url", escape(res.data.callcenter_url));
|
|
|
125
|
+ $.cookie("indextime", res.data.indextime);
|
|
|
126
|
+ $.cookie("menuworktime", res.data.menuworktime);
|
|
|
127
|
+ $.cookie("messageTime", res.data.messageTime);
|
|
|
128
|
+ $.cookie("socket_ip", res.data.socket_ip);
|
|
|
129
|
+ $.cookie("socket_port", res.data.socket_port);
|
|
|
130
|
+ if ($.cookie("token") == null) {
|
|
|
131
|
+ window.location.href = "login.html";
|
|
|
132
|
+ }else{
|
|
|
133
|
+ window.location.href = "home.html";
|
|
|
134
|
+ }
|
|
|
135
|
+ } else {
|
|
|
136
|
+ layer.confirm(res.message, {
|
|
|
137
|
+ icon: 2,
|
|
|
138
|
+ btn: ['确定']
|
|
|
139
|
+ });
|
|
|
140
|
+ }
|
|
|
141
|
+ }
|
|
|
142
|
+ });
|
|
|
143
|
+ }
|
|
114
|
144
|
//键盘登录事件
|
|
115
|
145
|
$('input').bind('keypress', function(event) {
|
|
116
|
146
|
if(event.keyCode == "13") {
|