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
b7eba7a1
Commit
b7eba7a1
authored
Apr 08, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文书bug修复
parent
34a6de03
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
9 deletions
+65
-9
YHServerHKLifeViewController.swift
...lligentService(服务中心)/C/YHServerHKLifeViewController.swift
+62
-6
YHDocumentToActionTableViewCell.swift
...MyDocuments(我的文书)/V/YHDocumentToActionTableViewCell.swift
+2
-2
YHMyFileMethodTableViewCell.swift
...中心)/MySignature(我的签字)/V/YHMyFileMethodTableViewCell.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServerHKLifeViewController.swift
View file @
b7eba7a1
...
...
@@ -18,13 +18,16 @@ class YHServerHKLifeViewController: YHBaseViewController {
var
homeTableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
plain
)
if
#available(iOS 15.0, *)
{
tableView
.
sectionHeaderTopPadding
=
0
}
tableView
.
backgroundColor
=
.
clear
tableView
.
separatorStyle
=
.
none
tableView
.
showsHorizontalScrollIndicator
=
false
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
rowHeight
=
UITableView
.
automaticDimension
tableView
.
estimatedRowHeight
=
81.0
tableView
.
register
(
YH
ContractCell
.
self
,
forCellReuseIdentifier
:
YHContract
Cell
.
cellReuseIdentifier
)
tableView
.
register
(
YH
ServerHKLifeViewCell
.
self
,
forCellReuseIdentifier
:
YHServerHKLifeView
Cell
.
cellReuseIdentifier
)
return
tableView
}()
...
...
@@ -68,8 +71,8 @@ extension YHServerHKLifeViewController {
tableHeadView
=
YHServerTableHeadView
()
tableHeadView
.
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
365
)
tableFootView
=
YHServiceTableFootView
()
tableFootView
.
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
)
//
tableFootView = YHServiceTableFootView()
//
tableFootView.frame = CGRect(x: 0, y: 0, width: KScreenWidth, height: KScreenHeight)
view
.
addSubview
(
homeTableView
)
homeTableView
.
tableHeaderView
=
tableHeadView
homeTableView
.
tableFooterView
=
tableFootView
...
...
@@ -109,7 +112,7 @@ extension YHServerHKLifeViewController : UITableViewDelegate,UITableViewDataSour
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
return
0
return
0
.01
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
...
...
@@ -118,11 +121,12 @@ extension YHServerHKLifeViewController : UITableViewDelegate,UITableViewDataSour
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
0.1
return
KScreenHeight
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell0
=
UITableViewCell
()
let
cell0
=
tableView
.
dequeueReusableCell
(
withClass
:
YHServerHKLifeViewCell
.
self
)
cell0
.
selectionStyle
=
.
none
return
cell0
}
...
...
@@ -162,3 +166,55 @@ extension YHServerHKLifeViewController: JXSegmentedListContainerViewListDelegate
return
view
}
}
class
YHServerHKLifeViewCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHServerHKLifeViewCell"
var
tableFootView
:
YHServiceTableFootView
!
var
dataModel
:
YHContactItemModel
?
{
didSet
{
updateUI
()
}
}
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
setupUI
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
}
extension
YHServerHKLifeViewCell
{
func
updateUI
()
{
}
func
setupUI
()
{
let
holdView
=
UIView
()
holdView
.
backgroundColor
=
.
white
holdView
.
layer
.
cornerRadius
=
kCornerRadius6
holdView
.
clipsToBounds
=
true
backgroundColor
=
.
clear
contentView
.
backgroundColor
=
.
clear
tableFootView
=
YHServiceTableFootView
()
tableFootView
.
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
)
contentView
.
addSubview
(
tableFootView
)
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyDocuments(我的文书)/V/YHDocumentToActionTableViewCell.swift
View file @
b7eba7a1
...
...
@@ -212,7 +212,7 @@ class YHDocumentToActionTableViewCell: UITableViewCell {
func
updateAllViews
()
{
guard
let
dataSource
=
dataSource
else
{
return
}
let
suffix
=
dataSource
.
writing_document
.
name
.
pathExtension
.
lowercased
()
let
suffix
=
dataSource
.
writing_document
.
doc_sign
.
doc_send
.
pathExtension
.
lowercased
()
var
iconImgName
=
"my_cer_type_pdf"
if
suffix
==
"jpeg"
{
iconImgName
=
"my_cer_type_jpg"
...
...
@@ -232,7 +232,7 @@ class YHDocumentToActionTableViewCell: UITableViewCell {
iconImgName
=
"my_cer_type_tiff"
}
fileImageView
.
image
=
UIImage
(
named
:
iconImgName
)
fileNameLabel
.
text
=
dataSource
.
writing_document
.
name
fileNameLabel
.
text
=
dataSource
.
writing_document
.
doc_sign
.
doc_type_
name
}
@objc
func
editButtonClick
()
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MySignature(我的签字)/V/YHMyFileMethodTableViewCell.swift
View file @
b7eba7a1
...
...
@@ -224,7 +224,7 @@ class YHSignatureToActionTableViewCell: UITableViewCell {
func
updateAllViews
()
{
guard
let
dataSource
=
dataSource
else
{
return
}
let
suffix
=
dataSource
.
doc_
type_name
.
pathExtension
.
lowercased
()
let
suffix
=
dataSource
.
doc_
send
.
pathExtension
.
lowercased
()
var
iconImgName
=
"my_cer_type_pdf"
if
suffix
==
"jpeg"
{
iconImgName
=
"my_cer_type_jpg"
...
...
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