Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
83347472
Commit
83347472
authored
Feb 26, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主申请人
parent
ffdfd409
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
27 deletions
+59
-27
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-4
YHMainApplicantInformationViewController.swift
...(主申请人信息)/C/YHMainApplicantInformationViewController.swift
+17
-4
YHItemModel.swift
...(流程)/MainApplicantInformation(主申请人信息)/M/YHItemModel.swift
+3
-1
YHItemView.swift
...s(流程)/MainApplicantInformation(主申请人信息)/V/YHItemView.swift
+32
-2
YHMainInformationTableViewCell.swift
...nformation(主申请人信息)/V/YHMainInformationTableViewCell.swift
+1
-0
YHMainApplicantInformationViewModel.swift
...tion(主申请人信息)/VM/YHMainApplicantInformationViewModel.swift
+0
-0
YHNetRequest.swift
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
+2
-16
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
83347472
...
@@ -2158,7 +2158,7 @@
...
@@ -2158,7 +2158,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS
=
YES
;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS
=
YES
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
eveloper
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
istribution
"
;
CODE_SIGN_STYLE
=
Manual
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
""
;
...
@@ -2184,7 +2184,7 @@
...
@@ -2184,7 +2184,7 @@
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]"
=
dev.intelligenceGalaxy
.profile
;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]"
=
com.adhoc
.profile
;
SWIFT_EMIT_LOC_STRINGS
=
YES
;
SWIFT_EMIT_LOC_STRINGS
=
YES
;
SWIFT_OBJC_BRIDGING_HEADER
=
"$(SRCROOT)/$(TARGET_NAME)/Res/galaxy-Bridge-Header.h"
;
SWIFT_OBJC_BRIDGING_HEADER
=
"$(SRCROOT)/$(TARGET_NAME)/Res/galaxy-Bridge-Header.h"
;
SWIFT_VERSION
=
5.0
;
SWIFT_VERSION
=
5.0
;
...
@@ -2200,7 +2200,7 @@
...
@@ -2200,7 +2200,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS
=
YES
;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS
=
YES
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
eveloper
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
istribution
"
;
CODE_SIGN_STYLE
=
Manual
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
""
;
...
@@ -2226,7 +2226,7 @@
...
@@ -2226,7 +2226,7 @@
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.intelligence.galaxy
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]"
=
dev.intelligenceGalaxy
.profile
;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]"
=
com.adhoc
.profile
;
SWIFT_EMIT_LOC_STRINGS
=
YES
;
SWIFT_EMIT_LOC_STRINGS
=
YES
;
SWIFT_OBJC_BRIDGING_HEADER
=
"$(SRCROOT)/$(TARGET_NAME)/Res/galaxy-Bridge-Header.h"
;
SWIFT_OBJC_BRIDGING_HEADER
=
"$(SRCROOT)/$(TARGET_NAME)/Res/galaxy-Bridge-Header.h"
;
SWIFT_VERSION
=
5.0
;
SWIFT_VERSION
=
5.0
;
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MainApplicantInformation(主申请人信息)/C/YHMainApplicantInformationViewController.swift
View file @
83347472
...
@@ -15,6 +15,7 @@ class YHMainApplicantInformationViewController: YHBaseViewController {
...
@@ -15,6 +15,7 @@ class YHMainApplicantInformationViewController: YHBaseViewController {
var
tableView
:
UITableView
!
var
tableView
:
UITableView
!
var
viewModel
:
YHMainApplicantInformationViewModel
!
var
viewModel
:
YHMainApplicantInformationViewModel
!
var
dataSource
:
[
YHSectionItemModel
]?
var
dataSource
:
[
YHSectionItemModel
]?
var
isShowPrompt
:
Bool
=
false
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
...
@@ -35,13 +36,13 @@ class YHMainApplicantInformationViewController: YHBaseViewController {
...
@@ -35,13 +36,13 @@ class YHMainApplicantInformationViewController: YHBaseViewController {
func
updateDataSource
()
{
func
updateDataSource
()
{
if
self
.
stepView
.
currentIndex
==
0
{
if
self
.
stepView
.
currentIndex
==
0
{
self
.
dataSource
=
self
.
viewModel
.
getBaseDataSource
()
self
.
dataSource
=
self
.
viewModel
.
getBaseDataSource
(
isShowPrompt
)
}
else
if
self
.
stepView
.
currentIndex
==
1
{
}
else
if
self
.
stepView
.
currentIndex
==
1
{
self
.
dataSource
=
self
.
viewModel
.
getIDCardDataSource
()
self
.
dataSource
=
self
.
viewModel
.
getIDCardDataSource
(
isShowPrompt
)
}
else
if
self
.
stepView
.
currentIndex
==
2
{
}
else
if
self
.
stepView
.
currentIndex
==
2
{
self
.
dataSource
=
self
.
viewModel
.
getDocumentInformation
()
self
.
dataSource
=
self
.
viewModel
.
getDocumentInformation
(
isShowPrompt
)
}
else
if
self
.
stepView
.
currentIndex
==
3
{
}
else
if
self
.
stepView
.
currentIndex
==
3
{
self
.
dataSource
=
self
.
viewModel
.
getDetailDataSource
()
self
.
dataSource
=
self
.
viewModel
.
getDetailDataSource
(
isShowPrompt
)
}
}
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
}
}
...
@@ -141,6 +142,18 @@ extension YHMainApplicantInformationViewController: UITableViewDelegate, UITable
...
@@ -141,6 +142,18 @@ extension YHMainApplicantInformationViewController: UITableViewDelegate, UITable
if
stepView
.
currentIndex
==
1
{
if
stepView
.
currentIndex
==
1
{
return
217.0
return
217.0
}
else
{
}
else
{
let
array
=
dataSource
?[
indexPath
.
row
]
.
models
??
[]
var
h
=
0
for
i
in
0
..<
array
.
count
{
let
data
=
array
[
i
]
if
data
.
id
==
.
id3
||
data
.
id
==
.
id4
||
data
.
id
==
.
id18
{
h
=
h
+
132
}
else
if
data
.
id
==
.
id13
{
h
=
h
+
72
}
else
{
h
=
h
+
52
}
}
return
CGFloat
(
count
*
52
+
52
+
14
)
return
CGFloat
(
count
*
52
+
52
+
14
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MainApplicantInformation(主申请人信息)/M/YHItemModel.swift
View file @
83347472
...
@@ -69,8 +69,9 @@ struct YHItemModel {
...
@@ -69,8 +69,9 @@ struct YHItemModel {
var
rightButtonString
:
String
?
var
rightButtonString
:
String
?
var
type
:
YHItemSelectType
?
var
type
:
YHItemSelectType
?
var
value
:
[
String
]?
var
value
:
[
String
]?
var
isShowPrompts
:
Bool
?
init
(
id
:
YHItemID
?
=
nil
,
isNeed
:
Bool
?
=
nil
,
title
:
String
?
=
nil
,
isUserKeyBoard
:
Bool
?
=
nil
,
prompts
:
String
?
=
nil
,
message
:
String
?
=
nil
,
leftButtonString
:
String
?
=
nil
,
rightButtonString
:
String
?
=
nil
,
type
:
YHItemSelectType
?
=
nil
,
value
:
[
String
]?
=
nil
)
{
init
(
id
:
YHItemID
?
=
nil
,
isNeed
:
Bool
?
=
nil
,
title
:
String
?
=
nil
,
isUserKeyBoard
:
Bool
?
=
nil
,
prompts
:
String
?
=
nil
,
message
:
String
?
=
nil
,
leftButtonString
:
String
?
=
nil
,
rightButtonString
:
String
?
=
nil
,
type
:
YHItemSelectType
?
=
nil
,
value
:
[
String
]?
=
nil
,
isShowPrompts
:
Bool
?
=
nil
)
{
self
.
id
=
id
self
.
id
=
id
self
.
isNeed
=
isNeed
self
.
isNeed
=
isNeed
self
.
title
=
title
self
.
title
=
title
...
@@ -81,6 +82,7 @@ struct YHItemModel {
...
@@ -81,6 +82,7 @@ struct YHItemModel {
self
.
rightButtonString
=
rightButtonString
self
.
rightButtonString
=
rightButtonString
self
.
type
=
type
self
.
type
=
type
self
.
value
=
value
self
.
value
=
value
self
.
isShowPrompts
=
isShowPrompts
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MainApplicantInformation(主申请人信息)/V/YHItemView.swift
View file @
83347472
...
@@ -17,7 +17,7 @@ class YHItemView: UIView {
...
@@ -17,7 +17,7 @@ class YHItemView: UIView {
var
centerButton
:
UIButton
!
var
centerButton
:
UIButton
!
var
leftButton
:
UIButton
!
var
leftButton
:
UIButton
!
var
rightButton
:
UIButton
!
var
rightButton
:
UIButton
!
var
showPromptLabel
:
UILabel
!
var
dataSource
:
YHItemModel
?
{
var
dataSource
:
YHItemModel
?
{
didSet
{
didSet
{
updateAllViews
()
updateAllViews
()
...
@@ -58,6 +58,19 @@ class YHItemView: UIView {
...
@@ -58,6 +58,19 @@ class YHItemView: UIView {
make
.
left
.
equalTo
(
112
)
make
.
left
.
equalTo
(
112
)
}
}
showPromptLabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
red
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
12
)
return
label
}()
addSubview
(
showPromptLabel
)
showPromptLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
messageTextField
.
snp
.
left
)
make
.
height
.
equalTo
(
20
)
make
.
right
.
bottom
.
equalToSuperview
()
}
nextStepImageView
=
{
nextStepImageView
=
{
let
imageView
=
UIImageView
()
let
imageView
=
UIImageView
()
imageView
.
image
=
UIImage
(
named
:
"form_right_arrow"
)
imageView
.
image
=
UIImage
(
named
:
"form_right_arrow"
)
...
@@ -117,7 +130,6 @@ class YHItemView: UIView {
...
@@ -117,7 +130,6 @@ class YHItemView: UIView {
make
.
height
.
equalTo
(
32
)
make
.
height
.
equalTo
(
32
)
make
.
width
.
equalTo
(
74
)
make
.
width
.
equalTo
(
74
)
}
}
}
}
func
updateAllViews
()
{
func
updateAllViews
()
{
...
@@ -143,6 +155,7 @@ class YHItemView: UIView {
...
@@ -143,6 +155,7 @@ class YHItemView: UIView {
}
}
messageTextField
.
placeholder
=
dataSource
.
prompts
messageTextField
.
placeholder
=
dataSource
.
prompts
messageTextField
.
text
=
dataSource
.
message
messageTextField
.
text
=
dataSource
.
message
showPromptLabel
.
text
=
"
\(
dataSource
.
prompts
??
""
)
"
+
"
\(
dataSource
.
title
??
""
)
"
if
dataSource
.
isUserKeyBoard
??
false
{
if
dataSource
.
isUserKeyBoard
??
false
{
nextStepImageView
.
isHidden
=
true
nextStepImageView
.
isHidden
=
true
centerButton
.
isHidden
=
true
centerButton
.
isHidden
=
true
...
@@ -188,6 +201,17 @@ class YHItemView: UIView {
...
@@ -188,6 +201,17 @@ class YHItemView: UIView {
}
else
{
}
else
{
rightButton
.
isHidden
=
true
rightButton
.
isHidden
=
true
}
}
if
dataSource
.
isShowPrompts
??
false
{
if
dataSource
.
message
?
.
count
!=
0
{
showPromptLabel
.
isHidden
=
false
}
else
{
showPromptLabel
.
isHidden
=
true
}
}
else
{
showPromptLabel
.
isHidden
=
true
}
}
}
func
buttonState
(
isLeft
:
Bool
)
{
func
buttonState
(
isLeft
:
Bool
)
{
...
@@ -340,4 +364,10 @@ extension YHItemView: UITextFieldDelegate {
...
@@ -340,4 +364,10 @@ extension YHItemView: UITextFieldDelegate {
block
(
dataSource
??
YHItemModel
())
block
(
dataSource
??
YHItemModel
())
}
}
}
}
func
textField
(
_
textField
:
UITextField
,
shouldChangeCharactersIn
range
:
NSRange
,
replacementString
string
:
String
)
->
Bool
{
let
newText
=
(
textField
.
text
!
as
NSString
)
.
replacingCharacters
(
in
:
range
,
with
:
string
)
dataSource
?
.
message
=
newText
return
true
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MainApplicantInformation(主申请人信息)/V/YHMainInformationTableViewCell.swift
View file @
83347472
...
@@ -19,6 +19,7 @@ class YHMainInformationTableViewCell: UITableViewCell {
...
@@ -19,6 +19,7 @@ class YHMainInformationTableViewCell: UITableViewCell {
updateAllViews
()
updateAllViews
()
}
}
}
}
override
func
awakeFromNib
()
{
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
super
.
awakeFromNib
()
// Initialization code
// Initialization code
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MainApplicantInformation(主申请人信息)/VM/YHMainApplicantInformationViewModel.swift
View file @
83347472
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
View file @
83347472
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment