dfe95d13 by fuenxin

add login status

1 parent be407d08
......@@ -22,6 +22,7 @@ angular.module('myApp')
if (data.meta.code == 200) {
data.data.userName = res.data.mobile;
globalService.saveData('user', data.data);
$scope.userinfo.loginState = true;
layer.open({
content: '登录成功',
time: 1
......@@ -60,6 +61,7 @@ angular.module('myApp')
localStorage.removeItem('ls.user')
loginUrlCode()
} else {
$scope.userinfo.loginState = true;
dingdaService.getUnfinishedOrder().success(function (data, status) {
if (data.meta.code === 303) {
layer.open({
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!