Commit 274e08b7 authored by David黄金龙's avatar David黄金龙

处理 选择赴港在港递交时间选择 UI

parent 019d3625
...@@ -24,21 +24,20 @@ class YHPickTimeHoldView: UIView { ...@@ -24,21 +24,20 @@ class YHPickTimeHoldView: UIView {
let label = UILabel() let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 14)
label.textColor = .mainTextColor label.textColor = .mainTextColor
label.text = "具体时间" label.text = "具体时间"
return label return label
}() }()
lazy var tipImageV : UIImageView = { private lazy var iconImageV : UIImageView = {
let view = UIImageView() let view = UIImageView()
view.image = UIImage(named: "other_info_warning")
view.contentMode = .scaleAspectFill view.contentMode = .scaleAspectFill
view.image = UIImage(named: "activity_travel_bkg")
return view return view
}() }()
lazy var nextImageV : UIImageView = { private lazy var arrowIcon: UIImageView = {
let view = UIImageView() let view = UIImageView()
view.contentMode = .scaleAspectFill view.image = UIImage(named: "right_arrow_black_20")
view.image = UIImage(named: "activity_travel_bkg")
return view return view
}() }()
...@@ -47,6 +46,8 @@ class YHPickTimeHoldView: UIView { ...@@ -47,6 +46,8 @@ class YHPickTimeHoldView: UIView {
tf.font = UIFont.PFSC_M(ofSize: 14) tf.font = UIFont.PFSC_M(ofSize: 14)
tf.textColor = UIColor.mainTextColor tf.textColor = UIColor.mainTextColor
tf.placeholder = "请选择" tf.placeholder = "请选择"
tf.isEnabled = false
tf.textAlignment = .right
return tf return tf
}() }()
...@@ -67,8 +68,11 @@ class YHPickTimeHoldView: UIView { ...@@ -67,8 +68,11 @@ class YHPickTimeHoldView: UIView {
func createUI() { func createUI() {
self.addSubview(lineView) addSubview(lineView)
self.addSubview(applicantNamesLabel) addSubview(applicantNamesLabel)
addSubview(iconImageV)
addSubview(arrowIcon)
addSubview(timeTextField)
lineView.snp.makeConstraints { make in lineView.snp.makeConstraints { make in
make.left.right.top.equalToSuperview() make.left.right.top.equalToSuperview()
...@@ -77,7 +81,37 @@ class YHPickTimeHoldView: UIView { ...@@ -77,7 +81,37 @@ class YHPickTimeHoldView: UIView {
applicantNamesLabel.snp.makeConstraints { make in applicantNamesLabel.snp.makeConstraints { make in
make.left.equalTo(16) make.left.equalTo(16)
make.right.equalTo(-18-71-5) make.centerY.equalToSuperview().offset(1)
}
iconImageV.snp.makeConstraints { make in
make.left.equalTo(applicantNamesLabel.snp.right).offset(4)
make.centerY.equalTo(applicantNamesLabel)
make.height.width.equalTo(kMargin)
} }
let tap : UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(tapButton(gestureRecognizer:)))
iconImageV.isUserInteractionEnabled = true
iconImageV.addGestureRecognizer(tap)
arrowIcon.snp.makeConstraints { make in
make.right.equalToSuperview().offset(-kMargin)
make.centerY.equalTo(applicantNamesLabel)
make.height.width.equalTo(16)
}
timeTextField.snp.makeConstraints { make in
make.right.equalTo(arrowIcon.snp.left).offset(-10)
make.centerY.equalTo(applicantNamesLabel)
make.width.equalTo(80)
}
}
}
private extension YHPickTimeHoldView {
@objc func tapButton(gestureRecognizer:UITapGestureRecognizer) {
YHWholeScreenTipsView.show(type: .renewTimeTips, targetView: iconImageV)
} }
} }
...@@ -96,8 +96,8 @@ class YHRangeDatePickerSheetView2: UIView { ...@@ -96,8 +96,8 @@ class YHRangeDatePickerSheetView2: UIView {
return imageV return imageV
}() }()
lazy var timeHoldView : UIView = { lazy var timeHoldView : YHPickTimeHoldView = {
let imageV = UIView() let imageV = YHPickTimeHoldView()
imageV.backgroundColor = .yellow //52 imageV.backgroundColor = .yellow //52
return imageV return imageV
}() }()
......
...@@ -248,7 +248,7 @@ extension YHJsApi { ...@@ -248,7 +248,7 @@ extension YHJsApi {
//普通界面 //普通界面
if !url.isEmpty { if !url.isEmpty {
var tUrl = url var tUrl = url
if !url.contains("avigationH=") { if !url.contains("navigationH=") {
tUrl = url + "?navigationH=\(k_Height_NavigationtBarAndStatuBar)" tUrl = url + "?navigationH=\(k_Height_NavigationtBarAndStatuBar)"
if url.contains("?") { if url.contains("?") {
tUrl = url + "&navigationH=\(k_Height_NavigationtBarAndStatuBar)" tUrl = url + "&navigationH=\(k_Height_NavigationtBarAndStatuBar)"
......
...@@ -409,29 +409,29 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource { ...@@ -409,29 +409,29 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
case .myOrder: case .myOrder:
//我的订单 //我的订单
if let token = YHLoginManager.shared.userModel?.token,token.count > 5 { // if let token = YHLoginManager.shared.userModel?.token,token.count > 5 {
var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/order/my" // var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/order/my"
url = "?param=" + YHLoginManager.shared.h5Token // url = "?param=" + YHLoginManager.shared.h5Token
printLog("URL: \(url)") // printLog("URL: \(url)")
let vc = YHH5WebViewVC() // let vc = YHH5WebViewVC()
vc.url = url // vc.url = url
vc.isFullScreenFlag = false // vc.isFullScreenFlag = false
vc.navTitle = "我的订单" // vc.navTitle = "我的订单"
vc.isSupportWebviewInterBackFlag = true // vc.isSupportWebviewInterBackFlag = true
UIViewController.current?.navigationController?.pushViewController(vc) // UIViewController.current?.navigationController?.pushViewController(vc)
} // }
// let view = YHRangeDatePickerSheetView2.sheetView() let view = YHRangeDatePickerSheetView2.sheetView()
// view.block = { view.block = {
// [weak self] (startDate,endDate) in [weak self] (startDate,endDate) in
// guard let self = self else { return } guard let self = self else { return }
//
// printLog("开始时间: \(startDate)") printLog("开始时间: \(startDate)")
// printLog("结束时间: \(endDate)") printLog("结束时间: \(endDate)")
// } }
// view.show()//for test hjl view.show()//for test hjl
default: default:
printLog("不需要响应") printLog("不需要响应")
} }
......
...@@ -24,6 +24,8 @@ enum YHWholeScreenTipsViewType : Int { ...@@ -24,6 +24,8 @@ enum YHWholeScreenTipsViewType : Int {
case hkPlanQ5 //赴港计划书问题5 case hkPlanQ5 //赴港计划书问题5
case hkPlanQ6 //赴港计划书问题6 case hkPlanQ6 //赴港计划书问题6
case hkPlanQ7 //赴港计划书问题7 case hkPlanQ7 //赴港计划书问题7
case renewTimeTips //选择预约在港递交时间
} }
...@@ -94,6 +96,8 @@ class YHWholeScreenTipsView: UIView { ...@@ -94,6 +96,8 @@ class YHWholeScreenTipsView: UIView {
return "请以不超过100字简介你认为对评核你的申请非常重要的其他材料" return "请以不超过100字简介你认为对评核你的申请非常重要的其他材料"
case .hkPlanQ7: case .hkPlanQ7:
return "您可以在此输入因为字数限制无法输入的内容" return "您可以在此输入因为字数限制无法输入的内容"
case .renewTimeTips:
return "入境处网址18:00之后可能会存在系统更新,为避免预约时间无法递交,请尽量选择18:00之前的时间"
default: default:
return "--" return "--"
} }
......
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