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
f8c1b27b
Commit
f8c1b27b
authored
Aug 09, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 原则批
parent
2f7389b1
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
43 deletions
+43
-43
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-4
YHPrincipleApprovedWaitSubmitVC.swift
...incipleBatch(原则批)/C/YHPrincipleApprovedWaitSubmitVC.swift
+2
-2
YHPrincipleUploadListVC.swift
...rvice/PrincipleBatch(原则批)/C/YHPrincipleUploadListVC.swift
+5
-12
YHPrincipleWaitResultViewController.swift
...pleBatch(原则批)/C/YHPrincipleWaitResultViewController.swift
+3
-10
YHPrincipleUploadModel.swift
...ervice/PrincipleBatch(原则批)/M/YHPrincipleUploadModel.swift
+0
-2
YHPrincipleUploadFileCell.swift
...ice/PrincipleBatch(原则批)/V/YHPrincipleUploadFileCell.swift
+16
-5
YHPrincipleUploadStatusCell.swift
...e/PrincipleBatch(原则批)/V/YHPrincipleUploadStatusCell.swift
+10
-5
YHPrincleViewModel.swift
...erService/PrincipleBatch(原则批)/VM/YHPrincleViewModel.swift
+3
-3
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
f8c1b27b
...
...
@@ -272,7 +272,7 @@
0468D4362B57752F00CFB916
/* YHUserModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4352B57752F00CFB916
/* YHUserModel.swift */
;
};
0468D43A2B579EAC00CFB916
/* YHLoginViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4392B579EAC00CFB916
/* YHLoginViewModel.swift */
;
};
0472CBA72C5A11640096F48F
/* YHPrincipleCongratulationVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0472CB9B2C5A11640096F48F
/* YHPrincipleCongratulationVC.swift */
;
};
0472CBA82C5A11640096F48F
/* YHPrinciple
ReviewListVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0472CB9C2C5A11640096F48F
/* YHPrincipleReview
ListVC.swift */
;
};
0472CBA82C5A11640096F48F
/* YHPrinciple
UploadListVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0472CB9C2C5A11640096F48F
/* YHPrincipleUpload
ListVC.swift */
;
};
0472CBA92C5A11640096F48F
/* YHPrincleGroupModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0472CB9E2C5A11640096F48F
/* YHPrincleGroupModel.swift */
;
};
0472CBAC2C5A11640096F48F
/* YHPrincleViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0472CBA32C5A11640096F48F
/* YHPrincleViewModel.swift */
;
};
0472E25C2C521E64008EAB6E
/* YHHomeIdentityListVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0472E25B2C521E64008EAB6E
/* YHHomeIdentityListVC.swift */
;
};
...
...
@@ -922,7 +922,7 @@
046AB7772BD674170086C6F1
/* galaxyDebug.entitlements */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.plist.entitlements
;
path
=
galaxyDebug.entitlements
;
sourceTree
=
"<group>"
;
};
046AB7782BD674170086C6F1
/* galaxyTestEnv.entitlements */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.plist.entitlements
;
path
=
galaxyTestEnv.entitlements
;
sourceTree
=
"<group>"
;
};
0472CB9B2C5A11640096F48F
/* YHPrincipleCongratulationVC.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleCongratulationVC.swift
;
sourceTree
=
"<group>"
;
};
0472CB9C2C5A11640096F48F
/* YHPrinciple
ReviewListVC.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleReview
ListVC.swift
;
sourceTree
=
"<group>"
;
};
0472CB9C2C5A11640096F48F
/* YHPrinciple
UploadListVC.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleUpload
ListVC.swift
;
sourceTree
=
"<group>"
;
};
0472CB9E2C5A11640096F48F
/* YHPrincleGroupModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincleGroupModel.swift
;
sourceTree
=
"<group>"
;
};
0472CBA32C5A11640096F48F
/* YHPrincleViewModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincleViewModel.swift
;
sourceTree
=
"<group>"
;
};
0472E25B2C521E64008EAB6E
/* YHHomeIdentityListVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHomeIdentityListVC.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -2206,7 +2206,7 @@
isa
=
PBXGroup
;
children
=
(
0472CB9B2C5A11640096F48F
/* YHPrincipleCongratulationVC.swift */
,
0472CB9C2C5A11640096F48F
/* YHPrinciple
Review
ListVC.swift */
,
0472CB9C2C5A11640096F48F
/* YHPrinciple
Upload
ListVC.swift */
,
04B360F22C636525001EB053
/* YHPrincipleWaitResultViewController.swift */
,
04B360F42C646844001EB053
/* YHPrincipleApprovedMailViewController.swift */
,
0485DFD52C64E70200B50293
/* YHPrincipleApprovedWaitSubmitVC.swift */
,
...
...
@@ -3703,7 +3703,7 @@
A5F886B42C61CEA700B63CF5
/* YHPictureReviewManager.swift in Sources */
,
04E86E662B86EB6F00A35F4B
/* YHLoginManager.swift in Sources */
,
04A7BD112BA4218B00BD35A2
/* YHMyDocumentsListViewModel.swift in Sources */
,
0472CBA82C5A11640096F48F
/* YHPrinciple
Review
ListVC.swift in Sources */
,
0472CBA82C5A11640096F48F
/* YHPrinciple
Upload
ListVC.swift in Sources */
,
A5EF21352BA6E05E005027E6
/* YHQuestionAndAnswerViewController.swift in Sources */
,
A5EF213B2BA6EC98005027E6
/* YHQuestionAndAnswerCell.swift in Sources */
,
045EEEA82B9F171A0022A143
/* YHWorkIntroductionViewController.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/C/YHPrincipleApprovedWaitSubmitVC.swift
View file @
f8c1b27b
...
...
@@ -89,8 +89,8 @@ class YHPrincipleApprovedWaitSubmitVC: YHBaseViewController {
}
@objc
func
didUploadBtnClicked
()
{
let
vc
=
YHPrinciple
Review
ListVC
()
vc
.
orderId
=
1
2345
let
vc
=
YHPrinciple
Upload
ListVC
()
vc
.
orderId
=
1
50702
navigationController
?
.
pushViewController
(
vc
)
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/C/YHPrinciple
Review
ListVC.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/C/YHPrinciple
Upload
ListVC.swift
View file @
f8c1b27b
//
// YHPrinciple
Review
ListVC.swift
// YHPrinciple
Upload
ListVC.swift
// galaxy
//
// Created by edy on 2024/4/29.
...
...
@@ -10,7 +10,7 @@ import UIKit
import
SmartCodable
import
AttributedString
class
YHPrinciple
Review
ListVC
:
YHBaseViewController
{
class
YHPrinciple
Upload
ListVC
:
YHBaseViewController
{
var
orderId
:
Int
=
0
var
items
:
[
SmartCodable
]
=
[]
...
...
@@ -165,14 +165,14 @@ class YHPrincipleReviewListVC: YHBaseViewController {
}
}
extension
YHPrinciple
Review
ListVC
{
extension
YHPrinciple
Upload
ListVC
{
@objc
func
didUploadBtnClicked
()
{
}
}
extension
YHPrinciple
Review
ListVC
:
UITableViewDelegate
,
UITableViewDataSource
{
extension
YHPrinciple
Upload
ListVC
:
UITableViewDelegate
,
UITableViewDataSource
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
items
.
count
...
...
@@ -237,14 +237,7 @@ extension YHPrincipleReviewListVC: UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
#if DEBUG
if
true
{
let
vc
=
YHPrincipleCongratulationVC
()
self
.
navigationController
?
.
pushViewController
(
vc
)
return
}
#endif
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/C/YHPrincipleWaitResultViewController.swift
View file @
f8c1b27b
...
...
@@ -155,14 +155,7 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
#if DEBUG
if
true
{
let
vc
=
YHPrincipleCongratulationVC
()
self
.
navigationController
?
.
pushViewController
(
vc
)
return
}
#endif
}
}
...
...
@@ -177,13 +170,13 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
()
var
titleLabel
=
UILabel
()
let
titleLabel
=
UILabel
()
titleLabel
.
numberOfLines
=
0
var
name
=
self
.
viewModel
.
waitResultModel
.
applicant
.
userName
if
name
.
count
>
5
{
name
=
String
(
name
.
prefix
(
5
))
+
"..."
}
var
callName
=
self
.
viewModel
.
waitResultModel
.
applicant
.
sex
==
2
?
"女士"
:
"先生"
let
callName
=
self
.
viewModel
.
waitResultModel
.
applicant
.
sex
==
2
?
"女士"
:
"先生"
let
title
:
ASAttributedString
=
.
init
(
"您好,
\(
name
)\(
callName
)
!"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
24
)),
.
foreground
(
UIColor
.
mainTextColor
))
titleLabel
.
attributed
.
text
=
title
view
.
addSubview
(
titleLabel
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/M/YHPrincipleUploadModel.swift
View file @
f8c1b27b
...
...
@@ -175,8 +175,6 @@ class YHPrincipleAgreementModel: SmartCodable {
var
redTips
:
String
=
""
// 是否展开
var
isUnfold
:
Bool
=
false
//
var
fileList
:[
String
]
=
[]
required
init
()
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/V/YHPrincipleUploadFileCell.swift
View file @
f8c1b27b
...
...
@@ -16,6 +16,7 @@ class YHPrincipleUploadFileCell: UITableViewCell {
var
iconImgV
:
UIImageView
!
var
titleLabel
:
UILabel
!
var
timeLabel
:
UILabel
!
var
editBtn
:
UIButton
!
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
...
...
@@ -26,9 +27,9 @@ class YHPrincipleUploadFileCell: UITableViewCell {
super
.
init
(
coder
:
coder
)
}
func
updateModel
(
_
str
:
String
)
{
titleLabel
.
text
=
str
timeLabel
.
text
=
"上传于2023.02.06"
func
updateModel
(
_
model
:
YHPrincipleContentUrlModel
)
{
titleLabel
.
text
=
model
.
name
timeLabel
.
text
=
model
.
updated_at
}
func
setupUI
()
{
...
...
@@ -40,15 +41,19 @@ class YHPrincipleUploadFileCell: UITableViewCell {
titleLabel
=
UILabel
()
titleLabel
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
titleLabel
.
textColor
=
UIColor
.
mainTextColor
titleLabel
.
text
=
"
新公司在职证明.pdf
"
titleLabel
.
text
=
"
文件名称
"
self
.
addSubview
(
titleLabel
)
timeLabel
=
UILabel
()
timeLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
11
)
timeLabel
.
textColor
=
UIColor
.
labelTextColor2
timeLabel
.
text
=
"上传于
2024.12.12
"
timeLabel
.
text
=
"上传于
0000.00.00
"
self
.
addSubview
(
timeLabel
)
editBtn
=
UIButton
()
editBtn
.
setImage
(
UIImage
(
named
:
"my_cer_btn_edit"
),
for
:
.
normal
)
self
.
addSubview
(
editBtn
)
iconImgV
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
centerY
.
equalToSuperview
()
...
...
@@ -68,5 +73,11 @@ class YHPrincipleUploadFileCell: UITableViewCell {
make
.
height
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
16
)
}
editBtn
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
16
)
make
.
centerY
.
equalToSuperview
()
make
.
right
.
equalTo
(
-
20
)
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/V/YHPrincipleUploadStatusCell.swift
View file @
f8c1b27b
...
...
@@ -27,7 +27,7 @@ class YHPrincipleUploadStatusCell: UITableViewCell {
static
let
cellReuseIdentifier
=
"YHPrincipleUploadStatusCell"
var
itemModel
:
YHPrincipleAgreementModel
?
var
items
:
[
String
]
=
[]
var
items
:
[
YHPrincipleContentUrlModel
]
=
[]
var
expandClick
:((
Bool
)
->
())?
var
status
:
YHPrincipleUploadStatus
=
.
preUpload
...
...
@@ -169,7 +169,7 @@ class YHPrincipleUploadStatusCell: UITableViewCell {
itemModel
=
model
items
.
removeAll
()
// items.append(contentsOf: model.fileList
)
items
.
append
(
contentsOf
:
model
.
content_url
)
contentView
.
removeSubviews
()
self
.
dotLineLayer
.
removeFromSuperlayer
()
...
...
@@ -269,15 +269,16 @@ class YHPrincipleUploadStatusCell: UITableViewCell {
}
tableView
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
detailLabel
.
snp
.
bottom
)
.
offset
(
model
.
fileList
.
count
<=
0
?
0
:
16
)
make
.
top
.
equalTo
(
detailLabel
.
snp
.
bottom
)
.
offset
(
model
.
content_url
.
count
<=
0
?
0
:
16
)
make
.
left
.
equalTo
(
0
)
make
.
right
.
equalTo
(
0
)
var
listHeight
=
0.0
if
model
.
fileList
.
count
>
0
{
listHeight
=
Double
(
model
.
fileList
.
count
)
*
55.0
+
Double
(
model
.
fileList
.
count
-
1
)
*
8.0
if
model
.
content_url
.
count
>
0
{
listHeight
=
Double
(
model
.
content_url
.
count
)
*
55.0
+
Double
(
model
.
content_url
.
count
-
1
)
*
8.0
}
make
.
height
.
equalTo
(
listHeight
)
}
tableView
.
reloadData
()
uploadBtn
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
...
...
@@ -425,6 +426,10 @@ extension YHPrincipleUploadStatusCell: UITableViewDataSource, UITableViewDelegat
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHPrincipleUploadFileCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHPrincipleUploadFileCell
if
0
<=
indexPath
.
row
,
indexPath
.
row
<
items
.
count
{
let
model
:
YHPrincipleContentUrlModel
=
items
[
indexPath
.
row
]
cell
.
updateModel
(
model
)
}
return
cell
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/VM/YHPrincleViewModel.swift
View file @
f8c1b27b
...
...
@@ -62,17 +62,17 @@ class YHPrincleViewModel: YHBaseViewModel {
return
}
self
.
envelopModel
=
resultModel
self
.
envelopModel
=
self
.
getEnvelopModel
()
//
self.envelopModel = self.getEnvelopModel()
callback
?(
true
,
nil
)
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
self
.
envelopModel
=
self
.
getEnvelopModel
()
//
self.envelopModel = self.getEnvelopModel()
callback
?(
false
,
err
)
}
}
failBlock
:
{
err
in
self
.
envelopModel
=
self
.
getEnvelopModel
()
//
self.envelopModel = self.getEnvelopModel()
callback
?(
false
,
err
)
}
}
...
...
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