Commit 61e75c1d authored by lujunye's avatar lujunye

切换货拉拉

parent 5f286e48
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.278",
"green" : "0.471",
"red" : "0.890"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
...@@ -108,17 +108,58 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -108,17 +108,58 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
let vc = XiaDanChengGongViewController() let vc = XiaDanChengGongViewController()
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
} }
@IBOutlet weak var topBtnView: UIView!
@IBOutlet weak var bottomView: UIView! @IBOutlet weak var bottomView: UIView!
@IBOutlet weak var listView: UITableView! @IBOutlet weak var listView: UITableView!
var locBtn = UIButton()
@IBOutlet weak var hListView: UITableView!
@IBAction func selectAction(_ sender: UIButton) {
if rightBtn == sender {
rightBtn.isSelected = true
leftBtn.isSelected = false
lineV.frame.origin.x = fullScreenWidth * 0.5
hllView.isHidden = false
if fullScreenHeight > 736 {
hBtnViewH.constant = 83
}else{
hBtnViewH.constant = 49
}
}else{
rightBtn.isSelected = false
leftBtn.isSelected = true
lineV.frame.origin.x = 0
hllView.isHidden = true
}
}
@IBOutlet weak var lineV: UIView!
@IBOutlet weak var leftBtn: UIButton!
@IBOutlet weak var hBtnViewH: NSLayoutConstraint!
@IBOutlet weak var hllView: UIView!
@IBOutlet weak var rightBtn: UIButton!
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
navbar.title = "运单列表" navbar.title = "运单列表"
self.view.addSubview(navbar) self.view.addSubview(navbar)
listView.snp.makeConstraints { (make) in
make.top.equalTo(NavCGRect.height) locBtn.backgroundColor = UIColor.red
make.left.right.equalTo(0) self.view.addSubview(locBtn)
make.bottom.equalTo(bottomView.snp_top) locBtn.snp_makeConstraints({ (make) in
} make.right.equalTo(-15)
make.centerY.equalTo(navbar.snp_centerY).offset(10)
make.height.equalTo(30)
make.width.equalTo(100)
})
SetTopFrame(view: topBtnView, height: 44)
listView.separatorStyle = .none listView.separatorStyle = .none
listView.register(UINib(nibName: "AdressSelectCell", bundle: nil), forCellReuseIdentifier: "AdressSelect") listView.register(UINib(nibName: "AdressSelectCell", bundle: nil), forCellReuseIdentifier: "AdressSelect")
listView.register(UINib(nibName: "PersonCenterCell", bundle: nil), forCellReuseIdentifier: "PersonCenter") listView.register(UINib(nibName: "PersonCenterCell", bundle: nil), forCellReuseIdentifier: "PersonCenter")
...@@ -267,6 +308,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -267,6 +308,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
return 49 return 49
} }
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// if tableView == listView {
switch indexPath.section { switch indexPath.section {
case 0: case 0:
let cell = tableView.dequeueReusableCell(withIdentifier: "AdressSelect") as! AdressSelectCell let cell = tableView.dequeueReusableCell(withIdentifier: "AdressSelect") as! AdressSelectCell
...@@ -338,6 +380,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -338,6 +380,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
cell.nameLbl.text = title2Arr[indexPath.row] cell.nameLbl.text = title2Arr[indexPath.row]
return cell return cell
} }
// }
} }
} }
...@@ -37,6 +37,11 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD ...@@ -37,6 +37,11 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
setTabv() setTabv()
NotificationCenter.default.addObserver(self, selector: #selector(jpushServiceNotification(notion:)), name: NSNotification.Name(rawValue: "jpushServiceNotification2"), object: nil) NotificationCenter.default.addObserver(self, selector: #selector(jpushServiceNotification(notion:)), name: NSNotification.Name(rawValue: "jpushServiceNotification2"), object: nil)
...@@ -482,7 +487,9 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD ...@@ -482,7 +487,9 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
case 75: //收支统计 case 75: //收支统计
// HUD.flash(.label("敬请期待"),delay: 1.2) // HUD.flash(.label("敬请期待"),delay: 1.2)
// return // return
let vc = ShouZhiTongJiViewController()
let vc = XiaYunDanViewController()
// let vc = ShouZhiTongJiViewController()
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
return return
case 76: //收支详情 case 76: //收支详情
......
...@@ -47,7 +47,7 @@ class LoginViewController: BaseViewController, CodeViewDelegate,GeliAlertViewDel ...@@ -47,7 +47,7 @@ class LoginViewController: BaseViewController, CodeViewDelegate,GeliAlertViewDel
override func viewWillAppear(_ animated: Bool) { override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated) super.viewWillAppear(animated)
self.view.backgroundColor = UIColor(named:"白色背景色") self.view.backgroundColor = UIColor(named:"白色背景色")
print("f = ",fullScreenHeight)
} }
@IBAction func selectLoginAction(_ sender: UIButton) { @IBAction func selectLoginAction(_ sender: UIButton) {
......
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