Commit 601c6a5d authored by 刘俊宏's avatar 刘俊宏

同上

parent 916b68bf
...@@ -291,6 +291,10 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -291,6 +291,10 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
cityCart(["user_token":UserToken as Any,"nonce_str":nonce_str as Any,"city_id":city_id as Any], success: { (data) in cityCart(["user_token":UserToken as Any,"nonce_str":nonce_str as Any,"city_id":city_id as Any], success: { (data) in
let model = data as! cityCartModel let model = data as! cityCartModel
if model.data == nil {
HUD.flash(.label("暂无数据"), delay: 1.2)
return
}
self.carModel = model.data self.carModel = model.data
self.carTypesArr.removeAll() self.carTypesArr.removeAll()
for item in model.data!.vehicle_arr! { for item in model.data!.vehicle_arr! {
...@@ -754,7 +758,12 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -754,7 +758,12 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
if adrDatas.count == 0{ if adrDatas.count == 0{
HUD.flash(.progress) HUD.flash(.progress)
cityList(["user_token":UserToken as Any,"nonce_str":nonce_str as Any], success: { (data) in cityList(["user_token":UserToken as Any,"nonce_str":nonce_str as Any], success: { (data) in
let model = data as! cityListModel let model = data as! cityListModel
if model.data == nil {
HUD.flash(.label("暂无数据"), delay: 1.2)
return
}
self.adrDatas.removeAll() self.adrDatas.removeAll()
for item in model.data! { for item in model.data! {
if self.setCityId(name1: item.name!, name2: item.name_en!) { if self.setCityId(name1: item.name!, name2: item.name_en!) {
......
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