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
d81a27e8
Commit
d81a27e8
authored
Aug 26, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 赴港
parent
4108251b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
18 deletions
+36
-18
YHGrabNumberInfoView.swift
...AppointCertificate(3 赴港办证预约)/V/YHGrabNumberInfoView.swift
+20
-3
YHGrabingNumberListCell.swift
...ointCertificate(3 赴港办证预约)/V/YHGrabingNumberListCell.swift
+6
-5
YHGrabingNumberListView.swift
...ointCertificate(3 赴港办证预约)/V/YHGrabingNumberListView.swift
+5
-5
YHHaveGrabbedNumberListCell.swift
...Certificate(3 赴港办证预约)/V/YHHaveGrabbedNumberListCell.swift
+4
-4
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHGrabNumberInfoView.swift
View file @
d81a27e8
...
...
@@ -20,17 +20,19 @@ class YHGrabItem {
var
detail
:
String
=
""
var
files
:
[
String
]
=
[]
var
publicFiles
:
[
String
]
=
[]
var
isSingleLine
:
Bool
=
true
required
init
()
{
}
init
(
type
:
YHGrabItemViewType
,
title
:
String
,
detail
:
String
,
files
:[
String
]
=
[],
publicFiles
:[
String
]
=
[])
{
init
(
type
:
YHGrabItemViewType
,
title
:
String
,
detail
:
String
,
files
:[
String
]
=
[],
publicFiles
:[
String
]
=
[]
,
isSingleLine
:
Bool
=
true
)
{
self
.
type
=
type
self
.
title
=
title
self
.
detail
=
detail
self
.
files
=
files
self
.
publicFiles
=
publicFiles
self
.
isSingleLine
=
isSingleLine
}
}
...
...
@@ -69,6 +71,15 @@ class YHGrabNumberInfoItemView: UIView {
titleLabel
.
text
=
item
.
title
detailLabel
.
text
=
item
.
detail
if
item
.
isSingleLine
{
detailLabel
.
textAlignment
=
.
right
}
else
{
// 需要显示多行
// 当文字只有一行时右对齐,当文字有多行时左对齐
let
detaiLabelMaxWidth
=
KScreenWidth
-
(
34.0
+
14.0
)
*
2.0
-
titleMaxWidth
let
detailHeight
=
self
.
getHeight
(
text
:
item
.
detail
,
font
:
detailLabel
.
font
,
width
:
detaiLabelMaxWidth
)
detailLabel
.
textAlignment
=
detailHeight
>
20.0
?
.
left
:
.
right
}
if
item
.
type
==
.
grab
{
detailLabel
.
textColor
=
grabNumColor
}
else
{
...
...
@@ -77,7 +88,6 @@ class YHGrabNumberInfoItemView: UIView {
dotView
.
isHidden
=
(
item
.
type
!=
.
grab
)
collectionView
.
isHidden
=
item
.
type
!=
.
files
collectionView
.
reloadData
()
var
rowCount
=
item
.
files
.
count
/
4
if
item
.
files
.
count
%
4
!=
0
{
...
...
@@ -148,13 +158,13 @@ class YHGrabNumberInfoItemView: UIView {
make
.
right
.
equalTo
(
0
)
make
.
top
.
equalTo
(
0
)
make
.
height
.
greaterThanOrEqualTo
(
20.0
)
make
.
left
.
greaterThanOrEqualTo
(
titleLabel
.
snp
.
right
)
.
offset
(
0
)
}
dotView
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
dotWidth
)
make
.
centerY
.
equalTo
(
detailLabel
)
make
.
right
.
equalTo
(
detailLabel
.
snp
.
left
)
.
offset
(
-
4
)
make
.
left
.
greaterThanOrEqualTo
(
titleLabel
.
snp
.
right
)
.
offset
(
0
)
}
collectionView
.
snp
.
makeConstraints
{
make
in
...
...
@@ -164,6 +174,13 @@ class YHGrabNumberInfoItemView: UIView {
make
.
bottom
.
equalTo
(
0
)
}
}
func
getHeight
(
text
:
String
,
font
:
UIFont
,
width
:
CGFloat
)
->
CGFloat
{
let
size
=
CGSize
.
init
(
width
:
width
,
height
:
CGFloat
(
MAXFLOAT
))
let
dic
=
[
NSAttributedString
.
Key
.
font
:
font
]
let
strSize
=
text
.
boundingRect
(
with
:
size
,
options
:
[
.
usesLineFragmentOrigin
],
attributes
:
dic
,
context
:
nil
)
.
size
return
CGSizeMake
(
strSize
.
width
,
ceil
(
strSize
.
height
))
.
height
}
}
class
YHGrabNumberInfoView
:
UIView
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHGrabingNumberListCell.swift
View file @
d81a27e8
...
...
@@ -31,14 +31,15 @@ class YHGrabingNumberListCell: UITableViewCell {
}
// 抢号信息
let
items1
=
[
YHGrabItem
(
type
:
.
grab
,
title
:
"赴港时间:"
,
detail
:
"抢号中"
),
YHGrabItem
(
type
:
.
grab
,
title
:
"香港入境处:"
,
detail
:
"抢号中"
),
YHGrabItem
(
type
:
.
grab
,
title
:
"抢号反馈回执:"
,
detail
:
"抢号中"
),]
let
items1
=
[
YHGrabItem
(
type
:
.
grab
,
title
:
"赴港时间:"
,
detail
:
"抢号中"
,
isSingleLine
:
true
),
YHGrabItem
(
type
:
.
grab
,
title
:
"香港入境处:"
,
detail
:
"抢号中"
,
isSingleLine
:
true
),
YHGrabItem
(
type
:
.
grab
,
title
:
"抢号反馈回执:"
,
detail
:
"抢号中"
,
isSingleLine
:
true
),]
listView
.
grabInfoView
.
updateItems
(
items1
)
// 意向信息
let
items2
=
[
YHGrabItem
(
type
:
.
info
,
title
:
"期望赴港时间:"
,
detail
:
"
\(
group
.
wantMinTime
)
~
\(
group
.
wantMaxTime
)
"
),
YHGrabItem
(
type
:
.
info
,
title
:
"期望香港办证点:"
,
detail
:
group
.
wantImmigrationOffice
)]
let
items2
=
[
YHGrabItem
(
type
:
.
info
,
title
:
"期望赴港时间:"
,
detail
:
"
\(
group
.
wantMinTime
)
~
\(
group
.
wantMaxTime
)
"
,
isSingleLine
:
true
),
YHGrabItem
(
type
:
.
info
,
title
:
"期望香港办证点:"
,
detail
:
group
.
wantImmigrationOffice
,
isSingleLine
:
false
)]
listView
.
intentionInfoView
.
updateItems
(
items2
)
listContainView
.
addSubview
(
listView
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHGrabingNumberListView.swift
View file @
d81a27e8
...
...
@@ -56,9 +56,9 @@ class YHGrabingNumberListView: UIView {
lazy
var
grabInfoView
:
YHGrabNumberInfoView
=
{
let
view
=
YHGrabNumberInfoView
(
frame
:
.
zero
)
view
.
titleLabel
.
text
=
"抢号信息"
let
items
=
[
YHGrabItem
(
type
:
.
grab
,
title
:
"赴港时间:"
,
detail
:
"抢号中"
),
YHGrabItem
(
type
:
.
grab
,
title
:
"香港入境处:"
,
detail
:
"抢号中"
),
YHGrabItem
(
type
:
.
grab
,
title
:
"抢号反馈回执:"
,
detail
:
"抢号中"
),]
let
items
=
[
YHGrabItem
(
type
:
.
grab
,
title
:
"赴港时间:"
,
detail
:
"抢号中"
,
isSingleLine
:
true
),
YHGrabItem
(
type
:
.
grab
,
title
:
"香港入境处:"
,
detail
:
"抢号中"
,
isSingleLine
:
true
),
YHGrabItem
(
type
:
.
grab
,
title
:
"抢号反馈回执:"
,
detail
:
"抢号中"
,
isSingleLine
:
true
),]
view
.
updateItems
(
items
)
return
view
}()
...
...
@@ -66,8 +66,8 @@ class YHGrabingNumberListView: UIView {
lazy
var
intentionInfoView
:
YHGrabNumberInfoView
=
{
let
view
=
YHGrabNumberInfoView
(
frame
:
.
zero
)
view
.
titleLabel
.
text
=
"意向信息"
let
items
=
[
YHGrabItem
(
type
:
.
info
,
title
:
"期望赴港时间:"
,
detail
:
""
),
YHGrabItem
(
type
:
.
info
,
title
:
"期望香港办证点:"
,
detail
:
""
),
let
items
=
[
YHGrabItem
(
type
:
.
info
,
title
:
"期望赴港时间:"
,
detail
:
""
,
isSingleLine
:
true
),
YHGrabItem
(
type
:
.
info
,
title
:
"期望香港办证点:"
,
detail
:
""
,
isSingleLine
:
false
),
YHGrabItem
(
type
:
.
files
,
title
:
"抢号反馈回执:"
,
detail
:
""
),]
view
.
updateItems
(
items
)
return
view
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHHaveGrabbedNumberListCell.swift
View file @
d81a27e8
...
...
@@ -24,14 +24,14 @@ class YHHaveGrabbedNumberListCell: UITableViewCell {
listView
.
membersLabel
.
text
=
"成员:
\(
group
.
getMemberNames
()
)
"
// 抢号信息
let
items1
=
[
YHGrabItem
(
type
:
.
info
,
title
:
"赴港时间:"
,
detail
:
group
.
goTime
),
YHGrabItem
(
type
:
.
info
,
title
:
"香港入境处:"
,
detail
:
group
.
immigrationOffice
),
let
items1
=
[
YHGrabItem
(
type
:
.
info
,
title
:
"赴港时间:"
,
detail
:
group
.
goTime
,
isSingleLine
:
true
),
YHGrabItem
(
type
:
.
info
,
title
:
"香港入境处:"
,
detail
:
group
.
immigrationOffice
,
isSingleLine
:
false
),
YHGrabItem
(
type
:
.
files
,
title
:
"抢号反馈回执:"
,
detail
:
""
,
files
:
group
.
receipts
,
publicFiles
:
group
.
publicReceipts
)]
listView
.
grabInfoView
.
updateItems
(
items1
)
// 意向信息
let
items2
=
[
YHGrabItem
(
type
:
.
info
,
title
:
"期望赴港时间:"
,
detail
:
"
\(
group
.
wantMinTime
)
~
\(
group
.
wantMaxTime
)
"
),
YHGrabItem
(
type
:
.
info
,
title
:
"期望香港办证点:"
,
detail
:
group
.
wantImmigrationOffice
)]
let
items2
=
[
YHGrabItem
(
type
:
.
info
,
title
:
"期望赴港时间:"
,
detail
:
"
\(
group
.
wantMinTime
)
~
\(
group
.
wantMaxTime
)
"
,
isSingleLine
:
true
),
YHGrabItem
(
type
:
.
info
,
title
:
"期望香港办证点:"
,
detail
:
group
.
wantImmigrationOffice
,
isSingleLine
:
false
)]
listView
.
intentionInfoView
.
updateItems
(
items2
)
listContainView
.
addSubview
(
listView
)
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
d81a27e8
...
...
@@ -338,7 +338,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
if
true
{
let
vc
=
YHCertificateAppointViewController
()
vc
.
orderId
=
151
296
vc
.
orderId
=
151
085
// 151296
self
.
navigationController
?
.
pushViewController
(
vc
)
return
...
...
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