Commit 9d742364 authored by Steven杜宇's avatar Steven杜宇

// 原则批

parent 13ee1028
......@@ -21,8 +21,8 @@ Bugly(bugly.qq.com/bugly.qq.tds.com)符号表工具上传工具包 V3.3.5
##[info]packSymbolFile file
##[info]workspace:null
##[info]buildPackageType:app
##[info]checkSymbolUpload request json is {"appID":"3b10faa43e","symbolUUIDs":["dde1fe1f7690329d9ba49ff0cdf36758","067701553e23321d9ff8de895e8956dc","4a48f4fdee753cd7b79374b64b4f781a","c6f99418189e31658c9bca8cce338549","1700a8080e6c3ec6b43ae0dc1e94affb","e2e29881feed3e158bb6eb4a8e42d08d","24ef35e26edf3817a1fae42cd7ff285a","f325896ce90133b582eb02fd112f5817","7cc2170f7b6a3e359926abe00417cf3a","de905b01308e30f8843c0a415ab16eac","93fc29f9dbd135e8aa0f066cc5258472","c8c2200a65b13066bbc13794390a4242","b51428e402173b66bde0390fa04376ef","e86d4e10779b3ae993ffd78b34930d2d","0449640aab913cc8938189237bf88580","21280309a0b833b69f54e1c765fb41d0","6f37e6fae8233ab1bc3096f93e18e757","d9db75ef38f03b5c81779f5e6b2fc760","c1807b8e31a83dff9f5c82ccc410a31a","1d08656404be37b5b05ba7566d06705e","74839dc07b7937a5a7f935e587908058"]}
##[info]retCode: 200 response message: {"statusCode":0,"msg":"部分符号表未上传: 1700a8080e6c3ec6b43ae0dc1e94affb","notExistUUIDs":["1700a8080e6c3ec6b43ae0dc1e94affb"]}
##[info]checkSymbolUpload request json is {"appID":"3b10faa43e","symbolUUIDs":["dde1fe1f7690329d9ba49ff0cdf36758","067701553e23321d9ff8de895e8956dc","4a48f4fdee753cd7b79374b64b4f781a","c6f99418189e31658c9bca8cce338549","e2e29881feed3e158bb6eb4a8e42d08d","24ef35e26edf3817a1fae42cd7ff285a","f325896ce90133b582eb02fd112f5817","7cc2170f7b6a3e359926abe00417cf3a","de905b01308e30f8843c0a415ab16eac","93fc29f9dbd135e8aa0f066cc5258472","c8c2200a65b13066bbc13794390a4242","b51428e402173b66bde0390fa04376ef","e86d4e10779b3ae993ffd78b34930d2d","0449640aab913cc8938189237bf88580","4c60d210eb13351da910d2422730d9bf","21280309a0b833b69f54e1c765fb41d0","6f37e6fae8233ab1bc3096f93e18e757","d9db75ef38f03b5c81779f5e6b2fc760","c1807b8e31a83dff9f5c82ccc410a31a","1d08656404be37b5b05ba7566d06705e","74839dc07b7937a5a7f935e587908058"]}
##[info]retCode: 200 response message: {"statusCode":0,"msg":"部分符号表未上传: 4c60d210eb13351da910d2422730d9bf","notExistUUIDs":["4c60d210eb13351da910d2422730d9bf"]}
##[info]find dsym file:[/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM]
##[info]pack dsym file
##[info]extractStif source file:/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM dest file:/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM.zip
......@@ -35,7 +35,7 @@ Bugly Symtab Tool for iOS: 3.3.16
[SymtabTool-I] Begin to parse file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/galaxy
[SymtabTool-I] Architecture: arm64
[SymtabTool-I] Successfully parsed the file!
/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/galaxy [arm64] 1700a8080e6c3ec6b43ae0dc1e94affb
/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/galaxy [arm64] 4c60d210eb13351da910d2422730d9bf
[SymtabTool-I] Extracting symtab file: galaxy
[SymtabTool-I] Begin to parse file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/galaxy
......@@ -43,34 +43,34 @@ Bugly Symtab Tool for iOS: 3.3.16
[SymtabTool-I] Successfully parsed the file!
[SymtabTool-I] Begin to parse file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/galaxy
[SymtabTool-I] Architecture: arm64
[SymtabTool-I] Begin to create symtab file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/buglySymbol&galaxy&arm64&1700a8080e6c3ec6b43ae0dc1e94affb.symbol
[SymtabTool-I] Begin to create symtab file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/buglySymbol&galaxy&arm64&4c60d210eb13351da910d2422730d9bf.symbol
[SymtabTool-I] Successfully created symtab file!
[SymtabTool-I] Add stif to symtab zip file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/buglySymbol&galaxy&arm64&1700a8080e6c3ec6b43ae0dc1e94affb.stif
[SymtabTool-I] Begin to zip stif file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/buglySymbol&galaxy&arm64&1700a8080e6c3ec6b43ae0dc1e94affb
[SymtabTool-I] Add stif to symtab zip file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/buglySymbol&galaxy&arm64&4c60d210eb13351da910d2422730d9bf.stif
[SymtabTool-I] Begin to zip stif file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM/Contents/Resources/DWARF/buglySymbol&galaxy&arm64&4c60d210eb13351da910d2422730d9bf
[SymtabTool-I] Successfully zipped stif file!
[SymtabTool-I] Begin to zip symtab file: /Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM.zip
[SymtabTool-I] Successfully zipped symtab file!
##[info]extract stif success from:/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM to:/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM.zip
##[info]extractStifFileDetails, visit file name is : buglySymbol&galaxy&arm64&1700a8080e6c3ec6b43ae0dc1e94affb.zip
##[info]extractStifFileDetails, visit file name is : buglySymbol&galaxy&arm64&4c60d210eb13351da910d2422730d9bf.zip
##[info]parseStifFileName prefix : buglySymbol arg1 : galaxy
##[info]parseStifFileName arg2 : arm64 uuid : 1700a8080e6c3ec6b43ae0dc1e94affb
##[info]parseStifFileName arg2 : arm64 uuid : 4c60d210eb13351da910d2422730d9bf
##[info]parseStifFileName endfix : zip
##[info]zip stif to /Users/edy/galaxy/galaxy/buglybin/symbolResult/BuglyIosStifListZip.zip
##[info]sourceZipFile file path is :/Users/edy/galaxy/galaxy/App/ad-hoc/.upload_dsym_to_bugly_tmp/galaxy.app.dSYM.zip
##[info]dsym file detail :[SymbolFileDetail{name='buglySymbol&galaxy&arm64&1700a8080e6c3ec6b43ae0dc1e94affb.zip, uuid='1700a8080e6c3ec6b43ae0dc1e94affb, arch='arm64, type=101, moduleName='galaxy}]
##[info]dsym file detail :[SymbolFileDetail{name='buglySymbol&galaxy&arm64&4c60d210eb13351da910d2422730d9bf.zip, uuid='4c60d210eb13351da910d2422730d9bf, arch='arm64, type=101, moduleName='galaxy}]
##[info]target stif file is :/Users/edy/galaxy/galaxy/buglybin/symbolResult/BuglyIosStifListZip.zip
##[info]symbolFileDetailList size is :1
##[info]uploadSymbolFile file:/Users/edy/galaxy/galaxy/buglybin/symbolResult/BuglyIosStifListZip.zip size:1534418 child count:1
##[info]uploadSymbolFile file:/Users/edy/galaxy/galaxy/buglybin/symbolResult/BuglyIosStifListZip.zip size:1540177 child count:1
##[info]now begin to uploadFile
##[info]buildName :null&null
##[info]buildID :null
##[info]envtype is null
##[info]request upload Info Url is https://symbol-v2.bugly.qq.com/trpc.eff_tool.symbol_upload_gateway.SymbolUploadGateway/uploadInfo
##[info]request json is {"appID":"3b10faa43e","authSign":"e4bd292e-596d-4942-afda-dd841808218e","appVersion":"0.5.0.8","appBundleID":"com.intelligence.galaxy","appPlatform":2,"appBuildNumber":null,"fileType":201,"fileSize":1534418,"fileMD5":"18c14bf2452b6fffeb19e634658a718f","clientType":7,"clientVersion":"3.3.5","buildPlatform":1,"buildID":null,"buildName":"null&null","fileInfoList":[{"name":"buglySymbol&galaxy&arm64&1700a8080e6c3ec6b43ae0dc1e94affb.zip","uuid":"1700a8080e6c3ec6b43ae0dc1e94affb","arch":"arm64","type":101,"moduleName":"galaxy"}],"buildRepo":null,"buildBranch":null,"buildCommitID":null,"appType":0}
##[info]retCode: 200 response message: {"statusCode":0,"msg":"success","uploadReqID":"3b10faa43e-85c22e77-8dd0-4d66-859b-6f97fd4549ad"}
##[info]request json is {"appID":"3b10faa43e","authSign":"e4bd292e-596d-4942-afda-dd841808218e","appVersion":"0.5.0.8","appBundleID":"com.intelligence.galaxy","appPlatform":2,"appBuildNumber":null,"fileType":201,"fileSize":1540177,"fileMD5":"c9404146458b4b3f331fce1d9c9f0937","clientType":7,"clientVersion":"3.3.5","buildPlatform":1,"buildID":null,"buildName":"null&null","fileInfoList":[{"name":"buglySymbol&galaxy&arm64&4c60d210eb13351da910d2422730d9bf.zip","uuid":"4c60d210eb13351da910d2422730d9bf","arch":"arm64","type":101,"moduleName":"galaxy"}],"buildRepo":null,"buildBranch":null,"buildCommitID":null,"appType":0}
##[info]retCode: 200 response message: {"statusCode":0,"msg":"success","uploadReqID":"3b10faa43e-1502bd79-dff2-4df0-a8a4-99765bb6e807"}
##[info]now begin to uploadFileContent
##[info]request uploadFileurl is https://symbol-v2.bugly.qq.com/trpc.eff_tool.symbol_upload_gateway.SymbolUploadGateway/uploadFile
##[info]retCode: 200 response message: {"statusCode":0,"msg":"success","uploadReqID":"3b10faa43e-85c22e77-8dd0-4d66-859b-6f97fd4549ad"}
##[info]retCode: 200 response message: {"statusCode":0,"msg":"success","uploadReqID":"3b10faa43e-1502bd79-dff2-4df0-a8a4-99765bb6e807"}
##[info]event_name:landun_symbol_plugin_execute_result
event_res:success
err_code:0
......@@ -80,10 +80,10 @@ symbol_build_id:com.intelligence.galaxy
user_app_platform:IOS
apk_arch_list:null
symbol_file_arch_list:null
event_duration:5082
event_duration:4760
user_client_type:7
origin_symbol_file_size_byte:23092515
symbol_file_size_byte:1534418
origin_symbol_file_size_byte:23163529
symbol_file_size_byte:1540177
##[info]atta statistics upload response code: 200 response message:
##[info]-----------------------------------------------------------------------------
##[info]-----------------------------------------------------------------------------
......
......@@ -26,7 +26,7 @@
0425E6462BA9678E00A5E763 /* YHSchemeHeadTotalScoreView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0425E6452BA9678E00A5E763 /* YHSchemeHeadTotalScoreView.swift */; };
0425E6482BA96B4100A5E763 /* YHSchemeHeadScoreItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0425E6472BA96B4100A5E763 /* YHSchemeHeadScoreItemView.swift */; };
0428E2312BDB88620032A7A1 /* YHPrincleViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0428E2302BDB88620032A7A1 /* YHPrincleViewModel.swift */; };
0428E2332BDB88A00032A7A1 /* YHPrincleModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0428E2322BDB88A00032A7A1 /* YHPrincleModel.swift */; };
0428E2332BDB88A00032A7A1 /* YHPrincleGroupModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0428E2322BDB88A00032A7A1 /* YHPrincleGroupModel.swift */; };
0435FA7F2BA178C100024EAE /* YHCommonAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0435FA7E2BA178C100024EAE /* YHCommonAlertView.swift */; };
0435FA812BA186D600024EAE /* YHMyFileMethodTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0435FA802BA186D600024EAE /* YHMyFileMethodTableViewCell.swift */; };
0435FA832BA2DEB100024EAE /* YHCardButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0435FA822BA2DEB100024EAE /* YHCardButton.swift */; };
......@@ -480,7 +480,7 @@
0425E6452BA9678E00A5E763 /* YHSchemeHeadTotalScoreView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSchemeHeadTotalScoreView.swift; sourceTree = "<group>"; };
0425E6472BA96B4100A5E763 /* YHSchemeHeadScoreItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSchemeHeadScoreItemView.swift; sourceTree = "<group>"; };
0428E2302BDB88620032A7A1 /* YHPrincleViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPrincleViewModel.swift; sourceTree = "<group>"; };
0428E2322BDB88A00032A7A1 /* YHPrincleModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPrincleModel.swift; sourceTree = "<group>"; };
0428E2322BDB88A00032A7A1 /* YHPrincleGroupModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPrincleGroupModel.swift; sourceTree = "<group>"; };
0435FA7E2BA178C100024EAE /* YHCommonAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCommonAlertView.swift; sourceTree = "<group>"; };
0435FA802BA186D600024EAE /* YHMyFileMethodTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMyFileMethodTableViewCell.swift; sourceTree = "<group>"; };
0435FA822BA2DEB100024EAE /* YHCardButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCardButton.swift; sourceTree = "<group>"; };
......@@ -1052,7 +1052,7 @@
0428E22E2BDB88310032A7A1 /* M */ = {
isa = PBXGroup;
children = (
0428E2322BDB88A00032A7A1 /* YHPrincleModel.swift */,
0428E2322BDB88A00032A7A1 /* YHPrincleGroupModel.swift */,
);
path = M;
sourceTree = "<group>";
......@@ -2678,7 +2678,7 @@
A5C382CA2B5E1F4C00C5E65C /* YHLoginTipsView.swift in Sources */,
045EEEE92B9F171A0022A143 /* YHFamilyRequestViewModel.swift in Sources */,
044867B42BA1953B00DFAD4A /* YHCertificateFilterView.swift in Sources */,
0428E2332BDB88A00032A7A1 /* YHPrincleModel.swift in Sources */,
0428E2332BDB88A00032A7A1 /* YHPrincleGroupModel.swift in Sources */,
045EEEDF2B9F171A0022A143 /* YHCollegeSearchBar.swift in Sources */,
A567E5B52BD7643D00D5D5A0 /* YHSearchInfoBar.swift in Sources */,
A5ACE94B2B4564F7002C94D2 /* YHHUDRotatingImageView.swift in Sources */,
......
......@@ -10,7 +10,7 @@ import UIKit
class YHPrincipleReviewListVC: YHBaseViewController {
var items: [String] = ["", "", ""]
var items: [YHPrincleGroupModel] = []
lazy var tableView: UITableView = {
let tableView = UITableView(frame:.zero, style:.grouped)
tableView.contentInsetAdjustmentBehavior = .never
......@@ -31,6 +31,32 @@ class YHPrincipleReviewListVC: YHBaseViewController {
self.view.backgroundColor = .white
self.gk_navTitle = "原则批"
createUI()
items.removeAll()
let m1 = YHPrincleGroupModel()
m1.fileList = ["新公司在职证明.pdf",
"主申人的曾用名证明文件.pdf",
"无刑事罪行记录证明.pdf",
"新公司在职证明.pdf",
"主申人的曾用名证明文件.pdf",
"无刑事罪行记录证明.pdf"]
let m2 = YHPrincleGroupModel()
m2.fileList = ["新公司在职证明.pdf",
"主申人的曾用名证明文件.pdf"]
let m3 = YHPrincleGroupModel()
m3.fileList = []
let m4 = YHPrincleGroupModel()
m4.fileList = ["新公司在职证明.pdf",
"主申人的曾用名证明文件.pdf",
"主申人的曾用名证明文件.pdf",
"无刑事罪行记录证明.pdf"]
items.append(contentsOf: [m1, m2, m3, m4])
self.tableView.reloadData()
}
func createUI() {
......@@ -56,7 +82,14 @@ extension YHPrincipleReviewListVC: UITableViewDelegate, UITableViewDataSource {
let cell = tableView.dequeueReusableCell(withIdentifier: YHPrincipleGroupReviewListCell.cellReuseIdentifier, for: indexPath) as! YHPrincipleGroupReviewListCell
if 0 <= indexPath.section && indexPath.section < items.count {
let model = items[indexPath.section]
cell.updateModel(model)
cell.expandClick = {
[weak self] isExpand in
guard let self = self else { return }
model.isExpand = isExpand
self.tableView.reloadData()
}
}
return cell
}
......
......@@ -70,14 +70,48 @@ class YHPrincipleGroupReviewItemView: UIView {
class YHPrincipleGroupReviewListCell: UITableViewCell {
static let cellReuseIdentifier = "YHPrincipleGroupReviewListCell"
var itemModel:YHPrincleGroupModel?
var expandClick:((Bool)->())?
var iconImgV: UIImageView!
var titleLabel: UILabel!
var grayView: UIView!
var listTitleLabel: UILabel!
var detailLabel: UILabel!
var statusLabel: UILabel!
var listView: UIView!
var expandBtn: UIButton!
lazy var listTitleLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_M(ofSize: 17)
label.textColor = UIColor.mainTextColor
label.text = "已获得港府甄选名额"
return label
}()
lazy var detailLabel: UILabel = {
let label = UILabel()
label.numberOfLines = 0
label.font = UIFont.PFSC_R(ofSize: 12)
label.textColor = UIColor.labelTextColor2
label.text = "1.新公司在职证明(在申请期间更换了工作时必传)\n2.主申人的曾用名证明文件,例如户口本副本\n3.主申请人的中国无刑事罪行记录证明书副本(由公安局开具)"
return label
}()
lazy var statusLabel: UILabel = {
let label = UILabel()
label.textAlignment = .center
label.font = UIFont.PFSC_R(ofSize: 10)
label.textColor = UIColor.init(hex: 0xFF9900)
label.backgroundColor = UIColor.init(hex:0xFF9900, alpha:0.3)
label.text = "审核中"
label.layer.cornerRadius = 4.0
label.clipsToBounds = true
return label
}()
lazy var listView: UIView = {
let view = UIView()
return view
}()
var items: [String] = []
required init?(coder: NSCoder) {
......@@ -89,10 +123,65 @@ class YHPrincipleGroupReviewListCell: UITableViewCell {
setupUI()
}
func updateList(_ arr:[String]) {
func updateModel(_ model:YHPrincleGroupModel) {
itemModel = model
items.removeAll()
items.append(contentsOf: arr)
items.append(contentsOf: model.fileList)
grayView.isHidden = !model.isExpand
if !model.isExpand {
grayView.removeSubviews()
grayView.snp.remakeConstraints { make in
make.left.right.equalTo(titleLabel)
make.top.equalTo(titleLabel.snp.bottom)
make.height.equalTo(0)
make.bottom.equalToSuperview()
}
return
}
// 展开状态
listView.removeSubviews()
grayView.addSubview(listTitleLabel)
grayView.addSubview(statusLabel)
grayView.addSubview(detailLabel)
grayView.addSubview(listView)
grayView.snp.remakeConstraints { make in
make.left.right.equalTo(titleLabel)
make.top.equalTo(titleLabel.snp.bottom).offset(12.0)
make.bottom.equalToSuperview()
}
listTitleLabel.snp.remakeConstraints { make in
make.left.equalTo(16)
make.top.equalTo(16)
make.height.equalTo(24)
}
statusLabel.snp.remakeConstraints { make in
make.left.equalTo(listTitleLabel.snp.right).offset(8)
make.size.equalTo(CGSize(width: 38, height: 15))
make.centerY.equalTo(listTitleLabel)
make.right.lessThanOrEqualTo(-16)
}
detailLabel.snp.remakeConstraints { make in
make.left.equalTo(16)
make.right.equalTo(-16)
make.top.equalTo(listTitleLabel.snp.bottom).offset(28)
}
listView.snp.remakeConstraints { make in
make.left.right.equalTo(0)
make.top.equalTo(detailLabel.snp.bottom).offset(16)
let listHeight = Double(model.fileList.count) * YHPrincipleGroupReviewItemView.height
make.height.equalTo(listHeight)
let bottomMargin = model.fileList.count > 0 ? -16.0 : 0
make.bottom.equalTo(bottomMargin)
}
var lastItemView: YHPrincipleGroupReviewItemView? = nil
for (index, title) in items.enumerated() {
let itemView = YHPrincipleGroupReviewItemView(frame: .zero)
......@@ -106,9 +195,6 @@ class YHPrincipleGroupReviewListCell: UITableViewCell {
} else {
make.top.equalToSuperview()
}
if index == items.count-1 {
make.bottom.equalTo(0)
}
}
lastItemView = itemView
}
......@@ -116,6 +202,11 @@ class YHPrincipleGroupReviewListCell: UITableViewCell {
self.layoutIfNeeded()
}
@objc func didExpandBtnClicked() {
guard let model = itemModel else { return }
expandClick?(!model.isExpand)
}
func setupUI() {
self.selectionStyle = .none
......@@ -130,38 +221,16 @@ class YHPrincipleGroupReviewListCell: UITableViewCell {
titleLabel.text = "已获得港府甄选名额"
contentView.addSubview(titleLabel)
expandBtn = UIButton()
expandBtn.addTarget(self, action: #selector(didExpandBtnClicked), for: .touchUpInside)
contentView.addSubview(expandBtn)
grayView = UIView()
grayView.backgroundColor = UIColor.init(hex: 0xf8f9fb)
grayView.layer.cornerRadius = 6.0
grayView.clipsToBounds = true
contentView.addSubview(grayView)
listTitleLabel = UILabel()
listTitleLabel.font = UIFont.PFSC_M(ofSize: 17)
listTitleLabel.textColor = UIColor.mainTextColor
listTitleLabel.text = "已获得港府甄选名额"
grayView.addSubview(listTitleLabel)
statusLabel = UILabel()
statusLabel.textAlignment = .center
statusLabel.font = UIFont.PFSC_R(ofSize: 10)
statusLabel.textColor = UIColor.init(hex: 0xFF9900)
statusLabel.backgroundColor = UIColor.init(hex:0xFF9900, alpha:0.3)
statusLabel.text = "审核中"
statusLabel.layer.cornerRadius = 4.0
statusLabel.clipsToBounds = true
grayView.addSubview(statusLabel)
detailLabel = UILabel()
detailLabel.numberOfLines = 0
detailLabel.font = UIFont.PFSC_R(ofSize: 12)
detailLabel.textColor = UIColor.labelTextColor2
detailLabel.text = "1.新公司在职证明(在申请期间更换了工作时必传)\n2.主申人的曾用名证明文件,例如户口本副本\n3.主申请人的中国无刑事罪行记录证明书副本(由公安局开具)"
grayView.addSubview(detailLabel)
listView = UIView()
grayView.addSubview(listView)
iconImgV.snp.makeConstraints { make in
make.left.equalTo(24)
make.width.height.equalTo(14.0)
......@@ -175,40 +244,15 @@ class YHPrincipleGroupReviewListCell: UITableViewCell {
make.height.equalTo(22)
}
expandBtn.snp.makeConstraints { make in
make.left.right.top.equalToSuperview()
make.bottom.equalTo(titleLabel)
}
grayView.snp.makeConstraints { make in
make.top.equalTo(titleLabel.snp.bottom).offset(12)
make.left.right.equalTo(titleLabel)
make.bottom.equalToSuperview()
}
listTitleLabel.snp.makeConstraints { make in
make.left.equalTo(16)
make.top.equalTo(16)
make.height.equalTo(24)
}
statusLabel.snp.makeConstraints { make in
make.left.equalTo(listTitleLabel.snp.right).offset(8)
make.size.equalTo(CGSize(width: 38, height: 15))
make.centerY.equalTo(listTitleLabel)
make.right.lessThanOrEqualTo(-16)
}
detailLabel.snp.makeConstraints { make in
make.left.equalTo(16)
make.right.equalTo(-16)
make.top.equalTo(listTitleLabel.snp.bottom).offset(28)
}
listView.snp.makeConstraints { make in
make.left.right.equalTo(0)
make.top.equalTo(detailLabel.snp.bottom).offset(16)
make.bottom.equalTo(-16)
}
updateList(["新公司在职证明.pdf",
"主申人的曾用名证明文件.pdf",
"无刑事罪行记录证明.pdf"])
}
}
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