Commit 159d7fe969d34790f348a83cbe3e0ccc957fac2b

Authored by “张旭”
1 parent 6fc3e704

* [x] 数字简历-点击证书-跳转的证书列表页选中index对不上 判断证书id

metaCode.xcodeproj/project.pbxproj
... ... @@ -2632,7 +2632,7 @@
2632 2632 CODE_SIGN_ENTITLEMENTS = metaCode/metaCode.entitlements;
2633 2633 CODE_SIGN_IDENTITY = "Apple Development";
2634 2634 CODE_SIGN_STYLE = Automatic;
2635   - CURRENT_PROJECT_VERSION = 1.1.2.24.08.29.17;
  2635 + CURRENT_PROJECT_VERSION = 1.1.2.24.08.30.17;
2636 2636 DEBUG_INFORMATION_FORMAT = dwarf;
2637 2637 DEVELOPMENT_TEAM = 94X49GG3ZW;
2638 2638 ENABLE_BITCODE = NO;
... ... @@ -2888,7 +2888,7 @@
2888 2888 CODE_SIGN_ENTITLEMENTS = metaCode/metaCode.entitlements;
2889 2889 CODE_SIGN_IDENTITY = "Apple Development";
2890 2890 CODE_SIGN_STYLE = Automatic;
2891   - CURRENT_PROJECT_VERSION = 1.1.2.24.08.29.17;
  2891 + CURRENT_PROJECT_VERSION = 1.1.2.24.08.30.17;
2892 2892 DEVELOPMENT_TEAM = 94X49GG3ZW;
2893 2893 ENABLE_BITCODE = NO;
2894 2894 ENABLE_MODULE_VERIFIER = NO;
... ...
metaCode/Classes/Main/HomePage/Controller/DigitalAuth/证书相关页面/CNLiveVitaeVocationalCertificateController.swift
... ... @@ -9,7 +9,8 @@ import Foundation
9 9 import SnapKit
10 10  
11 11 class CNLiveVitaeVocationalCertificateController:CNLiveBaseViewController,UITableViewDataSource, UITableViewDelegate{
12   - var currSeleIndex = 0
  12 +// var currSeleIndex = 0
  13 + var currSeleCerId = ""
13 14  
14 15 lazy var dataArray :NSMutableArray = {
15 16 let dataArray = NSMutableArray()
... ... @@ -96,7 +97,13 @@ class CNLiveVitaeVocationalCertificateController:CNLiveBaseViewController,UITabl
96 97 let cell = CNLiveVocationalCertificateFirCell()
97 98 return cell
98 99 }
99   - cell.currSeleIndex = self.currSeleIndex
  100 + for (idx,mdl) in self.cerListArr.enumerated(){
  101 + let cerModel = mdl
  102 + if cerModel.id == self.currSeleCerId{
  103 + cell.currSeleIndex = idx
  104 + break
  105 + }
  106 + }
100 107 cell.cerListArr = self.cerListArr
101 108 return cell
102 109 }
... ...
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/我的简历cell/CNLiveDigitalResumePreviewThreeCell.swift
... ... @@ -181,7 +181,9 @@ class CNLiveDigitalResumePreviewThreeCell: UITableViewCell {
181 181 if let getView = ges.view{
182 182 let tag = getView.tag-1000
183 183 let vc = CNLiveVitaeVocationalCertificateController()
184   - vc.currSeleIndex = tag
  184 + if let cerModel = self.threeCerDataArray?[tag]{
  185 + vc.currSeleCerId = cerModel.id
  186 + }
185 187 //跳转 证书列表页面
186 188 navigationViewController().pushViewController(vc, animated: true)
187 189  
... ...
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/数字资产cell/CNLiveDigitalThreeCell.swift
... ... @@ -241,7 +241,9 @@ class CNLiveDigitalThreeCell: UITableViewCell{//, UICollectionViewDelegate, UICo
241 241 if let getView = ges.view{
242 242 let tag = getView.tag-1000
243 243 let vc = CNLiveVitaeVocationalCertificateController()
244   - vc.currSeleIndex = tag
  244 + if let cerModel = self.certificatesArr?[tag]{
  245 + vc.currSeleCerId = cerModel.id
  246 + }
245 247 //跳转 证书列表页面
246 248 navigationViewController().pushViewController(vc, animated: true)
247 249  
... ...