Răsfoiți Sursa

Merge branch 'master' of https://git.nanodreamtech.com/Boss/yizhizan-h5

wkw 7 luni în urmă
părinte
comite
ed15a13d8c
1 a modificat fișierele cu 15 adăugiri și 2 ștergeri
  1. 15 2
      common/httpRequest.js

+ 15 - 2
common/httpRequest.js

@@ -226,7 +226,11 @@ module.exports = {
 								title: '用户信息失效,请重新登录!',
 								icon: 'none'
 							})
-						}
+						}else if (result.data.code !=0) 
+							uni.showToast({
+								title: result.data.msg||'查询失败',
+								icon: 'none'
+							})
 						succ.call(self, result.data)
 					},
 					fail: function(e) {
@@ -244,6 +248,11 @@ module.exports = {
 						"content-type": header
 					},
 					success: function(result) {
+						if (result.data.code !=0)
+							uni.showToast({
+								title: result.data.msg||'查询失败',
+								icon: 'none'
+							})
 						succ.call(self, result.data)
 					},
 					fail: function(e) {
@@ -282,7 +291,11 @@ module.exports = {
 							title: '用户信息失效,请重新登录!',
 							icon: 'none'
 						})
-					}
+					}else if (result.data.code !=0) 
+							uni.showToast({
+								title: result.data.msg||'查询失败',
+								icon: 'none'
+							})
 					succ.call(self, result.data)
 				},
 				fail: function(e) {