no message
Showing
1 changed file
with
13 additions
and
4 deletions
| ... | @@ -70,12 +70,21 @@ const request = function(req) { | ... | @@ -70,12 +70,21 @@ const request = function(req) { |
| 70 | resolve(data) | 70 | resolve(data) |
| 71 | } else { | 71 | } else { |
| 72 | if (!excludeUrls.includes(req.url)) { | 72 | if (!excludeUrls.includes(req.url)) { |
| 73 | uni.showToast({ | 73 | if(data.msg){ |
| 74 | title: data.msg, | 74 | uni.showModal({ |
| 75 | icon: 'none', | 75 | content: data.msg, |
| 76 | duration: 3000 | 76 | success: function(res) { |
| 77 | |||
| 78 | } | ||
| 77 | }) | 79 | }) |
| 78 | } | 80 | } |
| 81 | uni.hideLoading() | ||
| 82 | // uni.showToast({ | ||
| 83 | // title: data.msg, | ||
| 84 | // icon: 'none', | ||
| 85 | // duration: 3000 | ||
| 86 | // }) | ||
| 87 | } | ||
| 79 | 88 | ||
| 80 | // 登录超时 | 89 | // 登录超时 |
| 81 | if (data.code === 60002 || data.code === 60001) { | 90 | if (data.code === 60002 || data.code === 60001) { | ... | ... |
-
Please register or sign in to post a comment