Commit 6334cf05 authored by Alex朱枝文's avatar Alex朱枝文

高才信息填写指引

parent 9d2a4d51
......@@ -54,6 +54,8 @@
04307B9D2D1D48E700ED8E8D /* YHGCIncomeType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04307B9C2D1D48E700ED8E8D /* YHGCIncomeType.swift */; };
04307B9F2D1D4B3600ED8E8D /* YHGCIncomeTypeSelectViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04307B9E2D1D4B3600ED8E8D /* YHGCIncomeTypeSelectViewController.swift */; };
04307BA12D1D4B9500ED8E8D /* YHGCIncomeTypeSelectModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04307BA02D1D4B9500ED8E8D /* YHGCIncomeTypeSelectModel.swift */; };
04307BA32D1E4CA600ED8E8D /* YHGCInformationFillTipsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04307BA22D1E4CA600ED8E8D /* YHGCInformationFillTipsCell.swift */; };
04307BA52D1E54BD00ED8E8D /* YHGCInformationFillTipsAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04307BA42D1E54BD00ED8E8D /* YHGCInformationFillTipsAlertView.swift */; };
045C0F7F2D12CA5F00BD2DC0 /* submit_page_scroll.gif in Resources */ = {isa = PBXBuildFile; fileRef = 045C0F4F2D12CA5E00BD2DC0 /* submit_page_scroll.gif */; };
045C0F802D12CA5F00BD2DC0 /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 045C0F762D12CA5E00BD2DC0 /* Localizable.xcstrings */; };
045C0F812D12CA5F00BD2DC0 /* img_0.png in Resources */ = {isa = PBXBuildFile; fileRef = 045C0F5E2D12CA5E00BD2DC0 /* img_0.png */; };
......@@ -1260,6 +1262,8 @@
04307B9C2D1D48E700ED8E8D /* YHGCIncomeType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHGCIncomeType.swift; sourceTree = "<group>"; };
04307B9E2D1D4B3600ED8E8D /* YHGCIncomeTypeSelectViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHGCIncomeTypeSelectViewController.swift; sourceTree = "<group>"; };
04307BA02D1D4B9500ED8E8D /* YHGCIncomeTypeSelectModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHGCIncomeTypeSelectModel.swift; sourceTree = "<group>"; };
04307BA22D1E4CA600ED8E8D /* YHGCInformationFillTipsCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHGCInformationFillTipsCell.swift; sourceTree = "<group>"; };
04307BA42D1E54BD00ED8E8D /* YHGCInformationFillTipsAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHGCInformationFillTipsAlertView.swift; sourceTree = "<group>"; };
045C09A12D12C2A800BD2DC0 /* YHGCMineSchemeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHGCMineSchemeViewController.swift; sourceTree = "<group>"; };
045C0A142D12CA5E00BD2DC0 /* YHBaseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHBaseViewController.swift; sourceTree = "<group>"; };
045C0A152D12CA5E00BD2DC0 /* YHBaseViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHBaseViewModel.swift; sourceTree = "<group>"; };
......@@ -3245,7 +3249,9 @@
045C0B212D12CA5E00BD2DC0 /* YHContractCell.swift */,
045C0B222D12CA5E00BD2DC0 /* YHContractMainItemStatusCell.swift */,
045C0B232D12CA5E00BD2DC0 /* YHInformationFillTipsAlertView.swift */,
04307BA42D1E54BD00ED8E8D /* YHGCInformationFillTipsAlertView.swift */,
045C0B242D12CA5E00BD2DC0 /* YHInformationFillTipsCell.swift */,
04307BA22D1E4CA600ED8E8D /* YHGCInformationFillTipsCell.swift */,
045C0B252D12CA5E00BD2DC0 /* YHInformationPerfectCell.swift */,
045C0B262D12CA5E00BD2DC0 /* YHLoginTipsView.swift */,
045C0B272D12CA5E00BD2DC0 /* YHNoDataTipsView.swift */,
......@@ -7058,6 +7064,7 @@
045C10BA2D12CA5F00BD2DC0 /* YHInvitationNumberItemView.swift in Sources */,
045C10BB2D12CA5F00BD2DC0 /* YHChildInfoContainerVC.swift in Sources */,
045C10BC2D12CA5F00BD2DC0 /* YHSignatureWebViewController.swift in Sources */,
04307BA32D1E4CA600ED8E8D /* YHGCInformationFillTipsCell.swift in Sources */,
045C10BD2D12CA5F00BD2DC0 /* YHPreviewMainViewController.swift in Sources */,
045C10BE2D12CA5F00BD2DC0 /* YHWorkExperienceViewController.swift in Sources */,
045C10BF2D12CA5F00BD2DC0 /* YHServiceOrderGuideTipsView.swift in Sources */,
......@@ -7297,6 +7304,7 @@
045C119C2D12CA5F00BD2DC0 /* YHSubmitAllInfoCheckView.swift in Sources */,
045C119D2D12CA5F00BD2DC0 /* UIColor+Extension.swift in Sources */,
045C119E2D12CA5F00BD2DC0 /* YHCustomTextView.swift in Sources */,
04307BA52D1E54BD00ED8E8D /* YHGCInformationFillTipsAlertView.swift in Sources */,
045C119F2D12CA5F00BD2DC0 /* YHEditBaseUserInfoViewController.swift in Sources */,
0411CF162D1C0D0C00644D35 /* YHGCSignatureAddTableViewCell.swift in Sources */,
045C11A02D12CA5F00BD2DC0 /* YHCertificateSearchBar.swift in Sources */,
......
......@@ -190,7 +190,18 @@ extension YHInformationPerfectListVC {
serviceCenterMainReqVM.submitSweetNotifyOp(params: params as [String : Any]) { success, error in
if success == true {
YHInformationFillTipsAlertView.hideCheckView()
} else {
YHHUD.flash(message: error?.errorMsg ?? "发生错误,请重试")
}
self.loadData()
}
}
func submitGCSweetNotify() {
let params = ["option":1,"order_id":orderId]
serviceCenterMainReqVM.submitSweetNotifyOp(params: params as [String : Any]) { success, error in
if success == true {
YHGCInformationFillTipsAlertView.hideCheckView()
} else {
YHHUD.flash(message: error?.errorMsg ?? "发生错误,请重试")
}
......@@ -209,6 +220,17 @@ extension YHInformationPerfectListVC {
}
}
func showGCTipsAlert() {
YHGCInformationFillTipsAlertView.showCheckView { agree in
if agree == true {
printLog("点击了 确认 按钮")
self.submitGCSweetNotify()
} else {
printLog("点击了 取消 按钮")
}
}
}
func loadData() {
guard let orderId = orderId else { return}
self.serviceCenterMainReqVM.getPersonInfoFillStep(params: ["orderId":orderId]) { success, error in
......@@ -633,7 +655,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
//高才A
if tapIndex == 0 {
if self.serviceCenterMainReqVM.informationFillStepModel?.sweet_notify_status == 0 {
self.showTipsAlert()
self.showGCTipsAlert()
return
}
gotoApplyTypeVC()
......@@ -672,7 +694,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
//高才BC
if tapIndex == 0 {
if self.serviceCenterMainReqVM.informationFillStepModel?.sweet_notify_status == 0 {
self.showTipsAlert()
self.showGCTipsAlert()
return
}
gotoApplyTypeVC()
......
//
// YHGCInformationFillTipsAlertView.swift
// galaxy
//
// Created by alexzzw on 2024/12/27.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHGCInformationFillTipsAlertView: YHInformationFillTipsAlertView {
override class func showCheckView(callBack: @escaping Block) {
let view = YHGCInformationFillTipsAlertView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: KScreenHeight))
view.block = callBack
let window = UIApplication.shared.yhKeyWindow()
window?.addSubview(view)
gloabView = view
}
override init(frame: CGRect) {
super.init(frame: frame)
homeTableView.register(YHGCInformationFillTipsCell.self,forCellReuseIdentifier: YHGCInformationFillTipsCell.cellReuseIdentifier)
}
@MainActor required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withClass: YHGCInformationFillTipsCell.self)
cell.selectionStyle = .none
return cell
}
}
//
// YHGCInformationFillTipsCell.swift
// galaxy
//
// Created by alexzzw on 2024/12/27.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import AttributedString
import UIKit
class YHGCInformationFillTipsCell: UITableViewCell {
static let cellReuseIdentifier = "YHGCInformationFillTipsCell"
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
setupUI()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
extension YHGCInformationFillTipsCell {
func setupUI() {
let holdView = UIView()
holdView.backgroundColor = .clear
backgroundColor = .clear
contentView.backgroundColor = .clear
contentView.addSubview(holdView)
holdView.snp.makeConstraints { make in
make.top.bottom.equalToSuperview()
make.left.equalTo(21)
make.right.equalTo(-21)
}
// 添加元素
let lable0 = UILabel(text: " 您好!欢迎来到香港高才申请系统,请按照实际情况填写:")
lable0.font = UIFont.PFSC_R(ofSize: 14)
lable0.textColor = UIColor.mainTextColor
lable0.numberOfLines = 0
lable0.lineBreakMode = .byWordWrapping
holdView.addSubview(lable0)
lable0.snp.makeConstraints { make in
make.top.equalTo(16)
make.left.right.equalToSuperview()
}
let lable1 = UILabel(text: " 1. 如您填写途中想离开系统,可以点击下方的保存,在您有空闲的时间再继续进行填写;")
lable1.font = UIFont.PFSC_R(ofSize: 14)
lable1.textColor = UIColor.mainTextColor
lable1.numberOfLines = 0
lable1.lineBreakMode = .byWordWrapping
let a: ASAttributedString = .init(" 1. 如您填写途中想离开系统,可以点击下方的", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.mainTextColor))
let b: ASAttributedString = .init("保存", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.brandMainColor))
let c: ASAttributedString = .init(",在您有空闲的时间再继续进行填写;", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.mainTextColor))
lable1.attributed.text = a + b + c
holdView.addSubview(lable1)
lable1.snp.makeConstraints { make in
make.top.equalTo(lable0.snp.bottom).offset(12)
make.left.right.equalToSuperview()
}
let lable2 = UILabel(text: " 2. 此次填写将花费您15-30分钟,我们将根据您所填写的信息,配置详细资料清单,一起为香港身份起航吧~")
lable2.font = UIFont.PFSC_R(ofSize: 14)
lable2.textColor = UIColor.mainTextColor
lable2.numberOfLines = 0
lable2.lineBreakMode = .byWordWrapping
let aa: ASAttributedString = .init(" 2. 此次填写将花费您", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("15-30分钟", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.brandMainColor))
let cc: ASAttributedString = .init(",我们将根据您所填写的信息,配置详细资料清单,一起为香港身份起航吧~", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.mainTextColor))
lable2.attributed.text = aa + bb + cc
holdView.addSubview(lable2)
lable2.snp.makeConstraints { make in
make.top.equalTo(lable1.snp.bottom).offset(12)
make.left.right.equalToSuperview()
}
let holdView2 = UIView()
holdView2.backgroundColor = UIColor.contentBkgColor
holdView2.layer.cornerRadius = kCornerRadius6
holdView2.clipsToBounds = true
holdView.addSubview(holdView2)
holdView2.snp.makeConstraints { make in
make.top.equalTo(lable2.snp.bottom).offset(16)
make.left.right.equalToSuperview()
}
let view0 = UIView()
view0.backgroundColor = UIColor.brandMainColor
holdView2.addSubview(view0)
view0.snp.makeConstraints { make in
make.top.equalTo(14.5)
make.left.equalToSuperview()
make.width.equalTo(4)
make.height.equalTo(14)
}
let lable3 = UILabel(text: "填写前请您准备以下证件材料:")
lable3.font = UIFont.PFSC_M(ofSize: 14)
lable3.textColor = UIColor.mainTextColor
holdView2.addSubview(lable3)
lable3.snp.makeConstraints { make in
make.centerY.equalTo(view0)
make.left.equalTo(view0.snp.right).offset(12)
make.height.equalTo(20)
make.right.equalTo(-16)
}
let imageV0 = UIImageView()
imageV0.image = UIImage(named: "right_gou")
imageV0.contentMode = .scaleAspectFill
holdView2.addSubview(imageV0)
imageV0.snp.makeConstraints { make in
make.top.equalTo(lable3.snp.bottom).offset(16)
make.left.equalTo(lable3.snp.left)
make.width.height.equalTo(12)
}
let lable4 = UILabel(text: "身份证正反面照片")
lable4.font = UIFont.PFSC_R(ofSize: 14)
lable4.textColor = UIColor.mainTextColor
holdView2.addSubview(lable4)
lable4.snp.makeConstraints { make in
make.centerY.equalTo(imageV0)
make.left.equalTo(imageV0.snp.right).offset(8)
make.height.equalTo(17)
make.right.equalToSuperview()
}
let imageV1 = UIImageView()
imageV1.image = UIImage(named: "right_gou")
imageV1.contentMode = .scaleAspectFill
holdView2.addSubview(imageV1)
imageV1.snp.makeConstraints { make in
make.top.equalTo(imageV0.snp.bottom).offset(12.5)
make.left.equalTo(imageV0.snp.left)
make.width.height.equalTo(12)
}
let lable5 = UILabel(text: "护照(外国或近一年定居境外中国籍人士)")
lable5.font = UIFont.PFSC_R(ofSize: 14)
lable5.textColor = UIColor.mainTextColor
holdView2.addSubview(lable5)
lable5.snp.makeConstraints { make in
make.centerY.equalTo(imageV1)
make.left.equalTo(imageV1.snp.right).offset(8)
make.height.equalTo(17)
make.right.equalToSuperview()
}
let imageV2 = UIImageView()
imageV2.image = UIImage(named: "right_gou")
imageV2.contentMode = .scaleAspectFill
holdView2.addSubview(imageV2)
imageV2.snp.makeConstraints { make in
make.top.equalTo(imageV1.snp.bottom).offset(12.5)
make.left.equalTo(lable3.snp.left)
make.width.height.equalTo(12)
}
let lable6 = UILabel(text: "港澳通行证正反面照片(如有)")
lable6.font = UIFont.PFSC_R(ofSize: 14)
lable6.textColor = UIColor.mainTextColor
holdView2.addSubview(lable6)
lable6.snp.makeConstraints { make in
make.centerY.equalTo(imageV2)
make.left.equalTo(imageV2.snp.right).offset(8)
make.height.equalTo(17)
make.right.equalToSuperview()
make.bottom.equalToSuperview().offset(-12)
}
let holdView3 = UIView()
holdView3.backgroundColor = UIColor.clear
holdView3.layer.cornerRadius = kCornerRadius6
holdView3.clipsToBounds = true
holdView3.layer.borderWidth = 1
holdView3.layer.borderColor = UIColor(hexString: "#E4EEFF")?.cgColor
holdView.addSubview(holdView3)
holdView3.snp.makeConstraints { make in
make.top.equalTo(holdView2.snp.bottom).offset(16)
make.left.right.equalToSuperview()
make.bottom.equalToSuperview().offset(-81)
}
let tImageV: UIImageView = UIImageView(image: UIImage(named: "entry_bkg"))
tImageV.contentMode = .scaleAspectFill
holdView3.addSubview(tImageV)
tImageV.snp.makeConstraints { make in
make.edges.equalTo(0)
}
let imageV4 = UIImageView()
imageV4.image = UIImage(named: "tips_icon")
imageV4.contentMode = .scaleAspectFill
holdView3.addSubview(imageV4)
imageV4.snp.makeConstraints { make in
make.top.equalTo(14)
make.left.equalTo(16)
make.width.height.equalTo(14)
}
let lable8 = UILabel(text: "温馨提示:")
lable8.font = UIFont.PFSC_M(ofSize: 12)
lable8.textColor = UIColor.brandMainColor
holdView3.addSubview(lable8)
lable8.snp.makeConstraints { make in
make.centerY.equalTo(imageV4)
make.left.equalTo(imageV4.snp.right).offset(8)
make.height.equalTo(17)
make.right.equalToSuperview()
}
let lable9 = UILabel(text: "申请过程中有任何疑问,请随时联系您的专业文案老师为您解答护航。")
lable9.numberOfLines = 0
lable9.lineBreakMode = .byWordWrapping
lable9.font = UIFont.PFSC_R(ofSize: 12)
lable9.textColor = UIColor.mainTextColor
let aaa: ASAttributedString = .init("申请过程中有任何疑问,请随时", .font(UIFont.PFSC_R(ofSize: 12)), .foreground(UIColor.mainTextColor))
let bbb: ASAttributedString = .init("联系您的专业文案老师", .font(UIFont.PFSC_R(ofSize: 12)), .foreground(UIColor.brandMainColor))
let ccc: ASAttributedString = .init("为您解答护航。", .font(UIFont.PFSC_R(ofSize: 12)), .foreground(UIColor.mainTextColor))
lable9.attributed.text = aaa + bbb + ccc
let imageV44 = UIImageView()
//imageV44.frame = holdView3.bounds
imageV44.image = UIImage(named: "tips_cell_bkg")
imageV44.contentMode = .scaleAspectFill
imageV44.layer.zPosition = -1
holdView3.addSubview(lable9)
holdView3.addSubview(imageV44)
imageV44.setContentHuggingPriority(.defaultLow, for: .vertical)
lable9.setContentHuggingPriority(.required, for: .vertical)
lable9.snp.makeConstraints { make in
make.top.equalTo(lable8.snp.bottom).offset(7)
make.left.equalTo(imageV4.snp.left)
make.right.equalToSuperview().offset(-16)
make.bottom.equalToSuperview().offset(-12)
}
imageV44.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
}
}
......@@ -33,7 +33,7 @@ class YHInformationFillTipsAlertView: UIView {
}()
//类方法 - 展示
static func showCheckView(callBack: @escaping Block) {
class func showCheckView(callBack: @escaping Block) {
let view = YHInformationFillTipsAlertView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: KScreenHeight))
view.block = callBack
let window = UIApplication.shared.yhKeyWindow()
......@@ -228,6 +228,7 @@ class YHInformationFillTipsAlertView: UIView {
func dismiss() {
removeFromSuperview()
gloabView = nil
}
}
......
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