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
274e08b7
Commit
274e08b7
authored
Oct 17, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 选择赴港在港递交时间选择 UI
parent
019d3625
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
32 deletions
+70
-32
YHPickTimeHoldView.swift
...point(在港递交预约)/V/RangeDatePicker2/YHPickTimeHoldView.swift
+43
-9
YHRangeDatePickerSheetView2.swift
...交预约)/V/RangeDatePicker2/YHRangeDatePickerSheetView2.swift
+2
-2
YHJsApi.swift
...galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
+1
-1
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+20
-20
YHWholeScreenTipsView.swift
...y/galaxy/Classes/Tools/Helper/YHWholeScreenTipsView.swift
+4
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/RangeDatePicker2/YHPickTimeHoldView.swift
View file @
274e08b7
...
@@ -24,21 +24,20 @@ class YHPickTimeHoldView: UIView {
...
@@ -24,21 +24,20 @@ class YHPickTimeHoldView: UIView {
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
textColor
=
.
mainTextColor
label
.
textColor
=
.
mainTextColor
label
.
text
=
"具体时间
:
"
label
.
text
=
"具体时间"
return
label
return
label
}()
}()
lazy
var
tip
ImageV
:
UIImageView
=
{
private
lazy
var
icon
ImageV
:
UIImageView
=
{
let
view
=
UIImageView
()
let
view
=
UIImageView
()
view
.
image
=
UIImage
(
named
:
"other_info_warning"
)
view
.
contentMode
=
.
scaleAspectFill
view
.
contentMode
=
.
scaleAspectFill
view
.
image
=
UIImage
(
named
:
"activity_travel_bkg"
)
return
view
return
view
}()
}()
lazy
var
nextImageV
:
UIImageView
=
{
private
lazy
var
arrowIcon
:
UIImageView
=
{
let
view
=
UIImageView
()
let
view
=
UIImageView
()
view
.
contentMode
=
.
scaleAspectFill
view
.
image
=
UIImage
(
named
:
"right_arrow_black_20"
)
view
.
image
=
UIImage
(
named
:
"activity_travel_bkg"
)
return
view
return
view
}()
}()
...
@@ -47,6 +46,8 @@ class YHPickTimeHoldView: UIView {
...
@@ -47,6 +46,8 @@ class YHPickTimeHoldView: UIView {
tf
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
tf
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
tf
.
textColor
=
UIColor
.
mainTextColor
tf
.
textColor
=
UIColor
.
mainTextColor
tf
.
placeholder
=
"请选择"
tf
.
placeholder
=
"请选择"
tf
.
isEnabled
=
false
tf
.
textAlignment
=
.
right
return
tf
return
tf
}()
}()
...
@@ -67,8 +68,11 @@ class YHPickTimeHoldView: UIView {
...
@@ -67,8 +68,11 @@ class YHPickTimeHoldView: UIView {
func
createUI
()
{
func
createUI
()
{
self
.
addSubview
(
lineView
)
addSubview
(
lineView
)
self
.
addSubview
(
applicantNamesLabel
)
addSubview
(
applicantNamesLabel
)
addSubview
(
iconImageV
)
addSubview
(
arrowIcon
)
addSubview
(
timeTextField
)
lineView
.
snp
.
makeConstraints
{
make
in
lineView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
top
.
equalToSuperview
()
make
.
left
.
right
.
top
.
equalToSuperview
()
...
@@ -77,7 +81,37 @@ class YHPickTimeHoldView: UIView {
...
@@ -77,7 +81,37 @@ class YHPickTimeHoldView: UIView {
applicantNamesLabel
.
snp
.
makeConstraints
{
make
in
applicantNamesLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
18
-
71
-
5
)
make
.
centerY
.
equalToSuperview
()
.
offset
(
1
)
}
iconImageV
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
applicantNamesLabel
.
snp
.
right
)
.
offset
(
4
)
make
.
centerY
.
equalTo
(
applicantNamesLabel
)
make
.
height
.
width
.
equalTo
(
kMargin
)
}
}
let
tap
:
UITapGestureRecognizer
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
tapButton(gestureRecognizer:)
)
)
iconImageV
.
isUserInteractionEnabled
=
true
iconImageV
.
addGestureRecognizer
(
tap
)
arrowIcon
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalToSuperview
()
.
offset
(
-
kMargin
)
make
.
centerY
.
equalTo
(
applicantNamesLabel
)
make
.
height
.
width
.
equalTo
(
16
)
}
timeTextField
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
arrowIcon
.
snp
.
left
)
.
offset
(
-
10
)
make
.
centerY
.
equalTo
(
applicantNamesLabel
)
make
.
width
.
equalTo
(
80
)
}
}
}
private
extension
YHPickTimeHoldView
{
@objc
func
tapButton
(
gestureRecognizer
:
UITapGestureRecognizer
)
{
YHWholeScreenTipsView
.
show
(
type
:
.
renewTimeTips
,
targetView
:
iconImageV
)
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/RangeDatePicker2/YHRangeDatePickerSheetView2.swift
View file @
274e08b7
...
@@ -96,8 +96,8 @@ class YHRangeDatePickerSheetView2: UIView {
...
@@ -96,8 +96,8 @@ class YHRangeDatePickerSheetView2: UIView {
return
imageV
return
imageV
}()
}()
lazy
var
timeHoldView
:
UI
View
=
{
lazy
var
timeHoldView
:
YHPickTimeHold
View
=
{
let
imageV
=
UI
View
()
let
imageV
=
YHPickTimeHold
View
()
imageV
.
backgroundColor
=
.
yellow
//52
imageV
.
backgroundColor
=
.
yellow
//52
return
imageV
return
imageV
}()
}()
...
...
galaxy/galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
View file @
274e08b7
...
@@ -248,7 +248,7 @@ extension YHJsApi {
...
@@ -248,7 +248,7 @@ extension YHJsApi {
//普通界面
//普通界面
if
!
url
.
isEmpty
{
if
!
url
.
isEmpty
{
var
tUrl
=
url
var
tUrl
=
url
if
!
url
.
contains
(
"avigationH="
)
{
if
!
url
.
contains
(
"
n
avigationH="
)
{
tUrl
=
url
+
"?navigationH=
\(
k_Height_NavigationtBarAndStatuBar
)
"
tUrl
=
url
+
"?navigationH=
\(
k_Height_NavigationtBarAndStatuBar
)
"
if
url
.
contains
(
"?"
)
{
if
url
.
contains
(
"?"
)
{
tUrl
=
url
+
"&navigationH=
\(
k_Height_NavigationtBarAndStatuBar
)
"
tUrl
=
url
+
"&navigationH=
\(
k_Height_NavigationtBarAndStatuBar
)
"
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
274e08b7
...
@@ -409,29 +409,29 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
...
@@ -409,29 +409,29 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
self
.
navigationController
?
.
pushViewController
(
vc
)
self
.
navigationController
?
.
pushViewController
(
vc
)
case
.
myOrder
:
case
.
myOrder
:
//我的订单
//我的订单
if
let
token
=
YHLoginManager
.
shared
.
userModel
?
.
token
,
token
.
count
>
5
{
//
if let token = YHLoginManager.shared.userModel?.token,token.count > 5 {
var
url
=
YHBaseUrlManager
.
shared
.
curH5URL
()
+
"superAppBridge.html#/order/my"
//
var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/order/my"
url
=
"?param="
+
YHLoginManager
.
shared
.
h5Token
//
url = "?param=" + YHLoginManager.shared.h5Token
printLog
(
"URL:
\(
url
)
"
)
//
printLog("URL: \(url)")
let
vc
=
YHH5WebViewVC
()
//
let vc = YHH5WebViewVC()
vc
.
url
=
url
//
vc.url = url
vc
.
isFullScreenFlag
=
false
//
vc.isFullScreenFlag = false
vc
.
navTitle
=
"我的订单"
//
vc.navTitle = "我的订单"
vc
.
isSupportWebviewInterBackFlag
=
true
//
vc.isSupportWebviewInterBackFlag = true
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
//
UIViewController.current?.navigationController?.pushViewController(vc)
}
//
}
//
let view = YHRangeDatePickerSheetView2.sheetView()
let
view
=
YHRangeDatePickerSheetView2
.
sheetView
()
//
view.block = {
view
.
block
=
{
//
[weak self] (startDate,endDate) in
[
weak
self
]
(
startDate
,
endDate
)
in
//
guard let self = self else { return }
guard
let
self
=
self
else
{
return
}
//
//
printLog("开始时间: \(startDate)")
printLog
(
"开始时间:
\(
startDate
)
"
)
//
printLog("结束时间: \(endDate)")
printLog
(
"结束时间:
\(
endDate
)
"
)
//
}
}
//
view.show()//for test hjl
view
.
show
()
//for test hjl
default
:
default
:
printLog
(
"不需要响应"
)
printLog
(
"不需要响应"
)
}
}
...
...
galaxy/galaxy/Classes/Tools/Helper/YHWholeScreenTipsView.swift
View file @
274e08b7
...
@@ -24,6 +24,8 @@ enum YHWholeScreenTipsViewType : Int {
...
@@ -24,6 +24,8 @@ enum YHWholeScreenTipsViewType : Int {
case
hkPlanQ5
//赴港计划书问题5
case
hkPlanQ5
//赴港计划书问题5
case
hkPlanQ6
//赴港计划书问题6
case
hkPlanQ6
//赴港计划书问题6
case
hkPlanQ7
//赴港计划书问题7
case
hkPlanQ7
//赴港计划书问题7
case
renewTimeTips
//选择预约在港递交时间
}
}
...
@@ -94,6 +96,8 @@ class YHWholeScreenTipsView: UIView {
...
@@ -94,6 +96,8 @@ class YHWholeScreenTipsView: UIView {
return
"请以不超过100字简介你认为对评核你的申请非常重要的其他材料"
return
"请以不超过100字简介你认为对评核你的申请非常重要的其他材料"
case
.
hkPlanQ7
:
case
.
hkPlanQ7
:
return
"您可以在此输入因为字数限制无法输入的内容"
return
"您可以在此输入因为字数限制无法输入的内容"
case
.
renewTimeTips
:
return
"入境处网址18:00之后可能会存在系统更新,为避免预约时间无法递交,请尽量选择18:00之前的时间"
default
:
default
:
return
"--"
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