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
977f071c
Commit
977f071c
authored
Aug 06, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 原则批
parent
efe3d0f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
205 additions
and
6 deletions
+205
-6
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-4
YHPrinciplePhotoListCell.swift
...客服段)/PrincipleBatch(原则批)/V/YHPrinciplePhotoListCell.swift
+2
-2
YHPrincipleUploadStatusCell.swift
...)/PrincipleBatch(原则批)/V/YHPrincipleUploadStatusCell.swift
+195
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
977f071c
...
...
@@ -353,11 +353,12 @@
04AF58C42B4FC51C0066011A
/* YHLocalizable.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AF58C32B4FC51C0066011A
/* YHLocalizable.swift */
;
};
04AF82D62C25542D0028CE2A
/* YHInterestTopicLayout.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AF82D52C25542D0028CE2A
/* YHInterestTopicLayout.swift */
;
};
04AF82D82C291E960028CE2A
/* YHMatchUserViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AF82D72C291E960028CE2A
/* YHMatchUserViewModel.swift */
;
};
04B360E32C60A346001EB053
/* YHPrinciplePhoto
Cell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360E22C60A346001EB053
/* YHPrinciplePhoto
Cell.swift */
;
};
04B360E32C60A346001EB053
/* YHPrinciplePhoto
ListCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360E22C60A346001EB053
/* YHPrinciplePhotoList
Cell.swift */
;
};
04B360E52C60B5D3001EB053
/* YHPrinciplePhotoCollectCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360E42C60B5D3001EB053
/* YHPrinciplePhotoCollectCell.swift */
;
};
04B360E72C60CD37001EB053
/* YHPrincipleUploadFileCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360E62C60CD37001EB053
/* YHPrincipleUploadFileCell.swift */
;
};
04B360EB2C60E88C001EB053
/* YHPrincipleCongratulationAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360EA2C60E88C001EB053
/* YHPrincipleCongratulationAlertView.swift */
;
};
04B360ED2C61F157001EB053
/* YHPrincipleEnvelopeCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360EC2C61F157001EB053
/* YHPrincipleEnvelopeCell.swift */
;
};
04B360EF2C620975001EB053
/* YHPrincipleUploadStatusCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B360EE2C620975001EB053
/* YHPrincipleUploadStatusCell.swift */
;
};
04B9EE5A2C06CC3100A4018D
/* YHCodeSueecssViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B9EE582C06CC3100A4018D
/* YHCodeSueecssViewController.swift */
;
};
04B9EE5B2C06CC3100A4018D
/* YHOtherLoginViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B9EE592C06CC3100A4018D
/* YHOtherLoginViewController.swift */
;
};
04C693622B723AB8004C1758
/* YHMySettingViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
;
};
...
...
@@ -990,11 +991,12 @@
04AF58C32B4FC51C0066011A
/* YHLocalizable.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLocalizable.swift
;
sourceTree
=
"<group>"
;
};
04AF82D52C25542D0028CE2A
/* YHInterestTopicLayout.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHInterestTopicLayout.swift
;
sourceTree
=
"<group>"
;
};
04AF82D72C291E960028CE2A
/* YHMatchUserViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMatchUserViewModel.swift
;
sourceTree
=
"<group>"
;
};
04B360E22C60A346001EB053
/* YHPrinciplePhoto
Cell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrinciplePhoto
Cell.swift
;
sourceTree
=
"<group>"
;
};
04B360E22C60A346001EB053
/* YHPrinciplePhoto
ListCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrinciplePhotoList
Cell.swift
;
sourceTree
=
"<group>"
;
};
04B360E42C60B5D3001EB053
/* YHPrinciplePhotoCollectCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrinciplePhotoCollectCell.swift
;
sourceTree
=
"<group>"
;
};
04B360E62C60CD37001EB053
/* YHPrincipleUploadFileCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleUploadFileCell.swift
;
sourceTree
=
"<group>"
;
};
04B360EA2C60E88C001EB053
/* YHPrincipleCongratulationAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleCongratulationAlertView.swift
;
sourceTree
=
"<group>"
;
};
04B360EC2C61F157001EB053
/* YHPrincipleEnvelopeCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleEnvelopeCell.swift
;
sourceTree
=
"<group>"
;
};
04B360EE2C620975001EB053
/* YHPrincipleUploadStatusCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleUploadStatusCell.swift
;
sourceTree
=
"<group>"
;
};
04B9EE582C06CC3100A4018D
/* YHCodeSueecssViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCodeSueecssViewController.swift
;
sourceTree
=
"<group>"
;
};
04B9EE592C06CC3100A4018D
/* YHOtherLoginViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOtherLoginViewController.swift
;
sourceTree
=
"<group>"
;
};
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMySettingViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -2199,9 +2201,10 @@
0472CBA02C5A11640096F48F
/* YHPrincipleGroupReviewListCell.swift */
,
0472CBA12C5A11640096F48F
/* YHPrincipleGroupUploadCell.swift */
,
0409BEEA2C5B41D4003FCFD7
/* YHPrincipleUnapprovedCell.swift */
,
04B360E22C60A346001EB053
/* YHPrinciplePhotoCell.swift */
,
04B360E22C60A346001EB053
/* YHPrinciplePhoto
List
Cell.swift */
,
04B360E42C60B5D3001EB053
/* YHPrinciplePhotoCollectCell.swift */
,
04B360E62C60CD37001EB053
/* YHPrincipleUploadFileCell.swift */
,
04B360EE2C620975001EB053
/* YHPrincipleUploadStatusCell.swift */
,
04B360EC2C61F157001EB053
/* YHPrincipleEnvelopeCell.swift */
,
04B360EA2C60E88C001EB053
/* YHPrincipleCongratulationAlertView.swift */
,
);
...
...
@@ -3744,7 +3747,7 @@
043D2C8C2C0F037B00172438
/* YHServiceOrderSearchViewModel.swift in Sources */
,
0468D4262B495A5400CFB916
/* YHPickPhoneAddressViewController.swift in Sources */
,
A5FD45232C523DD300908AD9
/* YHJsApi.swift in Sources */
,
04B360E32C60A346001EB053
/* YHPrinciplePhotoCell.swift in Sources */
,
04B360E32C60A346001EB053
/* YHPrinciplePhoto
List
Cell.swift in Sources */
,
04213B292C48EF5300797900
/* YHHomeInformationViewController.swift in Sources */
,
048B2A4D2BC7DAE800A93BF0
/* YHMyLikeViewModel.swift in Sources */
,
04C693622B723AB8004C1758
/* YHMySettingViewController.swift in Sources */
,
...
...
@@ -3909,6 +3912,7 @@
04C8F4832B7216D800ADF59B
/* YHUserInfoHeaderView.swift in Sources */
,
045EEEAF2B9F171A0022A143
/* YHWorkExperienceTextItemView.swift in Sources */
,
A5ACE9492B4564F7002C94D2
/* YHHUDSuccessView.swift in Sources */
,
04B360EF2C620975001EB053
/* YHPrincipleUploadStatusCell.swift in Sources */
,
045EEE9C2B9F171A0022A143
/* YHCompanyViewModel.swift in Sources */
,
A58556BA2B6BCF1A003746B2
/* YHPersonInfoFillStepModel.swift in Sources */
,
045EEEC92B9F171A0022A143
/* YHOtherInfoSessionView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/V/YHPrinciplePhotoCell.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/V/YHPrinciplePhoto
List
Cell.swift
View file @
977f071c
...
...
@@ -8,7 +8,7 @@
import
UIKit
class
YHPrinciplePhotoCell
:
UITableViewCell
{
class
YHPrinciplePhoto
List
Cell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHPrinciplePhotoCell"
var
itemModel
:
YHPrincleGroupModel
?
...
...
@@ -192,7 +192,7 @@ class YHPrinciplePhotoCell: UITableViewCell {
}
}
extension
YHPrinciplePhotoCell
:
UICollectionViewDelegateFlowLayout
,
UICollectionViewDelegate
,
UICollectionViewDataSource
{
extension
YHPrinciplePhoto
List
Cell
:
UICollectionViewDelegateFlowLayout
,
UICollectionViewDelegate
,
UICollectionViewDataSource
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
numberOfItemsInSection
section
:
Int
)
->
Int
{
return
items
.
count
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/V/YHPrincipleUploadStatusCell.swift
0 → 100644
View file @
977f071c
//
// YHPrincipleUploadStatusCell.swift
// galaxy
//
// Created by edy on 2024/8/6.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
AttributedString
enum
YHPrincipleStatus
:
Int
{
case
review
=
0
// 审核中
case
rejected
=
1
// 已驳回
case
pass
=
2
// 已通过
case
mail
=
3
// 已邮件港府
}
class
YHPrincipleUploadStatusCell
:
UITableViewCell
{
var
items
:
[
String
]
=
[]
// 待提交 审核中 已知审核结果
lazy
var
titleLabel
:
UILabel
=
{
var
label
=
UILabel
()
label
.
numberOfLines
=
0
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14.0
)
let
mustTag
:
ASAttributedString
=
.
init
(
"*"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
17
)),
.
foreground
(
UIColor
.
warnColor
))
let
title
:
ASAttributedString
=
.
init
(
"《赴港居留同意书》"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
17
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
status
:
ASAttributedString
=
"
\(
.
view
(
self
.
statusLabel
,
.
original
(
.
center
))
)
"
label
.
attributed
.
text
=
mustTag
+
title
+
status
return
label
}()
lazy
var
statusLabel
:
UILabel
=
{
let
statusLabel
=
UILabel
()
statusLabel
.
textAlignment
=
.
center
statusLabel
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
10
)
statusLabel
.
layer
.
cornerRadius
=
kCornerRadius3
statusLabel
.
clipsToBounds
=
true
statusLabel
.
backgroundColor
=
self
.
getUploadBgColor
(
status
:
.
review
)
statusLabel
.
textColor
=
self
.
getUploadTitleColor
(
status
:
.
review
)
statusLabel
.
frame
=
CGRectMake
(
0
,
0
,
38
,
16
)
return
statusLabel
}()
lazy
var
templateButton
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
66
,
height
:
27
)
btn
.
setTitle
(
"获取模版"
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
.
PFSC_M
(
ofSize
:
12
)
btn
.
setTitleColor
(
.
brandMainColor
,
for
:
.
normal
)
btn
.
layer
.
cornerRadius
=
kCornerRadius3
btn
.
clipsToBounds
=
true
btn
.
backgroundColor
=
UIColor
.
init
(
hex
:
0xF0F4FB
)
btn
.
addTarget
(
self
,
action
:
#selector(
didTemplateBtnClicked
)
,
for
:
.
touchUpInside
)
btn
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
20
,
left
:
20
,
bottom
:
20
,
right
:
20
)
return
btn
}()
lazy
var
lineView
:
UIView
=
{
let
line
=
UIView
()
line
.
backgroundColor
=
.
separatorColor
return
line
}()
lazy
var
grayLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
numberOfLines
=
0
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
UIColor
.
labelTextColor2
label
.
text
=
"1.新公司在职证明(在申请期间更换了工作时必传)
\n
2.主申人的曾用名证明文件,例如户口本副本
\n
3.主申请人的中国无刑事罪行记录证明书副本(由公安局开具)"
return
label
}()
lazy
var
detailLabel
:
UILabel
=
{
var
label
=
UILabel
()
label
.
numberOfLines
=
0
let
a
:
ASAttributedString
=
.
init
(
"请【下载模板】,填写信息,贵单位"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
b
:
ASAttributedString
=
.
init
(
"签字盖章"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
init
(
hex
:
0x3570DC
)))
let
c
:
ASAttributedString
=
.
init
(
"后,拍照or扫描上传"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
mainTextColor
))
label
.
attributed
.
text
=
a
+
b
+
c
return
label
}()
lazy
var
uploadBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
setTitle
(
"上传"
.
local
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
btn
.
setTitleColor
(
UIColor
.
init
(
hex
:
0x3570DC
),
for
:
.
normal
)
btn
.
iconInLeft
(
spacing
:
6
)
btn
.
setImage
(
UIImage
(
named
:
"form_add_info"
),
for
:
.
normal
)
btn
.
addTarget
(
self
,
action
:
#selector(
didClickUploadBtn
)
,
for
:
.
touchUpInside
)
return
btn
}()
lazy
var
redTipsLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
numberOfLines
=
0
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
UIColor
.
warnColor
label
.
text
=
"请上传《赴港居留同意书》"
return
label
}()
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
CGRect
.
zero
,
style
:
.
grouped
)
tableView
.
contentInsetAdjustmentBehavior
=
.
never
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
backgroundColor
=
.
clear
tableView
.
separatorStyle
=
.
none
tableView
.
bounces
=
false
tableView
.
register
(
YHPrincipleUploadFileCell
.
self
,
forCellReuseIdentifier
:
YHPrincipleUploadFileCell
.
cellReuseIdentifier
)
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
return
tableView
}()
@objc
func
didTemplateBtnClicked
()
{
}
@objc
func
didClickUploadBtn
()
{
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
setupUI
()
}
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
func
setupUI
()
{
contentView
.
addSubview
(
titleLabel
)
contentView
.
addSubview
(
lineView
)
}
func
getUploadBgColor
(
status
:
YHPrincipleStatus
)
->
UIColor
{
var
color
=
UIColor
.
black
if
status
==
.
review
{
color
=
UIColor
(
hex
:
0xFFF5EB
)
}
else
if
status
==
.
rejected
{
color
=
UIColor
(
hex
:
0xFFF2F2
)
}
else
if
status
==
.
pass
{
color
=
UIColor
(
hex
:
0xF0FBF7
)
}
else
if
status
==
.
mail
{
color
=
UIColor
(
hex
:
0xF0F4FB
)
}
return
color
}
func
getUploadTitleColor
(
status
:
YHPrincipleStatus
)
->
UIColor
{
var
color
=
UIColor
.
black
if
status
==
.
review
{
color
=
UIColor
(
hex
:
0xFF8000
)
}
else
if
status
==
.
rejected
{
color
=
UIColor
(
hex
:
0xF81D22
)
}
else
if
status
==
.
pass
{
color
=
UIColor
(
hex
:
0x3CC694
)
}
else
if
status
==
.
mail
{
color
=
UIColor
.
brandMainColor
}
return
color
}
}
extension
YHPrincipleUploadStatusCell
:
UITableViewDataSource
,
UITableViewDelegate
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
items
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHPrincipleUploadFileCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHPrincipleUploadFileCell
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
55.0
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
}
}
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