Commit 5d0a589f authored by Steven杜宇's avatar Steven杜宇

// 网络不良时的loading

parent 7b143ab2
...@@ -46,6 +46,7 @@ class YHEducationRequestViewModel { ...@@ -46,6 +46,7 @@ class YHEducationRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
YHHUD.hide()
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
...@@ -80,6 +81,7 @@ class YHEducationRequestViewModel { ...@@ -80,6 +81,7 @@ class YHEducationRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
YHHUD.hide()
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
...@@ -109,6 +111,9 @@ class YHEducationRequestViewModel { ...@@ -109,6 +111,9 @@ class YHEducationRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
if !isSilent {
YHHUD.hide()
}
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
...@@ -134,6 +139,7 @@ class YHEducationRequestViewModel { ...@@ -134,6 +139,7 @@ class YHEducationRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
YHHUD.hide()
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
...@@ -159,6 +165,7 @@ class YHEducationRequestViewModel { ...@@ -159,6 +165,7 @@ class YHEducationRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
YHHUD.hide()
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
...@@ -184,6 +191,7 @@ class YHEducationRequestViewModel { ...@@ -184,6 +191,7 @@ class YHEducationRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
YHHUD.hide()
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
...@@ -225,6 +233,7 @@ class YHEducationRequestViewModel { ...@@ -225,6 +233,7 @@ class YHEducationRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
YHHUD.hide()
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
...@@ -254,6 +263,9 @@ class YHEducationRequestViewModel { ...@@ -254,6 +263,9 @@ class YHEducationRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
if !isSilent {
YHHUD.hide()
}
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
...@@ -289,6 +301,7 @@ class YHEducationRequestViewModel { ...@@ -289,6 +301,7 @@ class YHEducationRequestViewModel {
} failBlock: { err in } failBlock: { err in
YHHUD.hide()
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
......
...@@ -37,6 +37,7 @@ class YHFamilyRequestViewModel { ...@@ -37,6 +37,7 @@ class YHFamilyRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
YHHUD.hide()
callBackBlock(nil, err) callBackBlock(nil, err)
} }
} }
...@@ -63,6 +64,9 @@ class YHFamilyRequestViewModel { ...@@ -63,6 +64,9 @@ class YHFamilyRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
if isShowLoading {
YHHUD.hide()
}
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
...@@ -83,6 +87,7 @@ class YHFamilyRequestViewModel { ...@@ -83,6 +87,7 @@ class YHFamilyRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
YHHUD.hide()
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
...@@ -103,6 +108,7 @@ class YHFamilyRequestViewModel { ...@@ -103,6 +108,7 @@ class YHFamilyRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
YHHUD.hide()
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
...@@ -136,6 +142,7 @@ class YHFamilyRequestViewModel { ...@@ -136,6 +142,7 @@ class YHFamilyRequestViewModel {
} }
} failBlock: { err in } failBlock: { err in
YHHUD.hide()
callBackBlock(nil, err) callBackBlock(nil, err)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment