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
6c297ffc
Commit
6c297ffc
authored
Nov 12, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务中心部分接口逻辑
parent
6476b61f
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
621 additions
and
21 deletions
+621
-21
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-0
YHOrderDetailViewController.swift
...elligentService(服务中心)/C/YHOrderDetailViewController.swift
+21
-15
YHServiceCenterViewController.swift
...ligentService(服务中心)/C/YHServiceCenterViewController.swift
+14
-5
YHContactItemModel.swift
...dules/IntelligentService(服务中心)/M/YHContactItemModel.swift
+2
-0
YHServiceOrderGuideTipsView.swift
...elligentService(服务中心)/V/YHServiceOrderGuideTipsView.swift
+365
-0
YHServiceOrderTipsView.swift
...s/IntelligentService(服务中心)/V/YHServiceOrderTipsView.swift
+116
-0
YHServiceCenterViewModel.swift
...ntelligentService(服务中心)/VM/YHServiceCenterViewModel.swift
+6
-0
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+1
-1
Contents.json
...nter/主入口/service_center_tips_image.imageset/Contents.json
+22
-0
service_center_tips_image@2x.png
...nter_tips_image.imageset/service_center_tips_image@2x.png
+0
-0
service_center_tips_image@3x.png
...nter_tips_image.imageset/service_center_tips_image@3x.png
+0
-0
Contents.json
...er/主入口/service_order_guideline_bkg.imageset/Contents.json
+22
-0
service_order_guideline_bkg@2x.png
...guideline_bkg.imageset/service_order_guideline_bkg@2x.png
+0
-0
service_order_guideline_bkg@3x.png
...guideline_bkg.imageset/service_order_guideline_bkg@3x.png
+0
-0
Contents.json
...er/主入口/service_order_guideline_one.imageset/Contents.json
+22
-0
service_order_guideline_one@2x.png
...guideline_one.imageset/service_order_guideline_one@2x.png
+0
-0
service_order_guideline_one@3x.png
...guideline_one.imageset/service_order_guideline_one@3x.png
+0
-0
Contents.json
...er/主入口/service_order_guideline_two.imageset/Contents.json
+22
-0
service_order_guideline_two@2x.png
...guideline_two.imageset/service_order_guideline_two@2x.png
+0
-0
service_order_guideline_two@3x.png
...guideline_two.imageset/service_order_guideline_two@3x.png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
6c297ffc
...
@@ -611,6 +611,8 @@
...
@@ -611,6 +611,8 @@
04B9EE5A2C06CC3100A4018D
/* YHCodeSueecssViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B9EE582C06CC3100A4018D
/* YHCodeSueecssViewController.swift */
;
};
04B9EE5A2C06CC3100A4018D
/* YHCodeSueecssViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B9EE582C06CC3100A4018D
/* YHCodeSueecssViewController.swift */
;
};
04B9EE5B2C06CC3100A4018D
/* YHOtherLoginViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B9EE592C06CC3100A4018D
/* YHOtherLoginViewController.swift */
;
};
04B9EE5B2C06CC3100A4018D
/* YHOtherLoginViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B9EE592C06CC3100A4018D
/* YHOtherLoginViewController.swift */
;
};
04BD83452CCA2009003A88DF
/* AlimamaShuHeiTi-Bold.ttf in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04BD83442CCA2009003A88DF
/* AlimamaShuHeiTi-Bold.ttf */
;
};
04BD83452CCA2009003A88DF
/* AlimamaShuHeiTi-Bold.ttf in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04BD83442CCA2009003A88DF
/* AlimamaShuHeiTi-Bold.ttf */
;
};
04BD83582CE32D93003A88DF
/* YHServiceOrderTipsView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04BD83572CE32D93003A88DF
/* YHServiceOrderTipsView.swift */
;
};
04BD835A2CE34032003A88DF
/* YHServiceOrderGuideTipsView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04BD83592CE34032003A88DF
/* YHServiceOrderGuideTipsView.swift */
;
};
04C693622B723AB8004C1758
/* YHMySettingViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
;
};
04C693622B723AB8004C1758
/* YHMySettingViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
;
};
04C693642B723B56004C1758
/* YHMySettingCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C693632B723B56004C1758
/* YHMySettingCell.swift */
;
};
04C693642B723B56004C1758
/* YHMySettingCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C693632B723B56004C1758
/* YHMySettingCell.swift */
;
};
04C85DDF2C364FE9008B20D6
/* YHAboutUsCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C85DDE2C364FE9008B20D6
/* YHAboutUsCell.swift */
;
};
04C85DDF2C364FE9008B20D6
/* YHAboutUsCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C85DDE2C364FE9008B20D6
/* YHAboutUsCell.swift */
;
};
...
@@ -1599,6 +1601,8 @@
...
@@ -1599,6 +1601,8 @@
04B9EE582C06CC3100A4018D
/* YHCodeSueecssViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCodeSueecssViewController.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>"
;
};
04B9EE592C06CC3100A4018D
/* YHOtherLoginViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOtherLoginViewController.swift
;
sourceTree
=
"<group>"
;
};
04BD83442CCA2009003A88DF
/* AlimamaShuHeiTi-Bold.ttf */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file
;
path
=
"AlimamaShuHeiTi-Bold.ttf"
;
sourceTree
=
"<group>"
;
};
04BD83442CCA2009003A88DF
/* AlimamaShuHeiTi-Bold.ttf */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file
;
path
=
"AlimamaShuHeiTi-Bold.ttf"
;
sourceTree
=
"<group>"
;
};
04BD83572CE32D93003A88DF
/* YHServiceOrderTipsView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceOrderTipsView.swift
;
sourceTree
=
"<group>"
;
};
04BD83592CE34032003A88DF
/* YHServiceOrderGuideTipsView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceOrderGuideTipsView.swift
;
sourceTree
=
"<group>"
;
};
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMySettingViewController.swift
;
sourceTree
=
"<group>"
;
};
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMySettingViewController.swift
;
sourceTree
=
"<group>"
;
};
04C693632B723B56004C1758
/* YHMySettingCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMySettingCell.swift
;
sourceTree
=
"<group>"
;
};
04C693632B723B56004C1758
/* YHMySettingCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMySettingCell.swift
;
sourceTree
=
"<group>"
;
};
04C85DDE2C364FE9008B20D6
/* YHAboutUsCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAboutUsCell.swift
;
sourceTree
=
"<group>"
;
};
04C85DDE2C364FE9008B20D6
/* YHAboutUsCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAboutUsCell.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -5133,6 +5137,8 @@
...
@@ -5133,6 +5137,8 @@
044EE2282C913D6400A2FE3A
/* YHServiceCenterStepThreeTableHeadView.swift */
,
044EE2282C913D6400A2FE3A
/* YHServiceCenterStepThreeTableHeadView.swift */
,
044EE22C2C9184CD00A2FE3A
/* YHServiceMoreAlertView.swift */
,
044EE22C2C9184CD00A2FE3A
/* YHServiceMoreAlertView.swift */
,
044EE22E2C918D1400A2FE3A
/* YHServiceStepAlertView.swift */
,
044EE22E2C918D1400A2FE3A
/* YHServiceStepAlertView.swift */
,
04BD83572CE32D93003A88DF
/* YHServiceOrderTipsView.swift */
,
04BD83592CE34032003A88DF
/* YHServiceOrderGuideTipsView.swift */
,
);
);
path
=
V
;
path
=
V
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -5631,6 +5637,7 @@
...
@@ -5631,6 +5637,7 @@
044EE2482C93E49C00A2FE3A
/* YHResignCertificateHKTableViewCell.swift in Sources */
,
044EE2482C93E49C00A2FE3A
/* YHResignCertificateHKTableViewCell.swift in Sources */
,
A5EF21372BA6E2D1005027E6
/* YHQuestionAndAnswerModel.swift in Sources */
,
A5EF21372BA6E2D1005027E6
/* YHQuestionAndAnswerModel.swift in Sources */
,
A567E5A52BD7643D00D5D5A0
/* YHHomeCollectionLayout.swift in Sources */
,
A567E5A52BD7643D00D5D5A0
/* YHHomeCollectionLayout.swift in Sources */
,
04BD83582CE32D93003A88DF
/* YHServiceOrderTipsView.swift in Sources */
,
04A6715C2B9FE9EA00C1FB91
/* YHCertificateUploadContentListVC.swift in Sources */
,
04A6715C2B9FE9EA00C1FB91
/* YHCertificateUploadContentListVC.swift in Sources */
,
A592FE972BA6DB340062FACA
/* YHCertificateViewModel.swift in Sources */
,
A592FE972BA6DB340062FACA
/* YHCertificateViewModel.swift in Sources */
,
045EEEF02B9F171A0022A143
/* YHChildPrimaryInfoVC.swift in Sources */
,
045EEEF02B9F171A0022A143
/* YHChildPrimaryInfoVC.swift in Sources */
,
...
@@ -6357,6 +6364,7 @@
...
@@ -6357,6 +6364,7 @@
045EEEAA2B9F171A0022A143
/* YHWorkExampleViewController.swift in Sources */
,
045EEEAA2B9F171A0022A143
/* YHWorkExampleViewController.swift in Sources */
,
04256E1F2C7618A800A37BA4
/* YHAppointWarmTipsCell.swift in Sources */
,
04256E1F2C7618A800A37BA4
/* YHAppointWarmTipsCell.swift in Sources */
,
04256E132C75BD2700A37BA4
/* YHPayMemberContentItems.swift in Sources */
,
04256E132C75BD2700A37BA4
/* YHPayMemberContentItems.swift in Sources */
,
04BD835A2CE34032003A88DF
/* YHServiceOrderGuideTipsView.swift in Sources */
,
A5FD63C12B62616D00D1D9DA
/* YHInformationPerfectModel.swift in Sources */
,
A5FD63C12B62616D00D1D9DA
/* YHInformationPerfectModel.swift in Sources */
,
044F395C2CB8D58A007CA277
/* YHVisaRenewalPayInfoBaseCell.swift in Sources */
,
044F395C2CB8D58A007CA277
/* YHVisaRenewalPayInfoBaseCell.swift in Sources */
,
A567E5A62BD7643D00D5D5A0
/* YHHomeSearchView.swift in Sources */
,
A567E5A62BD7643D00D5D5A0
/* YHHomeSearchView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHOrderDetailViewController.swift
View file @
6c297ffc
...
@@ -13,6 +13,7 @@ class YHOrderDetailViewController: YHBaseViewController {
...
@@ -13,6 +13,7 @@ class YHOrderDetailViewController: YHBaseViewController {
var
model
:
YHContactItemModel
=
YHContactItemModel
()
var
model
:
YHContactItemModel
=
YHContactItemModel
()
var
tableView
:
UITableView
!
var
tableView
:
UITableView
!
var
viewModel
:
YHServiceOrderSearchViewModel
=
YHServiceOrderSearchViewModel
()
var
viewModel
:
YHServiceOrderSearchViewModel
=
YHServiceOrderSearchViewModel
()
let
serviceCenterMainReqVM
:
YHServiceCenterViewModel
=
YHServiceCenterViewModel
()
var
dataSource
:
[
YHContactItemModel
]
=
[]
var
dataSource
:
[
YHContactItemModel
]
=
[]
lazy
var
noDataView
:
YHEmptyDataView
=
{
lazy
var
noDataView
:
YHEmptyDataView
=
{
...
@@ -29,23 +30,28 @@ class YHOrderDetailViewController: YHBaseViewController {
...
@@ -29,23 +30,28 @@ class YHOrderDetailViewController: YHBaseViewController {
}
}
func
getData
()
{
func
getData
()
{
viewModel
.
getAssis
tList
{[
weak
self
]
success
,
error
in
serviceCenterMainReqVM
.
getContac
tList
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
success
{
if
success
==
true
{
if
model
.
id
!=
-
1
{
dataSource
=
serviceCenterMainReqVM
.
arrContactList
dataSource
.
append
(
model
)
viewModel
.
getAssistList
{[
weak
self
]
success
,
error
in
}
guard
let
self
=
self
else
{
return
}
for
item
in
self
.
viewModel
.
arrContactList
{
if
success
{
dataSource
.
append
(
item
)
for
item
in
self
.
viewModel
.
arrContactList
{
}
dataSource
.
append
(
item
)
if
dataSource
.
count
!=
0
{
}
self
.
noDataView
.
isHidden
=
true
if
dataSource
.
count
!=
0
{
self
.
tableView
.
isHidden
=
false
self
.
noDataView
.
isHidden
=
true
self
.
tableView
.
reloadData
()
self
.
tableView
.
isHidden
=
false
}
else
{
self
.
tableView
.
reloadData
()
self
.
noDataView
.
isHidden
=
false
}
else
{
self
.
tableView
.
isHidden
=
true
self
.
noDataView
.
isHidden
=
false
self
.
tableView
.
isHidden
=
true
}
}
}
}
}
else
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
"请求出错"
)
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceCenterViewController.swift
View file @
6c297ffc
...
@@ -243,7 +243,7 @@ extension YHServiceCenterViewController {
...
@@ -243,7 +243,7 @@ extension YHServiceCenterViewController {
//
//
// return
// return
var
flag
=
true
var
flag
=
true
if
self
.
state
==
1
||
self
.
state
==
3
{
if
self
.
state
==
3
{
flag
=
false
flag
=
false
}
}
YHServiceMoreAlertView
.
show
(
flag
)
{[
weak
self
]
index
in
YHServiceMoreAlertView
.
show
(
flag
)
{[
weak
self
]
index
in
...
@@ -260,8 +260,14 @@ extension YHServiceCenterViewController {
...
@@ -260,8 +260,14 @@ extension YHServiceCenterViewController {
}
}
self
.
navigationController
?
.
pushViewController
(
vc
)
self
.
navigationController
?
.
pushViewController
(
vc
)
}
else
{
}
else
{
let
view
=
YHOffivialApprovalGuildLineCheckView
.
sheetView
()
if
self
.
state
==
1
{
view
.
show
()
let
view
=
YHServiceOrderGuideTipsView
.
sheetView
(
serviceCenterMainReqVM
.
hasTTPS
,
model
.
product_type
)
view
.
show
()
}
if
self
.
state
==
2
{
let
view
=
YHOffivialApprovalGuildLineCheckView
.
sheetView
()
view
.
show
()
}
}
}
}
}
...
@@ -320,13 +326,11 @@ extension YHServiceCenterViewController {
...
@@ -320,13 +326,11 @@ extension YHServiceCenterViewController {
if
serviceCenterMainReqVM
.
arrContactList
.
isEmpty
{
if
serviceCenterMainReqVM
.
arrContactList
.
isEmpty
{
noDataView
.
isHidden
=
false
noDataView
.
isHidden
=
false
homeTableView
.
isHidden
=
true
homeTableView
.
isHidden
=
true
orderButton
.
isHidden
=
true
titleLabel
.
setImage
(
UIImage
(
named
:
""
),
for
:
.
normal
)
titleLabel
.
setImage
(
UIImage
(
named
:
""
),
for
:
.
normal
)
}
else
{
}
else
{
guard
let
model
=
serviceCenterMainReqVM
.
arrContactList
.
first
else
{
guard
let
model
=
serviceCenterMainReqVM
.
arrContactList
.
first
else
{
return
return
}
}
orderButton
.
isHidden
=
false
noDataView
.
isHidden
=
true
noDataView
.
isHidden
=
true
homeTableView
.
isHidden
=
false
homeTableView
.
isHidden
=
false
if
self
.
navigationController
?
.
viewControllers
.
count
!=
2
&&
self
.
navigationController
?
.
viewControllers
.
count
!=
1
{
if
self
.
navigationController
?
.
viewControllers
.
count
!=
2
&&
self
.
navigationController
?
.
viewControllers
.
count
!=
1
{
...
@@ -386,6 +390,11 @@ extension YHServiceCenterViewController {
...
@@ -386,6 +390,11 @@ extension YHServiceCenterViewController {
}
}
}
}
self
.
homeTableView
.
reloadData
()
self
.
homeTableView
.
reloadData
()
//首次显示指引
if
let
flag
=
UserDefaults
.
standard
.
string
(
forKey
:
"service_tip_show"
)
{
}
else
{
YHServiceOrderTipsView
.
show
()
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/M/YHContactItemModel.swift
View file @
6c297ffc
...
@@ -17,4 +17,6 @@ struct YHContactItemModel : SmartCodable {
...
@@ -17,4 +17,6 @@ struct YHContactItemModel : SmartCodable {
var
createTime
:
String
=
""
var
createTime
:
String
=
""
var
type
:
String
=
""
var
type
:
String
=
""
var
mobile
:
String
=
""
var
mobile
:
String
=
""
var
status
:
Int
=
0
var
product_type
:
Int
=
0
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHServiceOrderGuideTipsView.swift
0 → 100644
View file @
6c297ffc
//
// YHServiceOrderGuideTipsView.swift
// galaxy
//
// Created by EDY on 2024/11/12.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHServiceOrderGuideTipsView
:
UIView
{
typealias
Block
=
()
->
()
var
block
:
Block
?
var
isShow
:
Bool
=
true
var
type
:
Int
=
0
lazy
var
blackMaskView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
(
hex
:
0x0F1214
,
alpha
:
0.5
)
// let tap = UITapGestureRecognizer(target: self, action: #selector(dismiss))
// view.addGestureRecognizer(tap)
return
view
}()
lazy
var
whiteContentView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
return
view
}()
lazy
var
buttonContentView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
.
contentBkgColor
return
view
}()
lazy
var
leftBtn
:
UIButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"优才"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
hex
:
0x8893a2
),
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
mainTextColor
,
for
:
.
selected
)
button
.
setBackgroundColor
(
color
:
UIColor
.
contentBkgColor
,
forState
:
.
normal
)
button
.
setBackgroundColor
(
color
:
UIColor
.
white
,
forState
:
.
selected
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
clipsToBounds
=
true
button
.
addTarget
(
self
,
action
:
#selector(
clickLeftBtn
)
,
for
:
.
touchUpInside
)
button
.
backgroundColor
=
UIColor
.
brandMainColor
return
button
}()
lazy
var
rightBtn
:
UIButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"高才"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
hex
:
0x8893a2
),
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
mainTextColor
,
for
:
.
selected
)
button
.
setBackgroundColor
(
color
:
UIColor
.
contentBkgColor
,
forState
:
.
normal
)
button
.
setBackgroundColor
(
color
:
UIColor
.
white
,
forState
:
.
selected
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
clipsToBounds
=
true
button
.
addTarget
(
self
,
action
:
#selector(
clickRightBtn
)
,
for
:
.
touchUpInside
)
button
.
backgroundColor
=
UIColor
.
brandMainColor
return
button
}()
lazy
var
bottomView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
clear
view
.
addSubview
(
self
.
rewardBtn
)
self
.
rewardBtn
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
10
)
make
.
left
.
equalTo
(
kMargin
)
make
.
right
.
equalTo
(
-
kMargin
)
make
.
height
.
equalTo
(
44
)
}
view
.
layer
.
zPosition
=
10
return
view
}()
//我已知悉,确认
lazy
var
rewardBtn
:
UIButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"我已知悉,确认"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
clipsToBounds
=
true
button
.
addTarget
(
self
,
action
:
#selector(
clickSureBtn
)
,
for
:
.
touchUpInside
)
button
.
backgroundColor
=
UIColor
.
brandMainColor
return
button
}()
lazy
var
myScrollView
:
UIScrollView
=
{
let
view
=
UIScrollView
()
view
.
backgroundColor
=
.
clear
view
.
showsVerticalScrollIndicator
=
false
view
.
delegate
=
self
return
view
}()
lazy
var
bkgImageV
:
UIImageView
=
{
let
imageV
=
UIImageView
()
imageV
.
image
=
UIImage
(
named
:
"service_order_guideline_one"
)
// service_order_guideline_two
imageV
.
contentMode
=
.
scaleToFill
imageV
.
clipsToBounds
=
true
return
imageV
}()
lazy
var
bkgImageV2
:
UIImageView
=
{
let
imageV
=
UIImageView
()
imageV
.
image
=
UIImage
(
named
:
"service_order_guideline_bkg"
)
imageV
.
contentMode
=
.
scaleToFill
imageV
.
clipsToBounds
=
true
return
imageV
}()
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
setupUI
()
}
private
var
timer
:
Timer
?
private
var
maxCount
:
Int
=
5
//之前是否展示过
var
ischeckBeforeFlag
:
Bool
=
false
{
didSet
{
if
ischeckBeforeFlag
{
setButtonEnable
(
true
)
}
else
{
setButtonEnable
(
false
)
startTimer
()
}
}
}
func
isShow
(
flag
:
Bool
)
{
buttonContentView
.
isHidden
=
!
flag
if
flag
{
myScrollView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
120
)
make
.
right
.
equalToSuperview
()
make
.
width
.
equalTo
(
KScreenWidth
)
make
.
height
.
equalTo
(
KScreenHeight
-
k_Height_NavigationtBarAndStatuBar
-
98
-
120
)
}
}
else
{
myScrollView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
68
)
make
.
right
.
equalToSuperview
()
make
.
width
.
equalTo
(
KScreenWidth
)
make
.
height
.
equalTo
(
KScreenHeight
-
k_Height_NavigationtBarAndStatuBar
-
98
-
68
)
}
}
}
}
extension
YHServiceOrderGuideTipsView
{
static
func
sheetView
(
_
isShow
:
Bool
=
true
,
_
selectType
:
Int
=
0
)
->
YHServiceOrderGuideTipsView
{
let
view
=
YHServiceOrderGuideTipsView
(
frame
:
UIScreen
.
main
.
bounds
)
view
.
isShow
=
isShow
view
.
type
=
selectType
return
view
}
func
show
()
{
UIApplication
.
shared
.
yhKeyWindow
()?
.
addSubview
(
self
)
UIView
.
animate
(
withDuration
:
0.5
)
{
let
whiteHeight
=
KScreenHeight
-
k_Height_NavigationtBarAndStatuBar
self
.
whiteContentView
.
frame
=
CGRect
(
x
:
0
,
y
:
KScreenHeight
-
whiteHeight
,
width
:
KScreenWidth
,
height
:
whiteHeight
)
self
.
isShow
(
flag
:
self
.
isShow
)
if
self
.
type
==
1
{
self
.
clickLeftBtn
()
}
else
{
self
.
clickRightBtn
()
}
}
}
@objc
func
dismiss
()
{
self
.
removeFromSuperview
()
}
@objc
func
clickSureBtn
()
{
self
.
block
?()
dismiss
()
}
@objc
func
clickLeftBtn
()
{
leftBtn
.
isSelected
=
true
rightBtn
.
isSelected
=
false
bkgImageV
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
top
.
equalTo
(
0
)
make
.
right
.
equalTo
(
-
20
)
make
.
height
.
equalTo
(
952
.
fix
)
}
bkgImageV
.
image
=
UIImage
(
named
:
"service_order_guideline_one"
)
myScrollView
.
contentSize
=
CGSize
(
width
:
KScreenWidth
,
height
:
952
.
fix
)
}
@objc
func
clickRightBtn
()
{
leftBtn
.
isSelected
=
false
rightBtn
.
isSelected
=
true
bkgImageV
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
top
.
equalTo
(
0
)
make
.
right
.
equalTo
(
-
20
)
make
.
height
.
equalTo
(
830
.
fix
)
}
bkgImageV
.
image
=
UIImage
(
named
:
"service_order_guideline_two"
)
myScrollView
.
contentSize
=
CGSize
(
width
:
KScreenWidth
,
height
:
830
.
fix
)
}
}
private
extension
YHServiceOrderGuideTipsView
{
@objc
func
timerFired
()
{
// 定时器触发时执行的代码
print
(
"Timer fired"
)
self
.
maxCount
=
self
.
maxCount
-
1
if
self
.
maxCount
<
1
{
self
.
stopTimer
()
self
.
setButtonEnable
(
true
)
}
else
{
rewardBtn
.
setTitle
(
"请上滑看完指引后操作(
\(
maxCount
)
s)"
,
for
:
.
normal
)
}
}
func
startTimer
()
{
stopTimer
()
timer
=
Timer
.
scheduledTimer
(
timeInterval
:
1.0
,
target
:
self
,
selector
:
#selector(
timerFired
)
,
userInfo
:
nil
,
repeats
:
true
)
RunLoop
.
current
.
add
(
timer
!
,
forMode
:
.
common
)
}
func
stopTimer
()
{
maxCount
=
5
timer
?
.
invalidate
()
timer
=
nil
}
func
setButtonEnable
(
_
enable
:
Bool
)
{
rewardBtn
.
isEnabled
=
enable
if
enable
{
rewardBtn
.
setTitle
(
"我已知悉,确认"
,
for
:
.
normal
)
rewardBtn
.
backgroundColor
=
UIColor
.
brandMainColor
}
else
{
rewardBtn
.
setTitle
(
"请上滑看完指引后操作(5s)"
,
for
:
.
normal
)
rewardBtn
.
backgroundColor
=
UIColor
(
hex
:
0xB7C0CC
,
alpha
:
1.0
)
}
}
func
setupUI
()
{
self
.
addSubview
(
blackMaskView
)
self
.
addSubview
(
whiteContentView
)
let
corner
=
UIRectCorner
(
rawValue
:
UIRectCorner
.
topLeft
.
rawValue
|
UIRectCorner
.
topRight
.
rawValue
)
let
path
=
UIBezierPath
(
roundedRect
:
bounds
,
byRoundingCorners
:
corner
,
cornerRadii
:
CGSizeMake
(
kCornerRadius6
,
kCornerRadius6
));
let
layer
=
CAShapeLayer
();
layer
.
frame
=
whiteContentView
.
bounds
;
layer
.
path
=
path
.
cgPath
;
whiteContentView
.
layer
.
mask
=
layer
;
whiteContentView
.
clipsToBounds
=
true
blackMaskView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
let
whiteHeight
=
KScreenHeight
-
k_Height_NavigationtBarAndStatuBar
// whiteContentView.snp.makeConstraints { make in
// make.left.right.bottom.equalToSuperview()
// make.height.equalTo(whiteHeight)
// }
whiteContentView
.
frame
=
CGRect
(
x
:
0
,
y
:
KScreenHeight
,
width
:
KScreenWidth
,
height
:
whiteHeight
)
whiteContentView
.
addSubview
(
bkgImageV2
)
bkgImageV2
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
68
)
}
whiteContentView
.
addSubview
(
bottomView
)
bottomView
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
98
)
}
whiteContentView
.
addSubview
(
buttonContentView
)
buttonContentView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
64
)
make
.
centerX
.
equalToSuperview
()
make
.
height
.
equalTo
(
36
)
make
.
width
.
equalTo
(
223
)
}
buttonContentView
.
addSubview
(
leftBtn
)
leftBtn
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
3
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
30
)
make
.
width
.
equalTo
(
108
)
}
buttonContentView
.
addSubview
(
rightBtn
)
rightBtn
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
3
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
30
)
make
.
width
.
equalTo
(
108
)
}
whiteContentView
.
addSubview
(
myScrollView
)
myScrollView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
120
)
make
.
right
.
equalToSuperview
()
make
.
width
.
equalTo
(
KScreenWidth
)
make
.
height
.
equalTo
(
whiteHeight
-
98
-
120
)
}
myScrollView
.
addSubview
(
bkgImageV
)
bkgImageV
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
top
.
equalTo
(
0
)
make
.
right
.
equalTo
(
-
20
)
make
.
height
.
equalTo
(
952
.
fix
)
}
myScrollView
.
contentSize
=
CGSize
(
width
:
KScreenWidth
,
height
:
952
.
fix
)
}
}
extension
YHServiceOrderGuideTipsView
:
UIScrollViewDelegate
{
func
scrollViewDidScroll
(
_
scrollView
:
UIScrollView
)
{
if
!
ischeckBeforeFlag
{
let
scrollViewContentHeight
=
scrollView
.
contentSize
.
height
let
scrollOffsetThreshold
=
scrollViewContentHeight
-
scrollView
.
bounds
.
size
.
height
// 当前滚动位置
let
currentOffset
=
scrollView
.
contentOffset
.
y
if
currentOffset
>
scrollOffsetThreshold
{
// 接近底部
// 滚动到了底部
ischeckBeforeFlag
=
true
stopTimer
()
setButtonEnable
(
true
)
}
else
{
// 没有滚动到底部
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHServiceOrderTipsView.swift
0 → 100644
View file @
6c297ffc
//
// YHServiceOrderTipsView.swift
// galaxy
//
// Created by EDY on 2024/11/12.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
AttributedString
class
YHServiceOrderTipsView
:
UIView
{
var
titleLabel
:
UIImageView
!
var
knowButton
:
UIButton
!
var
measageLabel
:
UILabel
!
static
func
show
()
{
let
view
=
YHServiceOrderTipsView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
backgroundColor
=
UIColor
(
hex
:
0x000000
)
.
withAlphaComponent
(
0.7
)
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
handleTap
)
)
tap
.
delegate
=
self
addGestureRecognizer
(
tap
)
setView
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
setView
()
{
backgroundColor
=
UIColor
(
hex
:
0x0000
,
alpha
:
0.5
)
titleLabel
=
{
let
label
=
UIImageView
()
label
.
image
=
UIImage
(
named
:
"service_center_tips_image"
)
return
label
}()
addSubview
(
titleLabel
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
85
)
make
.
height
.
equalTo
(
112
)
make
.
width
.
equalTo
(
254
)
make
.
right
.
equalTo
(
-
20
)
}
knowButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"我知道了"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
layer
.
borderWidth
=
1
button
.
layer
.
borderColor
=
UIColor
.
white
.
cgColor
button
.
clipsToBounds
=
true
button
.
addTarget
(
self
,
action
:
#selector(
goNext
)
,
for
:
.
touchUpInside
)
return
button
}()
addSubview
(
knowButton
)
knowButton
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
298
)
make
.
centerX
.
equalToSuperview
()
make
.
height
.
equalTo
(
46
)
make
.
width
.
equalTo
(
96
)
}
measageLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
label
.
textColor
=
UIColor
.
white
label
.
text
=
"点击右上方可以
\n
切换我的订单、查看申请操作指引"
label
.
numberOfLines
=
0
label
.
textAlignment
=
.
center
return
label
}()
addSubview
(
measageLabel
)
measageLabel
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
21
)
make
.
left
.
equalTo
(
21
)
make
.
top
.
equalTo
(
242
)
make
.
height
.
equalTo
(
44
)
}
}
@objc
private
func
handleTap
(
_
sender
:
AnyObject
?)
{
dismiss
()
}
@objc
func
dismiss
()
{
removeFromSuperview
()
UserDefaults
.
standard
.
set
(
true
,
forKey
:
"service_tip_show"
)
}
@objc
func
goNext
()
{
dismiss
()
}
}
extension
YHServiceOrderTipsView
:
UIGestureRecognizerDelegate
{
func
gestureRecognizer
(
_
gestureRecognizer
:
UIGestureRecognizer
,
shouldReceive
touch
:
UITouch
)
->
Bool
{
if
touch
.
view
==
self
{
return
true
}
return
false
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/VM/YHServiceCenterViewModel.swift
View file @
6c297ffc
...
@@ -16,6 +16,7 @@ class YHServiceCenterViewModel: YHBaseViewModel {
...
@@ -16,6 +16,7 @@ class YHServiceCenterViewModel: YHBaseViewModel {
var
arrDataForSeviceCenterProgress
:
[
YHServiceCenterProgressModel
]
=
[]
var
arrDataForSeviceCenterProgress
:
[
YHServiceCenterProgressModel
]
=
[]
var
mainModel
:
YHServiceCenterMainModel
=
YHServiceCenterMainModel
()
var
mainModel
:
YHServiceCenterMainModel
=
YHServiceCenterMainModel
()
var
url
:
String
=
""
var
url
:
String
=
""
var
hasTTPS
:
Bool
=
false
}
}
//请求接口
//请求接口
...
@@ -45,6 +46,11 @@ extension YHServiceCenterViewModel {
...
@@ -45,6 +46,11 @@ extension YHServiceCenterViewModel {
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
self
.
arrContactList
=
resultModel
.
orders
self
.
arrContactList
=
resultModel
.
orders
for
item
in
self
.
arrContactList
{
if
item
.
product_type
==
2
{
self
.
hasTTPS
=
true
}
}
callBackBlock
(
true
,
nil
)
callBackBlock
(
true
,
nil
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
6c297ffc
...
@@ -126,7 +126,7 @@ class YHAllApiName {
...
@@ -126,7 +126,7 @@ class YHAllApiName {
//order 模块
//order 模块
struct
Order
{
struct
Order
{
//合同列表
//合同列表
static
let
contractListApi
=
"infoflow/order/list"
static
let
contractListApi
=
"infoflow/order/list
_v2
"
static
let
main
=
"super-app/order/process_v2"
static
let
main
=
"super-app/order/process_v2"
//合同填写进度
//合同填写进度
...
...
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_center_tips_image.imageset/Contents.json
0 → 100644
View file @
6c297ffc
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"service_center_tips_image@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"service_center_tips_image@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_center_tips_image.imageset/service_center_tips_image@2x.png
0 → 100644
View file @
6c297ffc
8.87 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_center_tips_image.imageset/service_center_tips_image@3x.png
0 → 100644
View file @
6c297ffc
13.5 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_order_guideline_bkg.imageset/Contents.json
0 → 100644
View file @
6c297ffc
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"service_order_guideline_bkg@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"service_order_guideline_bkg@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_order_guideline_bkg.imageset/service_order_guideline_bkg@2x.png
0 → 100644
View file @
6c297ffc
67 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_order_guideline_bkg.imageset/service_order_guideline_bkg@3x.png
0 → 100644
View file @
6c297ffc
133 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_order_guideline_one.imageset/Contents.json
0 → 100644
View file @
6c297ffc
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"service_order_guideline_one@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"service_order_guideline_one@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_order_guideline_one.imageset/service_order_guideline_one@2x.png
0 → 100644
View file @
6c297ffc
214 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_order_guideline_one.imageset/service_order_guideline_one@3x.png
0 → 100644
View file @
6c297ffc
319 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_order_guideline_two.imageset/Contents.json
0 → 100644
View file @
6c297ffc
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"service_order_guideline_two@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"service_order_guideline_two@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_order_guideline_two.imageset/service_order_guideline_two@2x.png
0 → 100644
View file @
6c297ffc
184 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_order_guideline_two.imageset/service_order_guideline_two@3x.png
0 → 100644
View file @
6c297ffc
275 KB
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