lyuis hace 7 meses
padre
commit
2a0249e8c0
Se han modificado 2 ficheros con 10 adiciones y 3 borrados
  1. 4 0
      .hbuilderx/launch.json
  2. 6 3
      common/httpRequest.js

+ 4 - 0
.hbuilderx/launch.json

@@ -5,6 +5,10 @@
             "customPlaygroundType" : "local",
             "playground" : "custom",
             "type" : "uni-app:app-android"
+        },
+        {
+            "playground" : "custom",
+            "type" : "uni-app:app-ios"
         }
     ]
 }

+ 6 - 3
common/httpRequest.js

@@ -226,11 +226,12 @@ module.exports = {
 								title: '用户信息失效,请重新登录!',
 								icon: 'none'
 							})
-						}else if (result.data.code !=0&&result.data.msg!='未进入公司') 
+						}else if (result.data.code !=0&&result.data.msg!='未进入公司') {
 							// uni.showToast({
 							// 	title: result.data.msg||'查询失败!',
 							// 	icon: 'none'
 							// })
+							}
 						succ.call(self, result.data)
 					},
 					fail: function(e) {
@@ -248,11 +249,12 @@ module.exports = {
 						"content-type": header
 					},
 					success: function(result) {
-						if (result.data.code !=0&&result.data.msg!='未进入公司')
+						if (result.data.code !=0&&result.data.msg!='未进入公司'){
 							// uni.showToast({
 							// 	title: result.data.msg||'查询失败.',
 							// 	icon: 'none'
 							// })
+						}
 						succ.call(self, result.data)
 					},
 					fail: function(e) {
@@ -291,11 +293,12 @@ module.exports = {
 							title: '用户信息失效,请重新登录!',
 							icon: 'none'
 						})
-					}else if (result.data.code !=0&&result.data.msg!='未进入公司') 
+					}else if (result.data.code !=0&&result.data.msg!='未进入公司') {
 							// uni.showToast({
 							// 	title: result.data.msg||'查询失败?',
 							// 	icon: 'none'
 							// })
+					}
 					succ.call(self, result.data)
 				},
 				fail: function(e) {