Commit f1e797cd authored by lujunye's avatar lujunye

修复物流下单界面

parent 5dfe58c5
......@@ -712,17 +712,15 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
var selectCarType = 0
var carTypesArr:Array<vehicle_arr_data> = []
@IBAction func selectAction(_ sender: UIButton) {
if rightBtn == sender {
rightBtn.isSelected = true
leftBtn.isSelected = false
lineV.frame.origin.x = fullScreenWidth * 0.5
hllView.isHidden = false
locBtn.isUserInteractionEnabled = true
hBtnViewH.constant = CGFloat(TabHeight)
if isAlready {
if adrDatas.count == 0{
HUD.flash(.progress)
cityList(["user_token":UserToken as Any,"nonce_str":String.randomStr(len: 30) as Any], success: { (data) in
let model = data as! cityListModel
......@@ -736,22 +734,41 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
self.getUICarList()
HUD.hide()
}) { (err) in}
}else{
if isAlready {
getUICarList()
}else{
rightBtn.isSelected = true
leftBtn.isSelected = false
lineV.frame.origin.x = fullScreenWidth * 0.5
hllView.isHidden = false
locBtn.isUserInteractionEnabled = true
}
}
}else{
print("adrDatas.count5",adrDatas.count,isAlready)
locBtn.isUserInteractionEnabled = false
rightBtn.isSelected = false
leftBtn.isSelected = true
lineV.frame.origin.x = 0
hllView.isHidden = true
closeCarList()
}
}
}
func getUICarList(){
rightBtn.isSelected = true
leftBtn.isSelected = false
lineV.frame.origin.x = fullScreenWidth * 0.5
hllView.isHidden = false
locBtn.isUserInteractionEnabled = true
for item in adrDatas {
if item.name == selectLoc || item.name_en == selectLoc.localizedLowercase{
city_id = item.city_id!
......
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