Commit 8f6932b1 authored by David黄金龙's avatar David黄金龙

文件清单 Model

parent ca1cfda8
...@@ -260,6 +260,7 @@ ...@@ -260,6 +260,7 @@
A58951C52B398D1000225C19 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A58951C42B398D1000225C19 /* Launch Screen.storyboard */; }; A58951C52B398D1000225C19 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A58951C42B398D1000225C19 /* Launch Screen.storyboard */; };
A58A8C8F2BA6978100632765 /* YHMineCertificateEntryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A58A8C8E2BA6978100632765 /* YHMineCertificateEntryViewController.swift */; }; A58A8C8F2BA6978100632765 /* YHMineCertificateEntryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A58A8C8E2BA6978100632765 /* YHMineCertificateEntryViewController.swift */; };
A58A8C942BA6C7C600632765 /* YHCertificateEntryModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = A58A8C932BA6C7C600632765 /* YHCertificateEntryModel.swift */; }; A58A8C942BA6C7C600632765 /* YHCertificateEntryModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = A58A8C932BA6C7C600632765 /* YHCertificateEntryModel.swift */; };
A58AC09D2BABD59600A30FA9 /* YHFileListModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = A58AC09C2BABD59600A30FA9 /* YHFileListModel.swift */; };
A592BFEF2B9AB720004C04A9 /* YHWholeScreenTipsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A592BFEE2B9AB720004C04A9 /* YHWholeScreenTipsView.swift */; }; A592BFEF2B9AB720004C04A9 /* YHWholeScreenTipsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A592BFEE2B9AB720004C04A9 /* YHWholeScreenTipsView.swift */; };
A592FE912BA6CC010062FACA /* YHCertificateEntryHeadView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A592FE902BA6CC010062FACA /* YHCertificateEntryHeadView.swift */; }; A592FE912BA6CC010062FACA /* YHCertificateEntryHeadView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A592FE902BA6CC010062FACA /* YHCertificateEntryHeadView.swift */; };
A592FE932BA6CFFC0062FACA /* YHCertificateEntryBottomView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A592FE922BA6CFFC0062FACA /* YHCertificateEntryBottomView.swift */; }; A592FE932BA6CFFC0062FACA /* YHCertificateEntryBottomView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A592FE922BA6CFFC0062FACA /* YHCertificateEntryBottomView.swift */; };
...@@ -643,6 +644,7 @@ ...@@ -643,6 +644,7 @@
A58951C42B398D1000225C19 /* Launch Screen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = "<group>"; }; A58951C42B398D1000225C19 /* Launch Screen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = "<group>"; };
A58A8C8E2BA6978100632765 /* YHMineCertificateEntryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMineCertificateEntryViewController.swift; sourceTree = "<group>"; }; A58A8C8E2BA6978100632765 /* YHMineCertificateEntryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMineCertificateEntryViewController.swift; sourceTree = "<group>"; };
A58A8C932BA6C7C600632765 /* YHCertificateEntryModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateEntryModel.swift; sourceTree = "<group>"; }; A58A8C932BA6C7C600632765 /* YHCertificateEntryModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateEntryModel.swift; sourceTree = "<group>"; };
A58AC09C2BABD59600A30FA9 /* YHFileListModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHFileListModel.swift; sourceTree = "<group>"; };
A592BFEE2B9AB720004C04A9 /* YHWholeScreenTipsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHWholeScreenTipsView.swift; sourceTree = "<group>"; }; A592BFEE2B9AB720004C04A9 /* YHWholeScreenTipsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHWholeScreenTipsView.swift; sourceTree = "<group>"; };
A592FE902BA6CC010062FACA /* YHCertificateEntryHeadView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateEntryHeadView.swift; sourceTree = "<group>"; }; A592FE902BA6CC010062FACA /* YHCertificateEntryHeadView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateEntryHeadView.swift; sourceTree = "<group>"; };
A592FE922BA6CFFC0062FACA /* YHCertificateEntryBottomView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateEntryBottomView.swift; sourceTree = "<group>"; }; A592FE922BA6CFFC0062FACA /* YHCertificateEntryBottomView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateEntryBottomView.swift; sourceTree = "<group>"; };
...@@ -1571,6 +1573,7 @@ ...@@ -1571,6 +1573,7 @@
A525D22C2BA837C5001A84F5 /* FileList(文件清单) */ = { A525D22C2BA837C5001A84F5 /* FileList(文件清单) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
A58AC09B2BABD57300A30FA9 /* M */,
A5D001262BABC84A001F003C /* V */, A5D001262BABC84A001F003C /* V */,
A525D22D2BA837DF001A84F5 /* C */, A525D22D2BA837DF001A84F5 /* C */,
); );
...@@ -1644,6 +1647,14 @@ ...@@ -1644,6 +1647,14 @@
path = VM; path = VM;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
A58AC09B2BABD57300A30FA9 /* M */ = {
isa = PBXGroup;
children = (
A58AC09C2BABD59600A30FA9 /* YHFileListModel.swift */,
);
path = M;
sourceTree = "<group>";
};
A5ACE8D72B4564F7002C94D2 /* Classes */ = { A5ACE8D72B4564F7002C94D2 /* Classes */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -2221,6 +2232,7 @@ ...@@ -2221,6 +2232,7 @@
049A48AA2B49536000D0C641 /* YHAboutUsAdvantageCell.swift in Sources */, 049A48AA2B49536000D0C641 /* YHAboutUsAdvantageCell.swift in Sources */,
A5C5B3002B55623800A7C5D1 /* YHMainContentBaseViewController.swift in Sources */, A5C5B3002B55623800A7C5D1 /* YHMainContentBaseViewController.swift in Sources */,
045EEF112B9F171A0022A143 /* YHMainInformationModel.swift in Sources */, 045EEF112B9F171A0022A143 /* YHMainInformationModel.swift in Sources */,
A58AC09D2BABD59600A30FA9 /* YHFileListModel.swift in Sources */,
045EEEFF2B9F171A0022A143 /* YHSaveAndSubmitView.swift in Sources */, 045EEEFF2B9F171A0022A143 /* YHSaveAndSubmitView.swift in Sources */,
045EEF0E2B9F171A0022A143 /* YHBasicInfoFillView.swift in Sources */, 045EEF0E2B9F171A0022A143 /* YHBasicInfoFillView.swift in Sources */,
045EEEA12B9F171A0022A143 /* YHWorkExperienceDetailModel.swift in Sources */, 045EEEA12B9F171A0022A143 /* YHWorkExperienceDetailModel.swift in Sources */,
......
...@@ -91,8 +91,6 @@ extension YHFileListViewController { ...@@ -91,8 +91,6 @@ extension YHFileListViewController {
} }
} }
myScrollView.backgroundColor = UIColor(hex:0x0D37C7, alpha: 1.0) myScrollView.backgroundColor = UIColor(hex:0x0D37C7, alpha: 1.0)
view.addSubview(myScrollView) view.addSubview(myScrollView)
myScrollView.snp.makeConstraints { make in myScrollView.snp.makeConstraints { make in
......
//
// YHFileListModel.swift
// galaxy
//
// Created by davidhuangA on 2024/3/21.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import SmartCodable
class YHFileListModel: SmartCodable {
var ApplicantName : String = ""
var category_id : Int = -1
var checks_tatus : Int = -1
var supplement_list : [YHFileListSubModel] = []
required init() {
}
}
class YHFileListSubModel: SmartCodable {
var name : String = ""
var type_name : String = ""
var checks_tatus : Int = -1
required init() {
}
}
...@@ -9,13 +9,22 @@ ...@@ -9,13 +9,22 @@
import UIKit import UIKit
class YHFileListContentView: UIView { class YHFileListContentView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
initView()
}
/* required init?(coder: NSCoder) {
// Only override draw() if you perform custom drawing. fatalError("init(coder:) has not been implemented")
// An empty implementation adversely affects performance during animation.
override func draw(_ rect: CGRect) {
// Drawing code
} }
*/ }
private extension YHFileListContentView {
func initView() {
// let he
}
} }
...@@ -37,6 +37,8 @@ class YHCertificateViewModel: YHBaseViewModel { ...@@ -37,6 +37,8 @@ class YHCertificateViewModel: YHBaseViewModel {
var certificateEntryModel : YHCertificateEntryModel? var certificateEntryModel : YHCertificateEntryModel?
var arrQuestionAndAnswer : [YHQuestionAndAnswerModel?] = [] var arrQuestionAndAnswer : [YHQuestionAndAnswerModel?] = []
var arrFileListData : [YHFileListModel?] = []
//我的证件 清单列表数据 //我的证件 清单列表数据
...@@ -51,21 +53,19 @@ class YHCertificateViewModel: YHBaseViewModel { ...@@ -51,21 +53,19 @@ class YHCertificateViewModel: YHBaseViewModel {
if json.code == 200 { if json.code == 200 {
let dic = json.data let dic = json.data
guard let resultModel = YHCertificateEntryModel.deserialize(dict: dic as? [AnyHashable : Any]) else { guard let resultModel = [YHFileListModel].deserialize(array: dic as? [Any]) else {
let err = YHErrorModel(errorCode: YHErrorCode.dictParseError.rawValue, errorMsg: YHErrorCode.dictParseError.description()) let err = YHErrorModel(errorCode: YHErrorCode.dictParseError.rawValue, errorMsg: YHErrorCode.dictParseError.description())
callBackBlock(false,err) callBackBlock(false,err)
return return
} }
self.certificateEntryModel = resultModel self.arrFileListData = resultModel
callBackBlock(true,nil) callBackBlock(true,nil)
} else { } else {
let err = YHErrorModel(errorCode: Int32(json.code), errorMsg: json.msg.isEmpty ? "" : json.msg) let err = YHErrorModel(errorCode: Int32(json.code), errorMsg: json.msg.isEmpty ? "" : json.msg)
callBackBlock(false,err) callBackBlock(false,err)
} }
} failBlock: { err in } failBlock: { err in
callBackBlock(false,err) callBackBlock(false,err)
} }
......
...@@ -23,12 +23,7 @@ extension YHLoginViewModel { ...@@ -23,12 +23,7 @@ extension YHLoginViewModel {
let params: [String : Any] = ["type": "Phone", let params: [String : Any] = ["type": "Phone",
"value": phone, "value": phone,
"extend":"register"] "extend":"register"]
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.User.verifyCode
// let strUrl = "http://test-cuser.galaxy-immi.com/" + YHAllApiName.User.verifyCode
let strUrl = "http://test-cuser.galaxy-immi.com/" + YHAllApiName.User.verifyCode
// let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.User.verifyCode
let _ = YHNetRequest.postRequest(url: strUrl, params: params) {[weak self] json, code in let _ = YHNetRequest.postRequest(url: strUrl, params: params) {[weak self] json, code in
guard let self = self else { return } guard let self = self else { return }
......
...@@ -145,8 +145,8 @@ class YHAllApiName { ...@@ -145,8 +145,8 @@ class YHAllApiName {
//获取验证 //获取验证
struct User { struct User {
#if DEBUG #if DEBUG
static let verifyCode = "user/verify-code" // static let verifyCode = "user/verify-code"
#else //#else
static let verifyCode = "cuser/user/verify-code" static let verifyCode = "cuser/user/verify-code"
#endif #endif
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Rectangle 2538@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Rectangle 2538@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment