Commit 73bcde59 authored by lujunye's avatar lujunye

补充定位判断

parent 50c12a9b
...@@ -126,7 +126,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -126,7 +126,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
if adrArr.count > 1 && dict!["locName"] as! String != "空" { if adrArr.count > 1 && dict!["locName"] as! String != "空" {
let firstDict = adrArr.first let firstDict = adrArr.first
let firstCity = firstDict!["adr"] as! cityListDataModel let firstCity = firstDict!["adr"] as! cityListDataModel
let lastDict = adrArr.last
var addr_info_arr:Array<Any> = [] var addr_info_arr:Array<Any> = []
addr_info_arr.removeAll() addr_info_arr.removeAll()
...@@ -362,8 +361,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -362,8 +361,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
} }
let firstData = adrArr.first! as NSDictionary let firstData = adrArr.first! as NSDictionary
if firstData["locName"] as! String != "空" && adrArr.count > 1 { if firstData["locName"] as! String != "空" && adrArr.count > 1 {
...@@ -377,11 +374,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -377,11 +374,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
} }
let lat_lon_arr = dataChangeString(sender: adrDs) let lat_lon_arr = dataChangeString(sender: adrDs)
// var std_tag_arr = ""
// if isSpecCar {
// std_tag_arr = "带尾板"
// }
let fD = adrArr.first! let fD = adrArr.first!
let cityData = fD["adr"] as! cityListDataModel let cityData = fD["adr"] as! cityListDataModel
let params = ["user_token":UserToken as Any, let params = ["user_token":UserToken as Any,
...@@ -401,7 +393,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -401,7 +393,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
view?.layoutIfNeeded() view?.layoutIfNeeded()
self.hListView.reloadData() self.hListView.reloadData()
return return
}) { (err) in }) { (err) in
...@@ -714,7 +705,14 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -714,7 +705,14 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
@IBAction func selectAction(_ sender: UIButton) { @IBAction func selectAction(_ sender: UIButton) {
if rightBtn == sender { if rightBtn == sender {
hBtnViewH.constant = CGFloat(TabHeight) hBtnViewH.constant = CGFloat(TabHeight)
if locationIsOpen == false {
checkLocation()
return
}
if adrDatas.count == 0{ if adrDatas.count == 0{
HUD.flash(.progress) HUD.flash(.progress)
cityList(["user_token":UserToken as Any,"nonce_str":String.randomStr(len: 30) as Any], success: { (data) in cityList(["user_token":UserToken as Any,"nonce_str":String.randomStr(len: 30) as Any], success: { (data) 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