Commit b4e983a2 by 施宇

Merge branch 'master' of http://119.23.72.7/shiyu/icsales

parents 854f87ee 1d4d584c
...@@ -302,6 +302,7 @@ ...@@ -302,6 +302,7 @@
IcController.getData(apis.authlogin, 'POST', data.field, function (res) { IcController.getData(apis.authlogin, 'POST', data.field, function (res) {
if (res.err_code === 0) { if (res.err_code === 0) {
//注入token //注入token
...@@ -311,6 +312,8 @@ ...@@ -311,6 +312,8 @@
} else { } else {
$(".error-text").hide();
layer.msg(res.err_msg); layer.msg(res.err_msg);
opt.isClick = false; opt.isClick = false;
......
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
if (res.err_code === 0) { if (res.err_code === 0) {
//注入token //注入token
Util.setCookie('token', res.access_token, 1, cookieHostname); Util.setCookie('token', res.data.access_token, 1, cookieHostname);
window.location.href = home_url + '/homes'; window.location.href = home_url + '/homes';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment