判断用户不存在
Showing
1 changed file
with
7 additions
and
0 deletions
| ... | @@ -54,6 +54,13 @@ angular.module('myApp') | ... | @@ -54,6 +54,13 @@ angular.module('myApp') |
| 54 | // alert("getUnfinishedOrder") | 54 | // alert("getUnfinishedOrder") |
| 55 | dingdaService.getUnfinishedOrder().success(function(data , status){ | 55 | dingdaService.getUnfinishedOrder().success(function(data , status){ |
| 56 | // alert(JSON.stringify(data)) | 56 | // alert(JSON.stringify(data)) |
| 57 | if(data.meta.code === 303){ | ||
| 58 | layer.open({ | ||
| 59 | content: data.meta.message, | ||
| 60 | time:2 | ||
| 61 | }) | ||
| 62 | localStorage.removeItem('ls.user') | ||
| 63 | } | ||
| 57 | if(data.meta.code === 401) { | 64 | if(data.meta.code === 401) { |
| 58 | layer.open({ | 65 | layer.open({ |
| 59 | content:'登录token失效,请重新登录', | 66 | content:'登录token失效,请重新登录', | ... | ... |
-
Please register or sign in to post a comment