Commit 9ba0bf0a7a219480451614f82944f2733e332cd4
1 parent
6c06ccca
自我介绍页面
Showing
7 changed files
with
321 additions
and
4 deletions
metaCode.xcodeproj/project.pbxproj
| @@ -195,6 +195,7 @@ | @@ -195,6 +195,7 @@ | ||
| 195 | 19CB631F2C69ADF500D889F8 /* CNLiveDigitalResumePreViewSelectRenzhengCerController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CB631E2C69ADF500D889F8 /* CNLiveDigitalResumePreViewSelectRenzhengCerController.swift */; }; | 195 | 19CB631F2C69ADF500D889F8 /* CNLiveDigitalResumePreViewSelectRenzhengCerController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CB631E2C69ADF500D889F8 /* CNLiveDigitalResumePreViewSelectRenzhengCerController.swift */; }; |
| 196 | 19CB63222C69B3B600D889F8 /* CNLiveDigitalResumeGuanfangRenzhengCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CB63212C69B3B600D889F8 /* CNLiveDigitalResumeGuanfangRenzhengCell.swift */; }; | 196 | 19CB63222C69B3B600D889F8 /* CNLiveDigitalResumeGuanfangRenzhengCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CB63212C69B3B600D889F8 /* CNLiveDigitalResumeGuanfangRenzhengCell.swift */; }; |
| 197 | 19CB63242C69B3C700D889F8 /* CNLiveDigitalResumeSelectCerCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CB63232C69B3C700D889F8 /* CNLiveDigitalResumeSelectCerCell.swift */; }; | 197 | 19CB63242C69B3C700D889F8 /* CNLiveDigitalResumeSelectCerCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CB63232C69B3C700D889F8 /* CNLiveDigitalResumeSelectCerCell.swift */; }; |
| 198 | + 19CB63262C6B2CD700D889F8 /* CNLiveDigitalResumePreViewMineJianJieController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CB63252C6B2CD700D889F8 /* CNLiveDigitalResumePreViewMineJianJieController.swift */; }; | ||
| 198 | 19CC4D472ADD006600308E2A /* CNDownSlideSingleCourseCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CC4D462ADD006600308E2A /* CNDownSlideSingleCourseCell.swift */; }; | 199 | 19CC4D472ADD006600308E2A /* CNDownSlideSingleCourseCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CC4D462ADD006600308E2A /* CNDownSlideSingleCourseCell.swift */; }; |
| 199 | 19CC4D492ADD06C500308E2A /* UITableView+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CC4D482ADD06C500308E2A /* UITableView+Extension.swift */; }; | 200 | 19CC4D492ADD06C500308E2A /* UITableView+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CC4D482ADD06C500308E2A /* UITableView+Extension.swift */; }; |
| 200 | 19CC4D4B2ADD086F00308E2A /* CNUpSlideDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CC4D4A2ADD086F00308E2A /* CNUpSlideDetailViewController.swift */; }; | 201 | 19CC4D4B2ADD086F00308E2A /* CNUpSlideDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19CC4D4A2ADD086F00308E2A /* CNUpSlideDetailViewController.swift */; }; |
| @@ -545,6 +546,7 @@ | @@ -545,6 +546,7 @@ | ||
| 545 | 19CB631E2C69ADF500D889F8 /* CNLiveDigitalResumePreViewSelectRenzhengCerController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalResumePreViewSelectRenzhengCerController.swift; sourceTree = "<group>"; }; | 546 | 19CB631E2C69ADF500D889F8 /* CNLiveDigitalResumePreViewSelectRenzhengCerController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalResumePreViewSelectRenzhengCerController.swift; sourceTree = "<group>"; }; |
| 546 | 19CB63212C69B3B600D889F8 /* CNLiveDigitalResumeGuanfangRenzhengCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalResumeGuanfangRenzhengCell.swift; sourceTree = "<group>"; }; | 547 | 19CB63212C69B3B600D889F8 /* CNLiveDigitalResumeGuanfangRenzhengCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalResumeGuanfangRenzhengCell.swift; sourceTree = "<group>"; }; |
| 547 | 19CB63232C69B3C700D889F8 /* CNLiveDigitalResumeSelectCerCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalResumeSelectCerCell.swift; sourceTree = "<group>"; }; | 548 | 19CB63232C69B3C700D889F8 /* CNLiveDigitalResumeSelectCerCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalResumeSelectCerCell.swift; sourceTree = "<group>"; }; |
| 549 | + 19CB63252C6B2CD700D889F8 /* CNLiveDigitalResumePreViewMineJianJieController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalResumePreViewMineJianJieController.swift; sourceTree = "<group>"; }; | ||
| 548 | 19CC4D462ADD006600308E2A /* CNDownSlideSingleCourseCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNDownSlideSingleCourseCell.swift; sourceTree = "<group>"; }; | 550 | 19CC4D462ADD006600308E2A /* CNDownSlideSingleCourseCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNDownSlideSingleCourseCell.swift; sourceTree = "<group>"; }; |
| 549 | 19CC4D482ADD06C500308E2A /* UITableView+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITableView+Extension.swift"; sourceTree = "<group>"; }; | 551 | 19CC4D482ADD06C500308E2A /* UITableView+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITableView+Extension.swift"; sourceTree = "<group>"; }; |
| 550 | 19CC4D4A2ADD086F00308E2A /* CNUpSlideDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNUpSlideDetailViewController.swift; sourceTree = "<group>"; }; | 552 | 19CC4D4A2ADD086F00308E2A /* CNUpSlideDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNUpSlideDetailViewController.swift; sourceTree = "<group>"; }; |
| @@ -738,6 +740,7 @@ | @@ -738,6 +740,7 @@ | ||
| 738 | 192ED4662C4F47E50057244C /* CNLiveSelectHangYeController.swift */, | 740 | 192ED4662C4F47E50057244C /* CNLiveSelectHangYeController.swift */, |
| 739 | 1909DC952C6309EC001E7986 /* CNLiveDigitalResumePreViewController.swift */, | 741 | 1909DC952C6309EC001E7986 /* CNLiveDigitalResumePreViewController.swift */, |
| 740 | 19CB631E2C69ADF500D889F8 /* CNLiveDigitalResumePreViewSelectRenzhengCerController.swift */, | 742 | 19CB631E2C69ADF500D889F8 /* CNLiveDigitalResumePreViewSelectRenzhengCerController.swift */, |
| 743 | + 19CB63252C6B2CD700D889F8 /* CNLiveDigitalResumePreViewMineJianJieController.swift */, | ||
| 741 | ); | 744 | ); |
| 742 | path = "数字简历相关页面"; | 745 | path = "数字简历相关页面"; |
| 743 | sourceTree = "<group>"; | 746 | sourceTree = "<group>"; |
| @@ -2401,6 +2404,7 @@ | @@ -2401,6 +2404,7 @@ | ||
| 2401 | 191733022B0C4EAB007BCC04 /* CNLiveSelUplSingleImageView.swift in Sources */, | 2404 | 191733022B0C4EAB007BCC04 /* CNLiveSelUplSingleImageView.swift in Sources */, |
| 2402 | 19C0F7742BDF71CA0097CC8F /* CNLiveDigitalAuthController.swift in Sources */, | 2405 | 19C0F7742BDF71CA0097CC8F /* CNLiveDigitalAuthController.swift in Sources */, |
| 2403 | 798A44EE2A305AAC00815935 /* CNLiveBaseNavigationController.swift in Sources */, | 2406 | 798A44EE2A305AAC00815935 /* CNLiveBaseNavigationController.swift in Sources */, |
| 2407 | + 19CB63262C6B2CD700D889F8 /* CNLiveDigitalResumePreViewMineJianJieController.swift in Sources */, | ||
| 2404 | 1938BD412B4BEC6900390A34 /* CNLiveAlbumListModel.swift in Sources */, | 2408 | 1938BD412B4BEC6900390A34 /* CNLiveAlbumListModel.swift in Sources */, |
| 2405 | 1941347E2C1815E7004FC047 /* AVExtensions.swift in Sources */, | 2409 | 1941347E2C1815E7004FC047 /* AVExtensions.swift in Sources */, |
| 2406 | 7CD675422A2740F8008354C1 /* CNCustomIndexView.swift in Sources */, | 2410 | 7CD675422A2740F8008354C1 /* CNCustomIndexView.swift in Sources */, |
metaCode/Classes/Main/HomePage/Controller/DigitalAuth/数字简历相关页面/CNLiveDigitalResumePreViewMineJianJieController.swift
0 → 100644
| 1 | +// | ||
| 2 | +// CNLiveDigitalResumePreViewMineJianJieController.swift | ||
| 3 | +// metaCode | ||
| 4 | +// | ||
| 5 | +// Created by zx on 2024/8/13. | ||
| 6 | +// 数字简历-自我介绍页面 | ||
| 7 | + | ||
| 8 | +import Foundation | ||
| 9 | +import SnapKit | ||
| 10 | +import QMUIKit | ||
| 11 | + | ||
| 12 | +class CNLiveDigitalResumePreViewMineJianJieController:CNLiveBaseViewController, QMUITextViewDelegate{ | ||
| 13 | + | ||
| 14 | + var introduce = "" | ||
| 15 | + lazy var bgImgView :UIImageView = { | ||
| 16 | + let iconImgView = UIImageView() | ||
| 17 | + iconImgView.image = UIImage(named: "mine_jianli_introduceBg") | ||
| 18 | + return iconImgView | ||
| 19 | + }() | ||
| 20 | + lazy var yuanmaLabel: UILabel = { | ||
| 21 | + let titleLabel = UILabel() | ||
| 22 | + titleLabel.textColor = HexColor("#333333") | ||
| 23 | + titleLabel.text = "自我介绍" | ||
| 24 | + titleLabel.font = BoldFont_24 | ||
| 25 | + titleLabel.adjustsFontSizeToFitWidth=true | ||
| 26 | + return titleLabel | ||
| 27 | + }() | ||
| 28 | + | ||
| 29 | + lazy var bottomDescLabel: UILabel = { | ||
| 30 | + let titleLabel = UILabel() | ||
| 31 | + titleLabel.textColor = HexColor("#B4B4B4") | ||
| 32 | + titleLabel.text = "请确保你本人的信息真实有效\n 上传虚假信息将对你的信用产生负面影响" | ||
| 33 | + titleLabel.font = Font_13 | ||
| 34 | + titleLabel.textAlignment = .center | ||
| 35 | + titleLabel.numberOfLines = 2 | ||
| 36 | + return titleLabel | ||
| 37 | + }() | ||
| 38 | + lazy var yuanmaDescLabel: UILabel = { | ||
| 39 | + let titleLabel = UILabel() | ||
| 40 | + titleLabel.textColor = HexColor("#333333") | ||
| 41 | + titleLabel.text = "Introduce" | ||
| 42 | + titleLabel.font = Font_16 | ||
| 43 | + return titleLabel | ||
| 44 | + }() | ||
| 45 | + lazy var addWorkBtn: UIButton = { | ||
| 46 | + let nextBtn = UIButton(type: .custom) | ||
| 47 | + nextBtn.setTitle("提交", for: .normal) | ||
| 48 | + nextBtn.setTitleColor(.white, for: .normal) | ||
| 49 | + nextBtn.backgroundColor = HexColor("#1961FE") | ||
| 50 | + nextBtn.layer.cornerRadius = 20 | ||
| 51 | + nextBtn.clipsToBounds = true | ||
| 52 | + nextBtn.addTarget(self, action: #selector(addWorkBtnAction), for: .touchUpInside) | ||
| 53 | + return nextBtn | ||
| 54 | + }() | ||
| 55 | + lazy var textView: QMUITextView = { | ||
| 56 | + let textView = QMUITextView.init(frame: .zero) | ||
| 57 | + textView.backgroundColor = HexColor("#FFFFFF") | ||
| 58 | + textView.font = Font_15 | ||
| 59 | + textView.textColor = HexColor("#333333") | ||
| 60 | + textView.placeholderColor = HexColor("#999999") | ||
| 61 | + textView.placeholderMargins = UIEdgeInsets(top: 0, left: 5, bottom: 00, right: 5) | ||
| 62 | + textView.placeholder = "请输入自我介绍" | ||
| 63 | + textView.contentInset = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20) | ||
| 64 | + textView.textAlignment = .left | ||
| 65 | + textView.layer.masksToBounds = true | ||
| 66 | + textView.layer.cornerRadius = 12 | ||
| 67 | + textView.delegate = self | ||
| 68 | + return textView | ||
| 69 | + }() | ||
| 70 | + lazy var huoJiangNumberLabel : UILabel = { | ||
| 71 | + let numberLabel = UILabel.init() | ||
| 72 | + numberLabel.text = "0/500" | ||
| 73 | + numberLabel.textColor = .black | ||
| 74 | + numberLabel.font = Font_15 | ||
| 75 | + numberLabel.textAlignment = .right | ||
| 76 | + return numberLabel | ||
| 77 | + }() | ||
| 78 | + | ||
| 79 | + override func viewDidLoad() { | ||
| 80 | + super.viewDidLoad() | ||
| 81 | + navigationBarHidden = false | ||
| 82 | + titleName = "自我介绍" | ||
| 83 | + self.initUI() | ||
| 84 | + if self.introduce.count > 0{ | ||
| 85 | + self.textView.text = self.introduce | ||
| 86 | + self.huoJiangNumberLabel.text = "\(self.introduce.count)/500" | ||
| 87 | + } | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + deinit {} | ||
| 91 | + func initUI(){ | ||
| 92 | + self.view.backgroundColor = HexColor("#F9F9F9") | ||
| 93 | + | ||
| 94 | + self.view.addSubview(self.bgImgView) | ||
| 95 | + self.bgImgView.snp.makeConstraints { make in | ||
| 96 | + make.top.equalTo(KNavigationHeight) | ||
| 97 | + make.left.right.equalToSuperview() | ||
| 98 | + make.height.equalTo(KSreenWidth*457/375) | ||
| 99 | + } | ||
| 100 | + self.bgImgView.addSubview(self.yuanmaLabel) | ||
| 101 | + self.yuanmaLabel.snp.makeConstraints { make in | ||
| 102 | + make.top.equalTo(59) | ||
| 103 | + make.left.equalTo(30) | ||
| 104 | + } | ||
| 105 | + self.bgImgView.addSubview(self.yuanmaDescLabel) | ||
| 106 | + self.yuanmaDescLabel.snp.makeConstraints { make in | ||
| 107 | + make.top.equalTo(self.yuanmaLabel.snp.bottom).offset(5) | ||
| 108 | + make.left.equalTo(30) | ||
| 109 | + } | ||
| 110 | + | ||
| 111 | + self.view.addSubview(self.bottomDescLabel) | ||
| 112 | + self.bottomDescLabel.snp.makeConstraints { make in | ||
| 113 | + make.left.equalTo(15) | ||
| 114 | + make.right.equalToSuperview().offset(-15) | ||
| 115 | + make.bottom.equalToSuperview().offset(-5) | ||
| 116 | + make.height.equalTo(40) | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + self.view.addSubview(self.addWorkBtn) | ||
| 120 | + self.addWorkBtn.snp.makeConstraints { make in | ||
| 121 | + make.left.equalTo(15) | ||
| 122 | + make.right.equalToSuperview().offset(-15) | ||
| 123 | + make.bottom.equalTo(self.bottomDescLabel.snp.top).offset(-15) | ||
| 124 | + make.height.equalTo(40) | ||
| 125 | + } | ||
| 126 | + | ||
| 127 | + self.view.addSubview(self.textView) | ||
| 128 | + self.textView.snp.makeConstraints { make in | ||
| 129 | + make.left.equalTo(15) | ||
| 130 | + make.right.equalToSuperview().offset(-15) | ||
| 131 | + make.bottom.equalTo(self.addWorkBtn.snp.top).offset(-15) | ||
| 132 | + make.top.equalTo(self.yuanmaDescLabel.snp.bottom).offset(42) | ||
| 133 | + } | ||
| 134 | + self.textView.addSubview(self.huoJiangNumberLabel) | ||
| 135 | + self.huoJiangNumberLabel.snp.makeConstraints { make in | ||
| 136 | + make.width.equalTo(200) | ||
| 137 | + make.bottom.equalToSuperview().offset(-21) | ||
| 138 | + make.right.equalToSuperview().offset(-20) | ||
| 139 | + make.height.equalTo(21) | ||
| 140 | + } | ||
| 141 | + | ||
| 142 | + | ||
| 143 | + } | ||
| 144 | + | ||
| 145 | + | ||
| 146 | + func textViewShouldEndEditing(_ textView: UITextView) -> Bool { | ||
| 147 | +// if textView == self.textView { | ||
| 148 | +// if self.textView.text?.count ?? 0 > 500 { | ||
| 149 | +// showMessage(message: "最大限制500个字") | ||
| 150 | +// return false | ||
| 151 | +// } | ||
| 152 | +// } | ||
| 153 | + return self.textView.resignFirstResponder() | ||
| 154 | + } | ||
| 155 | + | ||
| 156 | + func textViewDidEndEditing(_ textView: UITextView) { | ||
| 157 | + self.introduce = textView.text ?? "" | ||
| 158 | + } | ||
| 159 | + | ||
| 160 | + func textViewShouldReturn(_ textView: QMUITextView!) -> Bool { | ||
| 161 | + self.introduce = textView.text ?? "" | ||
| 162 | + return true | ||
| 163 | + } | ||
| 164 | + func textViewDidChange(_ textView: UITextView) { | ||
| 165 | + let maxCount = 500 | ||
| 166 | + if textView.text.count > maxCount { | ||
| 167 | + let selectRang = textView.markedTextRange | ||
| 168 | + | ||
| 169 | + if let selectRang = selectRang { | ||
| 170 | + let position = textView.position(from: (selectRang.start), offset: 0) | ||
| 171 | + if position != nil { | ||
| 172 | + return | ||
| 173 | + } | ||
| 174 | + } | ||
| 175 | + | ||
| 176 | + let textContent = textView.text ?? "" | ||
| 177 | + let textNum = textContent.count | ||
| 178 | + | ||
| 179 | + if textNum > maxCount { | ||
| 180 | + textView.text = string_prefix(index: maxCount, text: textContent) | ||
| 181 | + } | ||
| 182 | + } | ||
| 183 | + self.huoJiangNumberLabel.text = "\(textView.text.count)/500" | ||
| 184 | + } | ||
| 185 | + private func string_prefix(index: Int, text: String) -> String { | ||
| 186 | + if text.count <= index { | ||
| 187 | + return text | ||
| 188 | + } else { | ||
| 189 | + let index = text.index(text.startIndex, offsetBy: index) | ||
| 190 | + let str = text.prefix(upTo: index) | ||
| 191 | + return String(str) | ||
| 192 | + } | ||
| 193 | + } | ||
| 194 | + func saveJianJie(introduction:String){ | ||
| 195 | + if var userDic = UserDefaults.standard.dictionary(forKey: UserInfoManager.shared.userInfo.uid){ | ||
| 196 | + userDic.updateValue(introduction, forKey: "jianli_selfIntroduction") | ||
| 197 | + UserDefaults.standard.setValue(userDic, forKey: UserInfoManager.shared.userInfo.uid) | ||
| 198 | + UserDefaults.standard.synchronize() | ||
| 199 | + self.updateViate(key: "jianli_selfIntroduction", value: introduction) | ||
| 200 | + }else{ | ||
| 201 | + let tempDic = NSMutableDictionary() | ||
| 202 | + UserDefaults.standard.setValue(tempDic, forKey: UserInfoManager.shared.userInfo.uid) | ||
| 203 | + UserDefaults.standard.synchronize() | ||
| 204 | + } | ||
| 205 | + } | ||
| 206 | + | ||
| 207 | + func updateViate(key:String,value:Any){ | ||
| 208 | + if let userDic = UserDefaults.standard.dictionary(forKey: UserInfoManager.shared.userInfo.uid){ | ||
| 209 | + var jianli_city = userDic["jianli_city"] as? String | ||
| 210 | + if key == "jianli_city"{ | ||
| 211 | + jianli_city = (value as! String) | ||
| 212 | + } | ||
| 213 | + var jianli_vitaeId = userDic["jianli_vitaeId"] as? String | ||
| 214 | + if key == "jianli_vitaeId"{ | ||
| 215 | + jianli_vitaeId = (value as! String) | ||
| 216 | + } | ||
| 217 | + var vsid = userDic["vsid"] as? String | ||
| 218 | + if key == "vsid"{ | ||
| 219 | + vsid = (value as! String) | ||
| 220 | + } | ||
| 221 | + var jianli_profession = userDic["jianli_profession"] as? String ?? "" | ||
| 222 | + if key == "jianli_profession"{ | ||
| 223 | + jianli_profession = value as! String | ||
| 224 | + } | ||
| 225 | + var jianli_professionId = userDic["jianli_professionId"] as? String | ||
| 226 | + if key == "jianli_professionId"{ | ||
| 227 | + jianli_professionId = (value as! String) | ||
| 228 | + } | ||
| 229 | + var jianli_icon = userDic["jianli_icon"] as? String ?? "" | ||
| 230 | + if key == "jianli_icon"{ | ||
| 231 | + jianli_icon = value as! String | ||
| 232 | + } | ||
| 233 | + var jianli_phone = userDic["jianli_phone"] as? String ?? "" | ||
| 234 | + if key == "jianli_phone"{ | ||
| 235 | + jianli_phone = value as! String | ||
| 236 | + } | ||
| 237 | + var jianli_selfIntroduction = userDic["jianli_selfIntroduction"] as? String | ||
| 238 | + if key == "jianli_selfIntroduction"{ | ||
| 239 | + jianli_selfIntroduction = (value as! String) | ||
| 240 | + } | ||
| 241 | + var jianli_workTime = userDic["jianli_workTime"] as? String | ||
| 242 | + if key == "jianli_workTime"{ | ||
| 243 | + jianli_workTime = (value as! String) | ||
| 244 | + } | ||
| 245 | + var jianli_showAge = userDic["jianli_showAge"] as? Bool ?? false | ||
| 246 | + if key == "jianli_showAge"{ | ||
| 247 | + jianli_showAge = value as! Bool | ||
| 248 | + } | ||
| 249 | + var jianli_showAddress = userDic["jianli_showAddress"] as? Bool ?? false | ||
| 250 | + if key == "jianli_showAddress"{ | ||
| 251 | + jianli_showAddress = value as! Bool | ||
| 252 | + } | ||
| 253 | + var jianli_showAwards = userDic["jianli_showAwards"] as? Bool ?? false | ||
| 254 | + if key == "jianli_showAwards"{ | ||
| 255 | + jianli_showAwards = value as! Bool | ||
| 256 | + } | ||
| 257 | + var jianli_showPhone = userDic["jianli_showPhone"] as? Bool ?? false | ||
| 258 | + if key == "jianli_showPhone"{ | ||
| 259 | + jianli_showPhone = value as! Bool | ||
| 260 | + } | ||
| 261 | + var jianli_updateTime = userDic["jianli_updateTime"] as? String ?? "" | ||
| 262 | + if key == "jianli_updateTime"{ | ||
| 263 | + jianli_updateTime = value as! String | ||
| 264 | + } | ||
| 265 | + | ||
| 266 | + CNLiveVitaeViewModel.saveVitae(city: jianli_city ?? "", icon: jianli_icon, isSave: false, id: jianli_vitaeId ?? "", phone: jianli_phone, profession: jianli_profession , professionId: jianli_professionId ?? "", selfIntroduction: jianli_selfIntroduction ?? "", showAddress: jianli_showAddress, showAge: jianli_showAge, showAwards: jianli_showAwards, showPhone:jianli_showPhone, updateTime: jianli_updateTime, vsid: vsid ?? "", workTime: jianli_workTime ?? ""){ result, respStatue in | ||
| 267 | + if respStatue == .success{ | ||
| 268 | + self.navigationController?.popViewController(animated: true) | ||
| 269 | + } | ||
| 270 | + } | ||
| 271 | + }else{ | ||
| 272 | + let tempDic = NSMutableDictionary() | ||
| 273 | + UserDefaults.standard.setValue(tempDic, forKey: UserInfoManager.shared.userInfo.uid) | ||
| 274 | + UserDefaults.standard.synchronize() | ||
| 275 | + } | ||
| 276 | + | ||
| 277 | + | ||
| 278 | + } | ||
| 279 | + | ||
| 280 | + @objc func addWorkBtnAction(){ | ||
| 281 | + //提交 | ||
| 282 | + if self.textView.text.count > 0{ | ||
| 283 | + self.saveJianJie(introduction:self.textView.text) | ||
| 284 | + }else{ | ||
| 285 | + showMessage(message: "请输入自我介绍") | ||
| 286 | + } | ||
| 287 | + } | ||
| 288 | + | ||
| 289 | +} |
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/我的简历cell/CNLiveDigitalResumePreviewSixCell.swift
| @@ -246,14 +246,16 @@ class CNLiveDigitalResumePreviewSixCell: UITableViewCell { | @@ -246,14 +246,16 @@ class CNLiveDigitalResumePreviewSixCell: UITableViewCell { | ||
| 246 | make.right.equalToSuperview().offset(-20) | 246 | make.right.equalToSuperview().offset(-20) |
| 247 | make.height.equalTo(jienjieH) | 247 | make.height.equalTo(jienjieH) |
| 248 | } | 248 | } |
| 249 | - self.vitaePreviewSixCellChangedBlock!(self, self.jianjieLabel.top + jienjieH, button.isSelected) | 249 | + self.vitaePreviewSixCellChangedBlock!(self, 60 + jienjieH, button.isSelected) |
| 250 | 250 | ||
| 251 | self.expandBtn.top = self.jianjieLabel.top + jienjieH | 251 | self.expandBtn.top = self.jianjieLabel.top + jienjieH |
| 252 | 252 | ||
| 253 | } | 253 | } |
| 254 | + //跳转 自我简介页面 | ||
| 254 | @objc func zhengshuBtnAction(){ | 255 | @objc func zhengshuBtnAction(){ |
| 255 | - //跳转 自我简介页面 | ||
| 256 | - | 256 | + let vc = CNLiveDigitalResumePreViewMineJianJieController() |
| 257 | + vc.introduce = self.vitaeMdl?.vitae?.selfIntroduction ?? "" | ||
| 258 | + navigationViewController().pushViewController(vc, animated: true) | ||
| 257 | } | 259 | } |
| 258 | 260 | ||
| 259 | } | 261 | } |
metaCode/Classes/Main/MinePage/View/CNLiveMineBodyListView.swift
| @@ -942,7 +942,7 @@ class MineBodyInputAuthCell: UITableViewCell, UITextFieldDelegate, QMUITextViewD | @@ -942,7 +942,7 @@ class MineBodyInputAuthCell: UITableViewCell, UITextFieldDelegate, QMUITextViewD | ||
| 942 | make.height.equalTo(0.5) | 942 | make.height.equalTo(0.5) |
| 943 | } | 943 | } |
| 944 | } | 944 | } |
| 945 | - | 945 | + |
| 946 | func textFieldShouldEndEditing(_ textField: UITextField) -> Bool { | 946 | func textFieldShouldEndEditing(_ textField: UITextField) -> Bool { |
| 947 | if textField == contentField { | 947 | if textField == contentField { |
| 948 | if contentField.text!.count > _infoModel!.length { | 948 | if contentField.text!.count > _infoModel!.length { |
metaCode/Supporting Files/Assets.xcassets/MinePage/jianli/mine_jianli_introduceBg.imageset/Contents.json
0 → 100644
| 1 | +{ | ||
| 2 | + "images" : [ | ||
| 3 | + { | ||
| 4 | + "idiom" : "universal", | ||
| 5 | + "scale" : "1x" | ||
| 6 | + }, | ||
| 7 | + { | ||
| 8 | + "filename" : "mine_jianli_introduceBg@2x.png", | ||
| 9 | + "idiom" : "universal", | ||
| 10 | + "scale" : "2x" | ||
| 11 | + }, | ||
| 12 | + { | ||
| 13 | + "filename" : "mine_jianli_introduceBg@3x.png", | ||
| 14 | + "idiom" : "universal", | ||
| 15 | + "scale" : "3x" | ||
| 16 | + } | ||
| 17 | + ], | ||
| 18 | + "info" : { | ||
| 19 | + "author" : "xcode", | ||
| 20 | + "version" : 1 | ||
| 21 | + } | ||
| 22 | +} |
metaCode/Supporting Files/Assets.xcassets/MinePage/jianli/mine_jianli_introduceBg.imageset/mine_jianli_introduceBg@2x.png
0 → 100644
319 KB
metaCode/Supporting Files/Assets.xcassets/MinePage/jianli/mine_jianli_introduceBg.imageset/mine_jianli_introduceBg@3x.png
0 → 100644
846 KB