|
|
@@ -111,7 +111,7 @@
|
|
111
|
111
|
$('.btns').text('登录中...');
|
|
112
|
112
|
loadIndex = layer.load();
|
|
113
|
113
|
},
|
|
114
|
|
- crossDomain: true == !(document.all),
|
|
|
114
|
+// crossDomain: true == !(document.all),
|
|
115
|
115
|
data: {
|
|
116
|
116
|
username: User,
|
|
117
|
117
|
extensionphone: userSeat,
|
|
|
@@ -121,8 +121,9 @@
|
|
121
|
121
|
layer.close(loadIndex);
|
|
122
|
122
|
/*验证请求*/
|
|
123
|
123
|
if (data.state == "success") {
|
|
124
|
|
- $.cookie("token", data.data.token, { expires: 7 });
|
|
125
|
|
- $.cookie("extno", userSeat, { expires: 7 });
|
|
|
124
|
+ helper.cookies.setday("token", data.data.token, '7');
|
|
|
125
|
+ helper.cookies.setday("extno", userSeat, '7');
|
|
|
126
|
+// $.cookie("extno", userSeat, { expires: 7 });
|
|
126
|
127
|
window.location.href = "index.html";
|
|
127
|
128
|
} else {
|
|
128
|
129
|
layer.msg("登录失败");
|