Commit bcd64f3830555525c07891696fe6b339de198445
1 parent
43a0639e
简历分享 ,预览简历时隐藏关联等按钮
Showing
2 changed files
with
54 additions
and
2 deletions
metaCode/Classes/Main/HomePage/Controller/DigitalAuth/数字简历相关页面/CNLiveDigitalResumeController.swift
| @@ -6,6 +6,7 @@ | @@ -6,6 +6,7 @@ | ||
| 6 | // 数字简历页面 | 6 | // 数字简历页面 |
| 7 | 7 | ||
| 8 | import Foundation | 8 | import Foundation |
| 9 | +import CNLiveShareToolKit | ||
| 9 | 10 | ||
| 10 | class CNLiveDigitalResumeController:CNLiveBaseViewController,UITableViewDataSource, UITableViewDelegate{ | 11 | class CNLiveDigitalResumeController:CNLiveBaseViewController,UITableViewDataSource, UITableViewDelegate{ |
| 11 | 12 | ||
| @@ -143,6 +144,19 @@ class CNLiveDigitalResumeController:CNLiveBaseViewController,UITableViewDataSour | @@ -143,6 +144,19 @@ class CNLiveDigitalResumeController:CNLiveBaseViewController,UITableViewDataSour | ||
| 143 | } | 144 | } |
| 144 | 145 | ||
| 145 | @objc func moreNavBtnAction(){ | 146 | @objc func moreNavBtnAction(){ |
| 147 | + var shareUrl = "http://wjjh5.cnlive.com/cnYmVitae.html" | ||
| 148 | + shareUrl = String(format: "%@?vsid=%@&shareSid=%@&sid=%@&plat=i&ver=&appId=%@",shareUrl,UserInfoManager.shared.userInfo.currentUser?.vsid ?? "", UserInfoManager.shared.userInfo.uid,UserInfoManager.shared.userInfo.uid,CNLiveMCEnvironmentManager.shared.appId) | ||
| 149 | + let title = (UserInfoManager.shared.userInfo.currentUser?.name ?? "TA") + "的数字简历" | ||
| 150 | + let shareImage = "https://wjj.ys1.cnliveimg.com/769/h5/other/downloadLogo_yuanma.png" | ||
| 151 | + | ||
| 152 | + CNLiveShareManager.showShareViewWithParam(forShareTitle: title, shareUrl: shareUrl, shareDesc: "了解TA,从数字简历开始!", shareImage: shareImage, screenFull: false, hiddenWjj: true, hiddenQQ: false, hiddenWB: true, hiddenLifeCircle: true, hiddenWechatCircle: false, hiddenWechat: false, hiddenSafari: false, formVC: self, topImage: [], topTitles: [], platformType: .all) { title in | ||
| 153 | + | ||
| 154 | + } completerBlock: { resultType, platformType, typeString in | ||
| 155 | + if resultType == .succ{ | ||
| 156 | + | ||
| 157 | + } | ||
| 158 | + } | ||
| 159 | + | ||
| 146 | print("moreNavBtnAction") | 160 | print("moreNavBtnAction") |
| 147 | } | 161 | } |
| 148 | @objc func jiuYeZhiNanBtnAction(){ | 162 | @objc func jiuYeZhiNanBtnAction(){ |
metaCode/Classes/Main/HomePage/Controller/DigitalAuth/数字简历相关页面/CNLiveDigitalResumePreViewController.swift
| @@ -7,6 +7,7 @@ | @@ -7,6 +7,7 @@ | ||
| 7 | 7 | ||
| 8 | import Foundation | 8 | import Foundation |
| 9 | import JFHeroBrowser | 9 | import JFHeroBrowser |
| 10 | +import CNLiveShareToolKit | ||
| 10 | 11 | ||
| 11 | 12 | ||
| 12 | ///数字简历预览cell类型 | 13 | ///数字简历预览cell类型 |
| @@ -242,6 +243,12 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD | @@ -242,6 +243,12 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD | ||
| 242 | let cell = CNLiveDigitalResumePreViewSecCell() | 243 | let cell = CNLiveDigitalResumePreViewSecCell() |
| 243 | return cell | 244 | return cell |
| 244 | } | 245 | } |
| 246 | + | ||
| 247 | + if self.resumeType == .normal{ | ||
| 248 | + cell.zhengshuBtn.isHidden = false | ||
| 249 | + }else{ | ||
| 250 | + cell.zhengshuBtn.isHidden = true | ||
| 251 | + } | ||
| 245 | cell.digitalListModels = self.succDataArray as? [CNLiveVitaeIdentitiesModel] | 252 | cell.digitalListModels = self.succDataArray as? [CNLiveVitaeIdentitiesModel] |
| 246 | return cell | 253 | return cell |
| 247 | }else if cellType == .cer{ | 254 | }else if cellType == .cer{ |
| @@ -251,6 +258,11 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD | @@ -251,6 +258,11 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD | ||
| 251 | let cell = CNLiveDigitalResumePreviewThreeCell() | 258 | let cell = CNLiveDigitalResumePreviewThreeCell() |
| 252 | return cell | 259 | return cell |
| 253 | } | 260 | } |
| 261 | + if self.resumeType == .normal{ | ||
| 262 | + cell.zhengshuBtn.isHidden = false | ||
| 263 | + }else{ | ||
| 264 | + cell.zhengshuBtn.isHidden = true | ||
| 265 | + } | ||
| 254 | cell.threeCerDataArray = self.threeCerDataArray | 266 | cell.threeCerDataArray = self.threeCerDataArray |
| 255 | return cell | 267 | return cell |
| 256 | }else if cellType == .work{ | 268 | }else if cellType == .work{ |
| @@ -261,6 +273,11 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD | @@ -261,6 +273,11 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD | ||
| 261 | return cell | 273 | return cell |
| 262 | } | 274 | } |
| 263 | cell.cellType = .work | 275 | cell.cellType = .work |
| 276 | + if self.resumeType == .normal{ | ||
| 277 | + cell.zhengshuBtn.isHidden = false | ||
| 278 | + }else{ | ||
| 279 | + cell.zhengshuBtn.isHidden = true | ||
| 280 | + } | ||
| 264 | var workModel:CNLiveVitaeWorksModel? = nil | 281 | var workModel:CNLiveVitaeWorksModel? = nil |
| 265 | if self.resumeType == .normal{ | 282 | if self.resumeType == .normal{ |
| 266 | workModel = self.workDataArray[indexPath.row] as? CNLiveVitaeWorksModel | 283 | workModel = self.workDataArray[indexPath.row] as? CNLiveVitaeWorksModel |
| @@ -315,6 +332,11 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD | @@ -315,6 +332,11 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD | ||
| 315 | return cell | 332 | return cell |
| 316 | } | 333 | } |
| 317 | cell.cellType = .award | 334 | cell.cellType = .award |
| 335 | + if self.resumeType == .normal{ | ||
| 336 | + cell.zhengshuBtn.isHidden = false | ||
| 337 | + }else{ | ||
| 338 | + cell.zhengshuBtn.isHidden = true | ||
| 339 | + } | ||
| 318 | var awardModel:CNLiveVitaeAwardsModel? | 340 | var awardModel:CNLiveVitaeAwardsModel? |
| 319 | if self.resumeType == .normal{ | 341 | if self.resumeType == .normal{ |
| 320 | awardModel = self.awardDataArray[indexPath.row] as? CNLiveVitaeAwardsModel | 342 | awardModel = self.awardDataArray[indexPath.row] as? CNLiveVitaeAwardsModel |
| @@ -374,6 +396,11 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD | @@ -374,6 +396,11 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD | ||
| 374 | self.sixCellHeight = jianjieHeight+69 | 396 | self.sixCellHeight = jianjieHeight+69 |
| 375 | self.tableView.reloadData() | 397 | self.tableView.reloadData() |
| 376 | } | 398 | } |
| 399 | + if self.resumeType == .normal{ | ||
| 400 | + cell.zhengshuBtn.isHidden = false | ||
| 401 | + }else{ | ||
| 402 | + cell.zhengshuBtn.isHidden = true | ||
| 403 | + } | ||
| 377 | if self.vitaeModel?.vitae?.selfIntroduction.count ?? 0 > 0{ | 404 | if self.vitaeModel?.vitae?.selfIntroduction.count ?? 0 > 0{ |
| 378 | cell.vitaeMdl = self.vitaeModel | 405 | cell.vitaeMdl = self.vitaeModel |
| 379 | } | 406 | } |
| @@ -450,9 +477,20 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD | @@ -450,9 +477,20 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD | ||
| 450 | } | 477 | } |
| 451 | 478 | ||
| 452 | @objc func moreNavBtnAction(){ | 479 | @objc func moreNavBtnAction(){ |
| 453 | - print("moreNavBtnAction") | 480 | + var shareUrl = "http://wjjh5.cnlive.com/cnYmVitae.html" |
| 481 | + shareUrl = String(format: "%@?vsid=%@&shareSid=%@&sid=%@&plat=i&ver=&appId=%@",shareUrl,UserInfoManager.shared.userInfo.currentUser?.vsid ?? "", UserInfoManager.shared.userInfo.uid,UserInfoManager.shared.userInfo.uid,CNLiveMCEnvironmentManager.shared.appId) | ||
| 482 | + let title = (UserInfoManager.shared.userInfo.currentUser?.name ?? "TA") + "的数字简历" | ||
| 483 | + let shareImage = "https://wjj.ys1.cnliveimg.com/769/h5/other/downloadLogo_yuanma.png" | ||
| 484 | + | ||
| 485 | + CNLiveShareManager.showShareViewWithParam(forShareTitle: title, shareUrl: shareUrl, shareDesc: "了解TA,从数字简历开始!", shareImage: shareImage, screenFull: false, hiddenWjj: true, hiddenQQ: false, hiddenWB: true, hiddenLifeCircle: true, hiddenWechatCircle: false, hiddenWechat: false, hiddenSafari: false, formVC: self, topImage: [], topTitles: [], platformType: .all) { title in | ||
| 486 | + | ||
| 487 | + } completerBlock: { resultType, platformType, typeString in | ||
| 488 | + if resultType == .succ{ | ||
| 489 | + | ||
| 490 | + } | ||
| 491 | + } | ||
| 492 | + | ||
| 454 | } | 493 | } |
| 455 | - | ||
| 456 | // MARK: - 获取简历数据 | 494 | // MARK: - 获取简历数据 |
| 457 | func getVitae(){ | 495 | func getVitae(){ |
| 458 | 496 |