Commit 5552beec9a673987c8fce5ef8cbf8106e6b330a9
1 parent
a57fb0db
* [x] 数字简历页面-证书列表页-本人承诺底部icon没有
* [x] 获奖情况-删除成功没有刷新 * [x] 数字简历页面-默认进入-姓名和性别刚开始重叠 * [x] 数字简历页面-默认进入-设置经验后才会显示 * [x] 数字简历页面-默认进入-设置没有输入手机号,开关不展示手机号 但是简历页面显示手机号
Showing
5 changed files
with
26 additions
and
6 deletions
metaCode/Classes/Common/Util/CNLiveCommonQiniuTool.swift
| @@ -8,6 +8,7 @@ | @@ -8,6 +8,7 @@ | ||
| 8 | import Foundation | 8 | import Foundation |
| 9 | import Qiniu | 9 | import Qiniu |
| 10 | import CNLiveRequestBastKit | 10 | import CNLiveRequestBastKit |
| 11 | +import CNLiveBaseTools | ||
| 11 | 12 | ||
| 12 | typealias ProgressBlcok = (_ key: String,_ percent: CGFloat) -> Void | 13 | typealias ProgressBlcok = (_ key: String,_ percent: CGFloat) -> Void |
| 13 | typealias SuccessBlock = (_ key: String,_ url: String) -> Void | 14 | typealias SuccessBlock = (_ key: String,_ url: String) -> Void |
| @@ -116,6 +117,8 @@ class UploadManager: NSObject { | @@ -116,6 +117,8 @@ class UploadManager: NSObject { | ||
| 116 | param.setValue("POST", forKey: "verb") | 117 | param.setValue("POST", forKey: "verb") |
| 117 | param.setValue("2", forKey: "storageType") | 118 | param.setValue("2", forKey: "storageType") |
| 118 | param.setValue(kBucketName_QN, forKey: "bucket") | 119 | param.setValue(kBucketName_QN, forKey: "bucket") |
| 120 | + param.setValue("\(CNLiveTimeTools.getNow10NumTimestamp())", forKey: "timestamp") | ||
| 121 | + | ||
| 119 | let custom_param = NSMutableDictionary() | 122 | let custom_param = NSMutableDictionary() |
| 120 | custom_param.setValue("802_li40qhp922", forKey: "appId")//CNLiveMCEnvironmentManager.shared.appId | 123 | custom_param.setValue("802_li40qhp922", forKey: "appId")//CNLiveMCEnvironmentManager.shared.appId |
| 121 | custom_param.setValue("ae3a7ad3e4b9beb7cfe2078db648ebb89aa249ca2e82ac", forKey: "appKey")//CNLiveMCEnvironmentManager.shared.appKey | 124 | custom_param.setValue("ae3a7ad3e4b9beb7cfe2078db648ebb89aa249ca2e82ac", forKey: "appKey")//CNLiveMCEnvironmentManager.shared.appKey |
metaCode/Classes/Main/HomePage/Controller/DigitalAuth/证书相关页面/CNLiveVitaeVocationalCertificateController.swift
| @@ -104,7 +104,7 @@ class CNLiveVitaeVocationalCertificateController:CNLiveBaseViewController,UITabl | @@ -104,7 +104,7 @@ class CNLiveVitaeVocationalCertificateController:CNLiveBaseViewController,UITabl | ||
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { | 106 | func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { |
| 107 | - return adapt_length(length: 277)+346 | 107 | + return adapt_length(length: 277)+326 |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | 110 |
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/DigitalResume/CNLiveDigitalResumeCell.swift
| @@ -422,14 +422,15 @@ class CNLiveDigitalResumeCell: UITableViewCell { | @@ -422,14 +422,15 @@ class CNLiveDigitalResumeCell: UITableViewCell { | ||
| 422 | self.whiteBgView.addSubview(self.phoneTitleLabel) | 422 | self.whiteBgView.addSubview(self.phoneTitleLabel) |
| 423 | let (gender, age) = self.extractGenderAndAge(fromIDCardNumber: UserInfoManager.shared.userInfo.currentUser?.idNo ?? "") | 423 | let (gender, age) = self.extractGenderAndAge(fromIDCardNumber: UserInfoManager.shared.userInfo.currentUser?.idNo ?? "") |
| 424 | let ageStr = String(format: "%d", age ?? 0) | 424 | let ageStr = String(format: "%d", age ?? 0) |
| 425 | - self.phoneTitleLabel.text = gender+" | "+ageStr+"岁"+" | "+UserInfoManager.shared.userInfo.mobile | 425 | + self.phoneTitleLabel.text = gender+" | "+ageStr+"岁"//+" | "+UserInfoManager.shared.userInfo.mobile |
| 426 | self.phoneTitleLabel.sizeToFit() | 426 | self.phoneTitleLabel.sizeToFit() |
| 427 | self.phoneTitleLabel.snp.makeConstraints { make in | 427 | self.phoneTitleLabel.snp.makeConstraints { make in |
| 428 | make.left.equalTo(15) | 428 | make.left.equalTo(15) |
| 429 | - make.top.equalTo(self.jianliIconBgView.snp.bottom).offset(1) | 429 | + make.top.equalTo(self.authNameTitleLabel.snp.bottom).offset(adapt_length(length: 8)) |
| 430 | make.width.equalTo(self.phoneTitleLabel.size.width) | 430 | make.width.equalTo(self.phoneTitleLabel.size.width) |
| 431 | make.height.equalTo(self.phoneTitleLabel.size.height) | 431 | make.height.equalTo(self.phoneTitleLabel.size.height) |
| 432 | } | 432 | } |
| 433 | + | ||
| 433 | 434 | ||
| 434 | self.whiteBgView.addSubview(self.weizhiTitleLabel) | 435 | self.whiteBgView.addSubview(self.weizhiTitleLabel) |
| 435 | self.weizhiTitleLabel.snp.makeConstraints { make in | 436 | self.weizhiTitleLabel.snp.makeConstraints { make in |
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/Vitae/Certificate/CNLiveVocationalCertificateFirCell.swift
| @@ -167,7 +167,6 @@ class CNLiveVocationalCertificateFirCell: UITableViewCell, UICollectionViewDataS | @@ -167,7 +167,6 @@ class CNLiveVocationalCertificateFirCell: UITableViewCell, UICollectionViewDataS | ||
| 167 | lazy var authGuanfangIconImgView :UIImageView = { | 167 | lazy var authGuanfangIconImgView :UIImageView = { |
| 168 | let iconImgView = UIImageView() | 168 | let iconImgView = UIImageView() |
| 169 | iconImgView.image = UIImage(named: "mine_jianli_guanfnagAuth") | 169 | iconImgView.image = UIImage(named: "mine_jianli_guanfnagAuth") |
| 170 | - iconImgView.isHidden = true | ||
| 171 | return iconImgView | 170 | return iconImgView |
| 172 | }() | 171 | }() |
| 173 | 172 | ||
| @@ -285,6 +284,8 @@ class CNLiveVocationalCertificateFirCell: UITableViewCell, UICollectionViewDataS | @@ -285,6 +284,8 @@ class CNLiveVocationalCertificateFirCell: UITableViewCell, UICollectionViewDataS | ||
| 285 | self.authGuanfangIconImgView.snp.makeConstraints { make in | 284 | self.authGuanfangIconImgView.snp.makeConstraints { make in |
| 286 | make.bottom.equalToSuperview().offset(-20) | 285 | make.bottom.equalToSuperview().offset(-20) |
| 287 | make.left.equalTo(15) | 286 | make.left.equalTo(15) |
| 287 | + make.width.equalTo(83) | ||
| 288 | + make.height.equalTo(16) | ||
| 288 | } | 289 | } |
| 289 | } | 290 | } |
| 290 | 291 | ||
| @@ -310,7 +311,22 @@ class CNLiveVocationalCertificateFirCell: UITableViewCell, UICollectionViewDataS | @@ -310,7 +311,22 @@ class CNLiveVocationalCertificateFirCell: UITableViewCell, UICollectionViewDataS | ||
| 310 | } | 311 | } |
| 311 | self.cerStatusDetailTitleLabel.text = isAuthed ? "已验证" : "未验证" | 312 | self.cerStatusDetailTitleLabel.text = isAuthed ? "已验证" : "未验证" |
| 312 | self.authIconImgView.isHidden = isAuthed ? false : true | 313 | self.authIconImgView.isHidden = isAuthed ? false : true |
| 313 | - self.authGuanfangIconImgView.isHidden = isAuthed ? false : true | 314 | + self.authGuanfangIconImgView.image = isAuthed ? UIImage(named: "mine_jianli_guanfnagAuth") : UIImage(named: "mine_jianli_zhenshi") |
| 315 | + if isAuthed{ | ||
| 316 | + self.authGuanfangIconImgView.snp.remakeConstraints { make in | ||
| 317 | + make.bottom.equalToSuperview().offset(-20) | ||
| 318 | + make.left.equalTo(15) | ||
| 319 | + make.width.equalTo(68) | ||
| 320 | + make.height.equalTo(19) | ||
| 321 | + } | ||
| 322 | + }else{ | ||
| 323 | + self.authGuanfangIconImgView.snp.remakeConstraints { make in | ||
| 324 | + make.bottom.equalToSuperview().offset(-20) | ||
| 325 | + make.left.equalTo(15) | ||
| 326 | + make.width.equalTo(83) | ||
| 327 | + make.height.equalTo(16) | ||
| 328 | + } | ||
| 329 | + } | ||
| 314 | } | 330 | } |
| 315 | 331 | ||
| 316 | func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { | 332 | func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { |
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/Vitae/Work/CNLiveVitaeWorkCell.swift
| @@ -636,7 +636,7 @@ class CNLiveVitaeWorkCell: UITableViewCell{ | @@ -636,7 +636,7 @@ class CNLiveVitaeWorkCell: UITableViewCell{ | ||
| 636 | }else{ | 636 | }else{ |
| 637 | type = "5" | 637 | type = "5" |
| 638 | id = self.awardModel?.id ?? "" | 638 | id = self.awardModel?.id ?? "" |
| 639 | - vsid = self.workModel?.vsid ?? "" | 639 | + vsid = self.awardModel?.vsid ?? "" |
| 640 | } | 640 | } |
| 641 | CNLiveVitaeViewModel.deleteVitae(id: id, vsid: vsid, type: type) { result, status in | 641 | CNLiveVitaeViewModel.deleteVitae(id: id, vsid: vsid, type: type) { result, status in |
| 642 | if status == .success{ | 642 | if status == .success{ |