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

高才信息填写指引

parent 9d2a4d51
...@@ -54,6 +54,8 @@ ...@@ -54,6 +54,8 @@
04307B9D2D1D48E700ED8E8D /* YHGCIncomeType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04307B9C2D1D48E700ED8E8D /* YHGCIncomeType.swift */; }; 04307B9D2D1D48E700ED8E8D /* YHGCIncomeType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04307B9C2D1D48E700ED8E8D /* YHGCIncomeType.swift */; };
04307B9F2D1D4B3600ED8E8D /* YHGCIncomeTypeSelectViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04307B9E2D1D4B3600ED8E8D /* YHGCIncomeTypeSelectViewController.swift */; }; 04307B9F2D1D4B3600ED8E8D /* YHGCIncomeTypeSelectViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04307B9E2D1D4B3600ED8E8D /* YHGCIncomeTypeSelectViewController.swift */; };
04307BA12D1D4B9500ED8E8D /* YHGCIncomeTypeSelectModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04307BA02D1D4B9500ED8E8D /* YHGCIncomeTypeSelectModel.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 */; }; 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 */; }; 045C0F802D12CA5F00BD2DC0 /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 045C0F762D12CA5E00BD2DC0 /* Localizable.xcstrings */; };
045C0F812D12CA5F00BD2DC0 /* img_0.png in Resources */ = {isa = PBXBuildFile; fileRef = 045C0F5E2D12CA5E00BD2DC0 /* img_0.png */; }; 045C0F812D12CA5F00BD2DC0 /* img_0.png in Resources */ = {isa = PBXBuildFile; fileRef = 045C0F5E2D12CA5E00BD2DC0 /* img_0.png */; };
...@@ -1260,6 +1262,8 @@ ...@@ -1260,6 +1262,8 @@
04307B9C2D1D48E700ED8E8D /* YHGCIncomeType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHGCIncomeType.swift; sourceTree = "<group>"; }; 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>"; }; 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>"; }; 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>"; }; 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>"; }; 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>"; }; 045C0A152D12CA5E00BD2DC0 /* YHBaseViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHBaseViewModel.swift; sourceTree = "<group>"; };
...@@ -3245,7 +3249,9 @@ ...@@ -3245,7 +3249,9 @@
045C0B212D12CA5E00BD2DC0 /* YHContractCell.swift */, 045C0B212D12CA5E00BD2DC0 /* YHContractCell.swift */,
045C0B222D12CA5E00BD2DC0 /* YHContractMainItemStatusCell.swift */, 045C0B222D12CA5E00BD2DC0 /* YHContractMainItemStatusCell.swift */,
045C0B232D12CA5E00BD2DC0 /* YHInformationFillTipsAlertView.swift */, 045C0B232D12CA5E00BD2DC0 /* YHInformationFillTipsAlertView.swift */,
04307BA42D1E54BD00ED8E8D /* YHGCInformationFillTipsAlertView.swift */,
045C0B242D12CA5E00BD2DC0 /* YHInformationFillTipsCell.swift */, 045C0B242D12CA5E00BD2DC0 /* YHInformationFillTipsCell.swift */,
04307BA22D1E4CA600ED8E8D /* YHGCInformationFillTipsCell.swift */,
045C0B252D12CA5E00BD2DC0 /* YHInformationPerfectCell.swift */, 045C0B252D12CA5E00BD2DC0 /* YHInformationPerfectCell.swift */,
045C0B262D12CA5E00BD2DC0 /* YHLoginTipsView.swift */, 045C0B262D12CA5E00BD2DC0 /* YHLoginTipsView.swift */,
045C0B272D12CA5E00BD2DC0 /* YHNoDataTipsView.swift */, 045C0B272D12CA5E00BD2DC0 /* YHNoDataTipsView.swift */,
...@@ -7058,6 +7064,7 @@ ...@@ -7058,6 +7064,7 @@
045C10BA2D12CA5F00BD2DC0 /* YHInvitationNumberItemView.swift in Sources */, 045C10BA2D12CA5F00BD2DC0 /* YHInvitationNumberItemView.swift in Sources */,
045C10BB2D12CA5F00BD2DC0 /* YHChildInfoContainerVC.swift in Sources */, 045C10BB2D12CA5F00BD2DC0 /* YHChildInfoContainerVC.swift in Sources */,
045C10BC2D12CA5F00BD2DC0 /* YHSignatureWebViewController.swift in Sources */, 045C10BC2D12CA5F00BD2DC0 /* YHSignatureWebViewController.swift in Sources */,
04307BA32D1E4CA600ED8E8D /* YHGCInformationFillTipsCell.swift in Sources */,
045C10BD2D12CA5F00BD2DC0 /* YHPreviewMainViewController.swift in Sources */, 045C10BD2D12CA5F00BD2DC0 /* YHPreviewMainViewController.swift in Sources */,
045C10BE2D12CA5F00BD2DC0 /* YHWorkExperienceViewController.swift in Sources */, 045C10BE2D12CA5F00BD2DC0 /* YHWorkExperienceViewController.swift in Sources */,
045C10BF2D12CA5F00BD2DC0 /* YHServiceOrderGuideTipsView.swift in Sources */, 045C10BF2D12CA5F00BD2DC0 /* YHServiceOrderGuideTipsView.swift in Sources */,
...@@ -7297,6 +7304,7 @@ ...@@ -7297,6 +7304,7 @@
045C119C2D12CA5F00BD2DC0 /* YHSubmitAllInfoCheckView.swift in Sources */, 045C119C2D12CA5F00BD2DC0 /* YHSubmitAllInfoCheckView.swift in Sources */,
045C119D2D12CA5F00BD2DC0 /* UIColor+Extension.swift in Sources */, 045C119D2D12CA5F00BD2DC0 /* UIColor+Extension.swift in Sources */,
045C119E2D12CA5F00BD2DC0 /* YHCustomTextView.swift in Sources */, 045C119E2D12CA5F00BD2DC0 /* YHCustomTextView.swift in Sources */,
04307BA52D1E54BD00ED8E8D /* YHGCInformationFillTipsAlertView.swift in Sources */,
045C119F2D12CA5F00BD2DC0 /* YHEditBaseUserInfoViewController.swift in Sources */, 045C119F2D12CA5F00BD2DC0 /* YHEditBaseUserInfoViewController.swift in Sources */,
0411CF162D1C0D0C00644D35 /* YHGCSignatureAddTableViewCell.swift in Sources */, 0411CF162D1C0D0C00644D35 /* YHGCSignatureAddTableViewCell.swift in Sources */,
045C11A02D12CA5F00BD2DC0 /* YHCertificateSearchBar.swift in Sources */, 045C11A02D12CA5F00BD2DC0 /* YHCertificateSearchBar.swift in Sources */,
......
...@@ -190,7 +190,18 @@ extension YHInformationPerfectListVC { ...@@ -190,7 +190,18 @@ extension YHInformationPerfectListVC {
serviceCenterMainReqVM.submitSweetNotifyOp(params: params as [String : Any]) { success, error in serviceCenterMainReqVM.submitSweetNotifyOp(params: params as [String : Any]) { success, error in
if success == true { if success == true {
YHInformationFillTipsAlertView.hideCheckView() 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 { } else {
YHHUD.flash(message: error?.errorMsg ?? "发生错误,请重试") YHHUD.flash(message: error?.errorMsg ?? "发生错误,请重试")
} }
...@@ -209,6 +220,17 @@ extension YHInformationPerfectListVC { ...@@ -209,6 +220,17 @@ extension YHInformationPerfectListVC {
} }
} }
func showGCTipsAlert() {
YHGCInformationFillTipsAlertView.showCheckView { agree in
if agree == true {
printLog("点击了 确认 按钮")
self.submitGCSweetNotify()
} else {
printLog("点击了 取消 按钮")
}
}
}
func loadData() { func loadData() {
guard let orderId = orderId else { return} guard let orderId = orderId else { return}
self.serviceCenterMainReqVM.getPersonInfoFillStep(params: ["orderId":orderId]) { success, error in self.serviceCenterMainReqVM.getPersonInfoFillStep(params: ["orderId":orderId]) { success, error in
...@@ -633,7 +655,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource ...@@ -633,7 +655,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
//高才A //高才A
if tapIndex == 0 { if tapIndex == 0 {
if self.serviceCenterMainReqVM.informationFillStepModel?.sweet_notify_status == 0 { if self.serviceCenterMainReqVM.informationFillStepModel?.sweet_notify_status == 0 {
self.showTipsAlert() self.showGCTipsAlert()
return return
} }
gotoApplyTypeVC() gotoApplyTypeVC()
...@@ -672,7 +694,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource ...@@ -672,7 +694,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
//高才BC //高才BC
if tapIndex == 0 { if tapIndex == 0 {
if self.serviceCenterMainReqVM.informationFillStepModel?.sweet_notify_status == 0 { if self.serviceCenterMainReqVM.informationFillStepModel?.sweet_notify_status == 0 {
self.showTipsAlert() self.showGCTipsAlert()
return return
} }
gotoApplyTypeVC() 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
}
}
...@@ -33,7 +33,7 @@ class YHInformationFillTipsAlertView: UIView { ...@@ -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)) let view = YHInformationFillTipsAlertView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: KScreenHeight))
view.block = callBack view.block = callBack
let window = UIApplication.shared.yhKeyWindow() let window = UIApplication.shared.yhKeyWindow()
...@@ -228,6 +228,7 @@ class YHInformationFillTipsAlertView: UIView { ...@@ -228,6 +228,7 @@ class YHInformationFillTipsAlertView: UIView {
func dismiss() { func dismiss() {
removeFromSuperview() 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