63c3a69c by ex

判断用户不存在

1 parent bbd253cc
...@@ -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失效,请重新登录',
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!