Commit f12d1811 authored by lujunye's avatar lujunye

修复选地址bug

parent 7c601074
...@@ -36,10 +36,10 @@ class LogisticalSelectView: UIView { ...@@ -36,10 +36,10 @@ class LogisticalSelectView: UIView {
tempArr.forEach { (item) in tempArr.forEach { (item) in
item.removeFromSuperview() item.removeFromSuperview()
} }
//有京东 // 有京东
selectBgHeight.constant = CGFloat(265) // selectBgHeight.constant = CGFloat(265)
//没京东 //没京东
// selectBgHeight.constant = CGFloat(265 - 68) selectBgHeight.constant = CGFloat(265 - 68)
return return
} }
for i in 0..<fuTitleArr.count { for i in 0..<fuTitleArr.count {
...@@ -54,10 +54,10 @@ class LogisticalSelectView: UIView { ...@@ -54,10 +54,10 @@ class LogisticalSelectView: UIView {
} }
tempArr.append(lbl) tempArr.append(lbl)
} }
//有京东 // 有京东
selectBgHeight.constant = CGFloat(265 + fuTitleArr.count * 19) // selectBgHeight.constant = CGFloat(265 + fuTitleArr.count * 19)
//没京东 //没京东
// selectBgHeight.constant = CGFloat(265 + fuTitleArr.count * 19 - 68) selectBgHeight.constant = CGFloat(265 + fuTitleArr.count * 19 - 68)
} }
} }
...@@ -109,8 +109,8 @@ class LogisticalSelectView: UIView { ...@@ -109,8 +109,8 @@ class LogisticalSelectView: UIView {
func setJD(){ func setJD(){
// jdBgViewH.constant = 0 jdBgViewH.constant = 0
// jdBgView.isHidden = true jdBgView.isHidden = true
} }
//初始化时将xib中的view添加进来 //初始化时将xib中的view添加进来
......
...@@ -239,6 +239,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo ...@@ -239,6 +239,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
isMove = false isMove = false
adrName = model.name! adrName = model.name!
addressDetailTF.text! = ""
detailAdr = model.address! detailAdr = model.address!
mapView.setCenter(CLLocationCoordinate2DMake(locData.latitude,locData.longitude), animated: false) mapView.setCenter(CLLocationCoordinate2DMake(locData.latitude,locData.longitude), animated: false)
searchList.isHidden = true searchList.isHidden = true
...@@ -260,6 +261,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo ...@@ -260,6 +261,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
isHistory = true isHistory = true
isMove = false isMove = false
adrName = poiData!.name! adrName = poiData!.name!
addressDetailTF.text! = ""
detailAdr = poiData!.address! detailAdr = poiData!.address!
let locD = JZLocationConverter.wgs84(toGcj02: CLLocationCoordinate2D(latitude: locData["lat"] as! CLLocationDegrees, longitude: locData["lon"] as! CLLocationDegrees)) let locD = JZLocationConverter.wgs84(toGcj02: CLLocationCoordinate2D(latitude: locData["lat"] as! CLLocationDegrees, longitude: locData["lon"] as! CLLocationDegrees))
mapView.setCenter(CLLocationCoordinate2DMake(locD.latitude,locD.longitude), animated: false) mapView.setCenter(CLLocationCoordinate2DMake(locD.latitude,locD.longitude), animated: false)
...@@ -562,7 +564,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo ...@@ -562,7 +564,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
titleLbl!.text = adrName titleLbl!.text = adrName
str = detailAdr str = detailAdr
} }
detailAdrStr = ""
detailAdrStr = "\(city)_\(districet)_\(ad)_\(titleLbl!.text!)" detailAdrStr = "\(city)_\(districet)_\(ad)_\(titleLbl!.text!)"
var city_id = 0 var city_id = 0
for item in adrDatasArr! { for item in adrDatasArr! {
......
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