Commit 181ee164 authored by lujunye's avatar lujunye

补充不选商店提示

parent 6e0f4a48
...@@ -207,10 +207,14 @@ class GLAlertTbAddView: UIView,UITableViewDelegate,UITableViewDataSource,GLAlert ...@@ -207,10 +207,14 @@ class GLAlertTbAddView: UIView,UITableViewDelegate,UITableViewDataSource,GLAlert
} }
} }
} }
if shop_id.count == 0 {
HUD.flash(.label("商店不能为空"), delay: 1.2)
return
}
HUD.flash(.progress)
dbtAddContract(["user_token":UserToken as Any,"shop_id":shop_id as Any]) { (data) in dbtAddContract(["user_token":UserToken as Any,"shop_id":shop_id as Any]) { (data) in
self.removeFromSuperview() self.removeFromSuperview()
HUD.hide()
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "haveAdd"), object: "fxsAdd") NotificationCenter.default.post(name: NSNotification.Name(rawValue: "haveAdd"), object: "fxsAdd")
} failture: { (err) in } failture: { (err) in
} }
...@@ -228,9 +232,13 @@ class GLAlertTbAddView: UIView,UITableViewDelegate,UITableViewDataSource,GLAlert ...@@ -228,9 +232,13 @@ class GLAlertTbAddView: UIView,UITableViewDelegate,UITableViewDataSource,GLAlert
} }
} }
} }
if shop_id.count == 0 {
HUD.flash(.label("商店不能为空"), delay: 1.2)
return
}
HUD.flash(.progress)
supAddContract(["user_token":UserToken as Any,"shop_id":shop_id as Any]) { (data) in supAddContract(["user_token":UserToken as Any,"shop_id":shop_id as Any]) { (data) in
HUD.hide()
self.removeFromSuperview() self.removeFromSuperview()
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "haveAdd"), object: "fxsAdd") NotificationCenter.default.post(name: NSNotification.Name(rawValue: "haveAdd"), object: "fxsAdd")
} failture: { (err) in } failture: { (err) in
......
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