Commit d65c5eca authored by Steven杜宇's avatar Steven杜宇

// 递交预约

parent f0345297
......@@ -465,6 +465,7 @@
04912F702CB765FE00CC3105 /* YHResignAppointTimeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04912F6F2CB765FE00CC3105 /* YHResignAppointTimeViewController.swift */; };
04912F722CB7714300CC3105 /* YHResignAppointTimeCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04912F712CB7714300CC3105 /* YHResignAppointTimeCell.swift */; };
04912F742CB7743900CC3105 /* YHResignAppointTimeItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04912F732CB7743900CC3105 /* YHResignAppointTimeItemView.swift */; };
04912F762CB77F4500CC3105 /* YHResignLeaveHKSwitchItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04912F752CB77F4500CC3105 /* YHResignLeaveHKSwitchItemView.swift */; };
0493B3DC2BA7EFE600AF9393 /* YHCertificateSearchViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0493B3DB2BA7EFE600AF9393 /* YHCertificateSearchViewController.swift */; };
0493B3DE2BA80C2300AF9393 /* YHCertificateFilterButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0493B3DD2BA80C2300AF9393 /* YHCertificateFilterButton.swift */; };
049537852BA9B28500AF7E59 /* YHCertificateTemplateCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 049537842BA9B28500AF7E59 /* YHCertificateTemplateCell.swift */; };
......@@ -1331,6 +1332,7 @@
04912F6F2CB765FE00CC3105 /* YHResignAppointTimeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHResignAppointTimeViewController.swift; sourceTree = "<group>"; };
04912F712CB7714300CC3105 /* YHResignAppointTimeCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHResignAppointTimeCell.swift; sourceTree = "<group>"; };
04912F732CB7743900CC3105 /* YHResignAppointTimeItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHResignAppointTimeItemView.swift; sourceTree = "<group>"; };
04912F752CB77F4500CC3105 /* YHResignLeaveHKSwitchItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHResignLeaveHKSwitchItemView.swift; sourceTree = "<group>"; };
0493B3DB2BA7EFE600AF9393 /* YHCertificateSearchViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateSearchViewController.swift; sourceTree = "<group>"; };
0493B3DD2BA80C2300AF9393 /* YHCertificateFilterButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateFilterButton.swift; sourceTree = "<group>"; };
049537842BA9B28500AF7E59 /* YHCertificateTemplateCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateTemplateCell.swift; sourceTree = "<group>"; };
......@@ -3386,6 +3388,7 @@
children = (
04912F6D2CB6A64700CC3105 /* YHResignAppointTipsView.swift */,
04912F732CB7743900CC3105 /* YHResignAppointTimeItemView.swift */,
04912F752CB77F4500CC3105 /* YHResignLeaveHKSwitchItemView.swift */,
04912F712CB7714300CC3105 /* YHResignAppointTimeCell.swift */,
);
path = V;
......@@ -5611,6 +5614,7 @@
045EEE952B9F171A0022A143 /* YHPreviewInfoCertificateInformationItemsView.swift in Sources */,
044D0C042C2180B700C5CF5E /* YHInformationAuthorizationStepTwoViewController.swift in Sources */,
045EEEBB2B9F171A0022A143 /* YHWorkIntroductionTableViewCell.swift in Sources */,
04912F762CB77F4500CC3105 /* YHResignLeaveHKSwitchItemView.swift in Sources */,
044EE2382C92BBC500A2FE3A /* YHResignCertificateListTableViewCell.swift in Sources */,
045EEEED2B9F171A0022A143 /* YHParentInfoVC.swift in Sources */,
04A7BC912B6B7B89000E8D47 /* YHTwoOptionAlertView.swift in Sources */,
......
......@@ -58,6 +58,12 @@ class YHResignAppointTimeCell: UITableViewCell {
return view
}()
lazy var leaveHKSwithView: YHResignLeaveHKSwitchItemView = {
let view = YHResignLeaveHKSwitchItemView()
view.title = "暂不离港"
return view
}()
required init?(coder: NSCoder) {
super.init(coder: coder)
}
......@@ -77,6 +83,8 @@ class YHResignAppointTimeCell: UITableViewCell {
whiteContentView.addSubview(titleLabel)
whiteContentView.addSubview(submitTimeItemView)
whiteContentView.addSubview(leaveTimeItemView)
whiteContentView.addSubview(leaveHKSwithView)
whiteContentView.snp.makeConstraints { make in
make.left.right.top.equalToSuperview()
......@@ -100,6 +108,12 @@ class YHResignAppointTimeCell: UITableViewCell {
make.left.equalTo(18)
make.right.equalTo(-18)
make.top.equalTo(submitTimeItemView.snp.bottom)
}
leaveHKSwithView.snp.makeConstraints { make in
make.left.equalTo(18)
make.right.equalTo(-18)
make.top.equalTo(leaveTimeItemView.snp.bottom)
make.bottom.equalToSuperview()
}
}
......
//
// YHResignLeaveHKSwitchItemView.swift
// galaxy
//
// Created by edy on 2024/10/10.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHResignLeaveHKSwitchItemView: UIView {
var title: String = "" {
didSet {
titleLabel.text = title
}
}
lazy var lineView: UIView = {
let view = UIView()
view.backgroundColor = .separatorColor
return view
}()
lazy var titleLabel: UILabel = {
let label = UILabel()
label.numberOfLines = 0
label.font = UIFont.PFSC_R(ofSize: 14)
label.textColor = .mainTextColor
return label
}()
lazy var switchBtn:UISwitch = {
let switchBtn = UISwitch()
switchBtn.onTintColor = UIColor.brandMainColor
switchBtn.addTarget(self, action: #selector(switchViewChange), for: .valueChanged)
switchBtn.tintColor = .brandMainColor
switchBtn.isOn = getVideoPlaySilentSettings()
return switchBtn
}()
lazy var btnView: UIView = {
let btnView = UIView()
btnView.addSubview(switchBtn)
return btnView
}()
override init(frame: CGRect) {
super.init(frame: frame)
createUI()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func createUI() {
self.addSubview(titleLabel)
self.addSubview(btnView)
self.addSubview(lineView)
lineView.snp.makeConstraints { make in
make.left.equalTo(0)
make.right.equalTo(0)
make.top.equalTo(0)
make.height.equalTo(0.5)
}
titleLabel.snp.makeConstraints { make in
make.left.equalTo(0)
make.top.equalTo(0)
make.bottom.equalTo(0)
make.width.equalTo(112)
make.height.equalTo(52)
}
btnView.snp.makeConstraints { make in
make.right.equalTo(0)
make.centerY.equalToSuperview()
make.height.equalTo(22)
make.width.equalTo(40)
}
}
@objc func switchViewChange() {
// switchBtn.isOn
}
override func layoutSubviews() {
super.layoutSubviews()
switchBtn.transform = CGAffineTransform(scaleX: 0.70, y: 0.70)
switchBtn.snp.updateConstraints { make in
make.left.equalTo(-7)
make.centerY.equalToSuperview()
}
}
}
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