Commit bcd64f3830555525c07891696fe6b339de198445

Authored by “张旭”
1 parent 43a0639e

简历分享 ,预览简历时隐藏关联等按钮

metaCode/Classes/Main/HomePage/Controller/DigitalAuth/数字简历相关页面/CNLiveDigitalResumeController.swift
... ... @@ -6,6 +6,7 @@
6 6 // 数字简历页面
7 7  
8 8 import Foundation
  9 +import CNLiveShareToolKit
9 10  
10 11 class CNLiveDigitalResumeController:CNLiveBaseViewController,UITableViewDataSource, UITableViewDelegate{
11 12  
... ... @@ -143,6 +144,19 @@ class CNLiveDigitalResumeController:CNLiveBaseViewController,UITableViewDataSour
143 144 }
144 145  
145 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 160 print("moreNavBtnAction")
147 161 }
148 162 @objc func jiuYeZhiNanBtnAction(){
... ...
metaCode/Classes/Main/HomePage/Controller/DigitalAuth/数字简历相关页面/CNLiveDigitalResumePreViewController.swift
... ... @@ -7,6 +7,7 @@
7 7  
8 8 import Foundation
9 9 import JFHeroBrowser
  10 +import CNLiveShareToolKit
10 11  
11 12  
12 13 ///数字简历预览cell类型
... ... @@ -242,6 +243,12 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD
242 243 let cell = CNLiveDigitalResumePreViewSecCell()
243 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 252 cell.digitalListModels = self.succDataArray as? [CNLiveVitaeIdentitiesModel]
246 253 return cell
247 254 }else if cellType == .cer{
... ... @@ -251,6 +258,11 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD
251 258 let cell = CNLiveDigitalResumePreviewThreeCell()
252 259 return cell
253 260 }
  261 + if self.resumeType == .normal{
  262 + cell.zhengshuBtn.isHidden = false
  263 + }else{
  264 + cell.zhengshuBtn.isHidden = true
  265 + }
254 266 cell.threeCerDataArray = self.threeCerDataArray
255 267 return cell
256 268 }else if cellType == .work{
... ... @@ -261,6 +273,11 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD
261 273 return cell
262 274 }
263 275 cell.cellType = .work
  276 + if self.resumeType == .normal{
  277 + cell.zhengshuBtn.isHidden = false
  278 + }else{
  279 + cell.zhengshuBtn.isHidden = true
  280 + }
264 281 var workModel:CNLiveVitaeWorksModel? = nil
265 282 if self.resumeType == .normal{
266 283 workModel = self.workDataArray[indexPath.row] as? CNLiveVitaeWorksModel
... ... @@ -315,6 +332,11 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD
315 332 return cell
316 333 }
317 334 cell.cellType = .award
  335 + if self.resumeType == .normal{
  336 + cell.zhengshuBtn.isHidden = false
  337 + }else{
  338 + cell.zhengshuBtn.isHidden = true
  339 + }
318 340 var awardModel:CNLiveVitaeAwardsModel?
319 341 if self.resumeType == .normal{
320 342 awardModel = self.awardDataArray[indexPath.row] as? CNLiveVitaeAwardsModel
... ... @@ -374,6 +396,11 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD
374 396 self.sixCellHeight = jianjieHeight+69
375 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 404 if self.vitaeModel?.vitae?.selfIntroduction.count ?? 0 > 0{
378 405 cell.vitaeMdl = self.vitaeModel
379 406 }
... ... @@ -450,9 +477,20 @@ class CNLiveDigitalResumePreViewController:CNLiveBaseViewController,UITableViewD
450 477 }
451 478  
452 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 494 // MARK: - 获取简历数据
457 495 func getVitae(){
458 496  
... ...