Commit 641ee351 authored by Steven杜宇's avatar Steven杜宇

// 温馨提示弹窗

parent 7f8212b7
...@@ -330,6 +330,7 @@ ...@@ -330,6 +330,7 @@
049AB5EE2C0EF68700155DDF /* YHOrderTipsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 049AB5ED2C0EF68700155DDF /* YHOrderTipsView.swift */; }; 049AB5EE2C0EF68700155DDF /* YHOrderTipsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 049AB5ED2C0EF68700155DDF /* YHOrderTipsView.swift */; };
049AB5F02C0F339200155DDF /* YHVideoPlaySettingVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 049AB5EF2C0F339200155DDF /* YHVideoPlaySettingVC.swift */; }; 049AB5F02C0F339200155DDF /* YHVideoPlaySettingVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 049AB5EF2C0F339200155DDF /* YHVideoPlaySettingVC.swift */; };
049AC4C62BC3E55300F857F4 /* YHServiceSectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 049AC4C52BC3E55300F857F4 /* YHServiceSectionView.swift */; }; 049AC4C62BC3E55300F857F4 /* YHServiceSectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 049AC4C52BC3E55300F857F4 /* YHServiceSectionView.swift */; };
049D62C02C6F1E6700E811A1 /* YHFamilyInfoWarmTipsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 049D62BF2C6F1E6700E811A1 /* YHFamilyInfoWarmTipsView.swift */; };
04A271232BABFF3200652B1B /* YHCertificateUploadTypeCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04A271222BABFF3200652B1B /* YHCertificateUploadTypeCell.swift */; }; 04A271232BABFF3200652B1B /* YHCertificateUploadTypeCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04A271222BABFF3200652B1B /* YHCertificateUploadTypeCell.swift */; };
04A271252BAC33BB00652B1B /* YHFilePreviewTool.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04A271242BAC33BB00652B1B /* YHFilePreviewTool.swift */; }; 04A271252BAC33BB00652B1B /* YHFilePreviewTool.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04A271242BAC33BB00652B1B /* YHFilePreviewTool.swift */; };
04A671592B9F18C800C1FB91 /* YHCertificateUploadSheetView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04A671582B9F18C800C1FB91 /* YHCertificateUploadSheetView.swift */; }; 04A671592B9F18C800C1FB91 /* YHCertificateUploadSheetView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04A671582B9F18C800C1FB91 /* YHCertificateUploadSheetView.swift */; };
...@@ -987,6 +988,7 @@ ...@@ -987,6 +988,7 @@
049AB5ED2C0EF68700155DDF /* YHOrderTipsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHOrderTipsView.swift; sourceTree = "<group>"; }; 049AB5ED2C0EF68700155DDF /* YHOrderTipsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHOrderTipsView.swift; sourceTree = "<group>"; };
049AB5EF2C0F339200155DDF /* YHVideoPlaySettingVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHVideoPlaySettingVC.swift; sourceTree = "<group>"; }; 049AB5EF2C0F339200155DDF /* YHVideoPlaySettingVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHVideoPlaySettingVC.swift; sourceTree = "<group>"; };
049AC4C52BC3E55300F857F4 /* YHServiceSectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHServiceSectionView.swift; sourceTree = "<group>"; }; 049AC4C52BC3E55300F857F4 /* YHServiceSectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHServiceSectionView.swift; sourceTree = "<group>"; };
049D62BF2C6F1E6700E811A1 /* YHFamilyInfoWarmTipsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHFamilyInfoWarmTipsView.swift; sourceTree = "<group>"; };
04A271222BABFF3200652B1B /* YHCertificateUploadTypeCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateUploadTypeCell.swift; sourceTree = "<group>"; }; 04A271222BABFF3200652B1B /* YHCertificateUploadTypeCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateUploadTypeCell.swift; sourceTree = "<group>"; };
04A271242BAC33BB00652B1B /* YHFilePreviewTool.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHFilePreviewTool.swift; sourceTree = "<group>"; }; 04A271242BAC33BB00652B1B /* YHFilePreviewTool.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHFilePreviewTool.swift; sourceTree = "<group>"; };
04A671582B9F18C800C1FB91 /* YHCertificateUploadSheetView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHCertificateUploadSheetView.swift; sourceTree = "<group>"; }; 04A671582B9F18C800C1FB91 /* YHCertificateUploadSheetView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHCertificateUploadSheetView.swift; sourceTree = "<group>"; };
...@@ -2238,6 +2240,7 @@ ...@@ -2238,6 +2240,7 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
046A95302C6EFB980059326A /* YHFamilyMemberRiskWarningAlertView.swift */, 046A95302C6EFB980059326A /* YHFamilyMemberRiskWarningAlertView.swift */,
049D62BF2C6F1E6700E811A1 /* YHFamilyInfoWarmTipsView.swift */,
); );
path = V; path = V;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -3801,6 +3804,7 @@ ...@@ -3801,6 +3804,7 @@
045EEE892B9F171A0022A143 /* YHPreviewBaseViewController.swift in Sources */, 045EEE892B9F171A0022A143 /* YHPreviewBaseViewController.swift in Sources */,
045EEEA42B9F171A0022A143 /* YHImageResultViewController.swift in Sources */, 045EEEA42B9F171A0022A143 /* YHImageResultViewController.swift in Sources */,
045EEE812B9F171A0022A143 /* YHPreviewQuestionAndAnswerModel.swift in Sources */, 045EEE812B9F171A0022A143 /* YHPreviewQuestionAndAnswerModel.swift in Sources */,
049D62C02C6F1E6700E811A1 /* YHFamilyInfoWarmTipsView.swift in Sources */,
04C85DDF2C364FE9008B20D6 /* YHAboutUsCell.swift in Sources */, 04C85DDF2C364FE9008B20D6 /* YHAboutUsCell.swift in Sources */,
045EEEB02B9F171A0022A143 /* YHWorkItemView.swift in Sources */, 045EEEB02B9F171A0022A143 /* YHWorkItemView.swift in Sources */,
0468D4222B493A5E00CFB916 /* YHPhoneMessageView.swift in Sources */, 0468D4222B493A5E00CFB916 /* YHPhoneMessageView.swift in Sources */,
......
//
// YHFamilyInfoWarmTipsView.swift
// galaxy
//
// Created by edy on 2024/8/16.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import AttributedString
class YHFamilyInfoWarmTipsView: UIView {
lazy var blackMaskView: UIView = {
let view = UIView()
view.backgroundColor = .alertMaskColor
return view
}()
lazy var whiteContentView: UIView = {
let view = UIView()
view.backgroundColor = .white
view.layer.cornerRadius = kCornerRadius6
return view
}()
lazy var titleLabel: UILabel = {
let label = UILabel()
label.textAlignment = .center
label.font = UIFont.PFSC_M(ofSize: 17)
label.textColor = UIColor.mainTextColor
label.text = "温馨提示"
return label
}()
lazy var lineView: UIView = {
let view = UIView()
view.backgroundColor = .separatorColor
return view
}()
lazy var detail1Label: UILabel = {
var label = UILabel()
label.numberOfLines = 0
let a: ASAttributedString = .init("电子签证缴费截止日期:", .font(UIFont.PFSC_M(ofSize: 15)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
let b: ASAttributedString = .init("一般为正式获批信下发后", .font(UIFont.PFSC_R(ofSize: 15)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
let c: ASAttributedString = .init("3个月内", .font(UIFont.PFSC_B(ofSize: 15)),.foreground(UIColor.brandMainColor))
let d: ASAttributedString = .init("(请以获批函规定日期为准)", .font(UIFont.PFSC_R(ofSize: 15)),.foreground(UIColor.brandMainColor))
label.attributed.text = a+b+c+d
return label
}()
lazy var detail2Label: UILabel = {
var label = UILabel()
label.numberOfLines = 0
label.font = UIFont.PFSC_R(ofSize: 14.0)
let a: ASAttributedString = .init("赴港激活截止日期:", .font(UIFont.PFSC_M(ofSize: 15)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
let b: ASAttributedString = .init("一般为电子签证缴费后", .font(UIFont.PFSC_R(ofSize: 15)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
let c: ASAttributedString = .init("3个月内", .font(UIFont.PFSC_B(ofSize: 15)),.foreground(UIColor.brandMainColor))
let d: ASAttributedString = .init("(请以缴费后电子签证详情为准),入境香港即代表激活", .font(UIFont.PFSC_R(ofSize: 15)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
label.attributed.text = a+b+c+d
return label
}()
lazy var detail3Label: UILabel = {
var label = UILabel()
label.numberOfLines = 0
let a: ASAttributedString = .init("更多详情可点击页面上方", .font(UIFont.PFSC_R(ofSize: 15)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
let b: ASAttributedString = .init("《香港身份获批操作指引》", .font(UIFont.PFSC_B(ofSize: 15)),.foreground(UIColor.brandMainColor))
label.attributed.text = a+b
return label
}()
lazy var confirmBtn: UIButton = {
let button = UIButton()
button.titleLabel?.font = UIFont.PFSC_R(ofSize: 14)
button.setTitle("好的", for: .normal)
button.setTitleColor(UIColor.white, for: .normal)
button.backgroundColor = .brandMainColor
button.addTarget(self, action: #selector(didConfirmBtnClicked), for: .touchUpInside)
button.layer.cornerRadius = kCornerRadius3
return button
}()
static func tipsView() -> YHFamilyInfoWarmTipsView {
let view = YHFamilyInfoWarmTipsView(frame: UIScreen.main.bounds)
return view
}
@objc func show() {
UIApplication.shared.yhKeyWindow()?.addSubview(self)
}
@objc func dismiss() {
self.removeFromSuperview()
}
@objc func didConfirmBtnClicked() {
self.dismiss()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override init(frame: CGRect) {
super.init(frame: frame)
createUI()
}
func createUI() {
self.addSubview(blackMaskView)
self.addSubview(whiteContentView)
whiteContentView.addSubview(titleLabel)
whiteContentView.addSubview(lineView)
whiteContentView.addSubview(detail1Label)
whiteContentView.addSubview(detail2Label)
whiteContentView.addSubview(detail3Label)
whiteContentView.addSubview(confirmBtn)
blackMaskView.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
whiteContentView.snp.makeConstraints { make in
make.left.equalTo(38)
make.right.equalTo(-38)
make.centerY.equalToSuperview()
}
titleLabel.snp.makeConstraints { make in
make.top.equalTo(16)
make.height.equalTo(24)
make.left.equalTo(21)
make.right.equalTo(-21)
}
lineView.snp.makeConstraints { make in
make.top.equalTo(titleLabel.snp.bottom).offset(12)
make.height.equalTo(0.5)
make.left.equalTo(0)
make.right.equalTo(0)
}
detail1Label.snp.makeConstraints { make in
make.left.equalTo(21)
make.right.equalTo(-21)
make.top.equalTo(lineView.snp.bottom).offset(16)
}
detail2Label.snp.makeConstraints { make in
make.left.equalTo(21)
make.right.equalTo(-21)
make.top.equalTo(detail1Label.snp.bottom).offset(16)
}
detail3Label.snp.makeConstraints { make in
make.left.equalTo(21)
make.right.equalTo(-21)
make.top.equalTo(detail2Label.snp.bottom).offset(16)
}
confirmBtn.snp.makeConstraints { make in
make.top.equalTo(detail3Label.snp.bottom).offset(21)
make.left.equalTo(16)
make.right.equalTo(-16)
make.bottom.equalTo(-16)
make.height.equalTo(45)
}
}
}
...@@ -337,11 +337,6 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource { ...@@ -337,11 +337,6 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
return return
} }
if true { // test dy
YHFamilyMemberRiskWarningAlertView.alertView().show()
return
}
let item: PersonalModuleItem = items[indexPath.row] let item: PersonalModuleItem = items[indexPath.row]
switch item.type { switch item.type {
case .myCard://我的名片 case .myCard://我的名片
......
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