Commit f12d1811 authored by lujunye's avatar lujunye

修复选地址bug

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