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
0735a8d2
Commit
0735a8d2
authored
May 22, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'youhua-dev' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into youhua-dev
parents
3ad19e16
84e0788d
Changes
36
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
160 additions
and
565 deletions
+160
-565
Fastfile
galaxy/fastlane/Fastfile
+1
-1
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+3
-11
YHTabBarViewController.swift
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
+1
-1
YHBasicContentView.swift
galaxy/galaxy/Classes/Base/V/YHBasicContentView.swift
+2
-2
YHEmptyDataView.swift
galaxy/galaxy/Classes/Base/V/YHEmptyDataView.swift
+1
-1
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+1
-1
YHHomeBannerView.swift
.../galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerView.swift
+12
-1
YHHomeCollectionViewCell.swift
...Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
+2
-2
YHSearchInfoBar.swift
...y/galaxy/Classes/Modules/Home(首页)/V/YHSearchInfoBar.swift
+1
-1
YHSearchInfoCell.swift
.../galaxy/Classes/Modules/Home(首页)/V/YHSearchInfoCell.swift
+2
-2
YHSearchInfoHistoryCell.swift
.../Classes/Modules/Home(首页)/V/YHSearchInfoHistoryCell.swift
+1
-1
YHServiceOrderAlertView.swift
.../Classes/Modules/Home(首页)/V/YHServiceOrderAlertView.swift
+4
-4
YHOrderDetailViewController.swift
...elligentService(服务中心)/C/YHOrderDetailViewController.swift
+4
-4
YHServiceCenterMainViewController.swift
...ntService(服务中心)/C/YHServiceCenterMainViewController.swift
+4
-4
YHCommonAlertView.swift
...Service(服务中心)/MySignature(我的签字)/V/YHCommonAlertView.swift
+67
-15
YHCommonAlertView2.swift
...ervice(服务中心)/MySignature(我的签字)/V/YHCommonAlertView2.swift
+0
-222
YHCommonAlertView3.swift
...ervice(服务中心)/MySignature(我的签字)/V/YHCommonAlertView3.swift
+0
-230
YHInformationFillTipsAlertView.swift
...igentService(服务中心)/V/YHInformationFillTipsAlertView.swift
+1
-18
YHServiceNoOrderView.swift
...les/IntelligentService(服务中心)/V/YHServiceNoOrderView.swift
+2
-2
YHServiceOrderProgressTableViewCell.swift
...Service(服务中心)/V/YHServiceOrderProgressTableViewCell.swift
+9
-9
YHCodeSueecssViewController.swift
...ses/Modules/Login(登录)/C/YHCodeSueecssViewController.swift
+1
-1
YHCodeSueecssWithVideoBkgViewController.swift
...Login(登录)/C/YHCodeSueecssWithVideoBkgViewController.swift
+3
-3
YHPhoneLiginWithVideoBkgViewController.swift
.../Login(登录)/C/YHPhoneLiginWithVideoBkgViewController.swift
+1
-1
YHLoginPrivacyView.swift
...laxy/Classes/Modules/Login(登录)/V/YHLoginPrivacyView.swift
+7
-3
YHMessageListVC.swift
...alaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
+2
-2
YHDetailMessageCell.swift
...y/Classes/Modules/Message(消息)/V/YHDetailMessageCell.swift
+4
-4
YHMessageSessionCell.swift
.../Classes/Modules/Message(消息)/V/YHMessageSessionCell.swift
+4
-4
YHAboutUsViewController.swift
.../Classes/Modules/Mine(我的)/C/YHAboutUsViewController.swift
+2
-2
YHDeviceInfoViewController.swift
...asses/Modules/Mine(我的)/C/YHDeviceInfoViewController.swift
+1
-1
YHMyNotifySettingVC.swift
...laxy/Classes/Modules/Mine(我的)/C/YHMyNotifySettingVC.swift
+1
-1
YHMyPermissionSettingVC.swift
.../Classes/Modules/Mine(我的)/C/YHMyPermissionSettingVC.swift
+1
-1
YHMySettingViewController.swift
...lasses/Modules/Mine(我的)/C/YHMySettingViewController.swift
+3
-3
YHAboutUsAdvantageCell.swift
...y/Classes/Modules/Mine(我的)/V/YHAboutUsAdvantageCell.swift
+2
-2
YHMyPermissionCell.swift
...alaxy/Classes/Modules/Mine(我的)/V/YHMyPermissionCell.swift
+3
-3
YHFindAppNewVersionView.swift
...dules/VersionUpload(版本更新)/V/YHFindAppNewVersionView.swift
+1
-1
UIColor+Extension.swift
...xy/galaxy/Classes/Tools/Extention/UIColor+Extension.swift
+6
-1
No files found.
galaxy/fastlane/Fastfile
View file @
0735a8d2
...
@@ -17,7 +17,7 @@ platform :ios do
...
@@ -17,7 +17,7 @@ platform :ios do
youhua_branch = "youhua-dev"
youhua_branch = "youhua-dev"
#打包正使用的分支
#打包正使用的分支
myPack_branch = "
main
"
myPack_branch = "
youhua-dev
"
# 打adhoc包 执行命令 fastlane galaxyTest
# 打adhoc包 执行命令 fastlane galaxyTest
lane :galaxyTest do
lane :galaxyTest do
...
...
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
0735a8d2
...
@@ -409,8 +409,6 @@
...
@@ -409,8 +409,6 @@
A5C382CC2B5EA11800C5E65C
/* YHContractCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C382CB2B5EA11800C5E65C
/* YHContractCell.swift */
;
};
A5C382CC2B5EA11800C5E65C
/* YHContractCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C382CB2B5EA11800C5E65C
/* YHContractCell.swift */
;
};
A5C382CF2B5F9A9100C5E65C
/* YHServiceCenterMainViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C382CE2B5F9A9100C5E65C
/* YHServiceCenterMainViewModel.swift */
;
};
A5C382CF2B5F9A9100C5E65C
/* YHServiceCenterMainViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C382CE2B5F9A9100C5E65C
/* YHServiceCenterMainViewModel.swift */
;
};
A5C382D12B5FAAB300C5E65C
/* YHContactItemModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C382D02B5FAAB300C5E65C
/* YHContactItemModel.swift */
;
};
A5C382D12B5FAAB300C5E65C
/* YHContactItemModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C382D02B5FAAB300C5E65C
/* YHContactItemModel.swift */
;
};
A5C468572BFB1DAB0015E726
/* YHCommonAlertView2.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C468562BFB1DAB0015E726
/* YHCommonAlertView2.swift */
;
};
A5C468592BFB37380015E726
/* YHCommonAlertView3.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C468582BFB37380015E726
/* YHCommonAlertView3.swift */
;
};
A5C5B2EE2B4F9B8800A7C5D1
/* Localizable.xcstrings in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C5B2ED2B4F9B8800A7C5D1
/* Localizable.xcstrings */
;
};
A5C5B2EE2B4F9B8800A7C5D1
/* Localizable.xcstrings in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C5B2ED2B4F9B8800A7C5D1
/* Localizable.xcstrings */
;
};
A5D001212BAA9D99001F003C
/* YHChoiceButtonHoldView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5D001202BAA9D99001F003C
/* YHChoiceButtonHoldView.swift */
;
};
A5D001212BAA9D99001F003C
/* YHChoiceButtonHoldView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5D001202BAA9D99001F003C
/* YHChoiceButtonHoldView.swift */
;
};
A5D0012A2BABC84A001F003C
/* YHFileListHeaerView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5D001272BABC84A001F003C
/* YHFileListHeaerView.swift */
;
};
A5D0012A2BABC84A001F003C
/* YHFileListHeaerView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5D001272BABC84A001F003C
/* YHFileListHeaerView.swift */
;
};
...
@@ -881,8 +879,6 @@
...
@@ -881,8 +879,6 @@
A5C382CB2B5EA11800C5E65C
/* YHContractCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHContractCell.swift
;
sourceTree
=
"<group>"
;
};
A5C382CB2B5EA11800C5E65C
/* YHContractCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHContractCell.swift
;
sourceTree
=
"<group>"
;
};
A5C382CE2B5F9A9100C5E65C
/* YHServiceCenterMainViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceCenterMainViewModel.swift
;
sourceTree
=
"<group>"
;
};
A5C382CE2B5F9A9100C5E65C
/* YHServiceCenterMainViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceCenterMainViewModel.swift
;
sourceTree
=
"<group>"
;
};
A5C382D02B5FAAB300C5E65C
/* YHContactItemModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHContactItemModel.swift
;
sourceTree
=
"<group>"
;
};
A5C382D02B5FAAB300C5E65C
/* YHContactItemModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHContactItemModel.swift
;
sourceTree
=
"<group>"
;
};
A5C468562BFB1DAB0015E726
/* YHCommonAlertView2.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCommonAlertView2.swift
;
sourceTree
=
"<group>"
;
};
A5C468582BFB37380015E726
/* YHCommonAlertView3.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCommonAlertView3.swift
;
sourceTree
=
"<group>"
;
};
A5C5B2ED2B4F9B8800A7C5D1
/* Localizable.xcstrings */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.json.xcstrings
;
path
=
Localizable.xcstrings
;
sourceTree
=
"<group>"
;
};
A5C5B2ED2B4F9B8800A7C5D1
/* Localizable.xcstrings */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.json.xcstrings
;
path
=
Localizable.xcstrings
;
sourceTree
=
"<group>"
;
};
A5D001202BAA9D99001F003C
/* YHChoiceButtonHoldView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHChoiceButtonHoldView.swift
;
sourceTree
=
"<group>"
;
};
A5D001202BAA9D99001F003C
/* YHChoiceButtonHoldView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHChoiceButtonHoldView.swift
;
sourceTree
=
"<group>"
;
};
A5D001272BABC84A001F003C
/* YHFileListHeaerView.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFileListHeaerView.swift
;
sourceTree
=
"<group>"
;
};
A5D001272BABC84A001F003C
/* YHFileListHeaerView.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFileListHeaerView.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -1414,8 +1410,6 @@
...
@@ -1414,8 +1410,6 @@
0435FA802BA186D600024EAE
/* YHMyFileMethodTableViewCell.swift */
,
0435FA802BA186D600024EAE
/* YHMyFileMethodTableViewCell.swift */
,
044CF8D32BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift */
,
044CF8D32BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift */
,
0435FA7E2BA178C100024EAE
/* YHCommonAlertView.swift */
,
0435FA7E2BA178C100024EAE
/* YHCommonAlertView.swift */
,
A5C468562BFB1DAB0015E726
/* YHCommonAlertView2.swift */
,
A5C468582BFB37380015E726
/* YHCommonAlertView3.swift */
,
);
);
path
=
V
;
path
=
V
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -2836,7 +2830,6 @@
...
@@ -2836,7 +2830,6 @@
045EEE932B9F171A0022A143
/* YHPreviewInfoSingleLineTitleView.swift in Sources */
,
045EEE932B9F171A0022A143
/* YHPreviewInfoSingleLineTitleView.swift in Sources */
,
045EEF1D2B9F171A0022A143
/* YHAddressPickView.swift in Sources */
,
045EEF1D2B9F171A0022A143
/* YHAddressPickView.swift in Sources */
,
A58AC0A12BAC0B2900A30FA9
/* YHFileListItemView.swift in Sources */
,
A58AC0A12BAC0B2900A30FA9
/* YHFileListItemView.swift in Sources */
,
A5C468572BFB1DAB0015E726
/* YHCommonAlertView2.swift in Sources */
,
045EEED12B9F171A0022A143
/* YHScorePersonInfoCell.swift in Sources */
,
045EEED12B9F171A0022A143
/* YHScorePersonInfoCell.swift in Sources */
,
044CF8D42BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift in Sources */
,
044CF8D42BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift in Sources */
,
A567E5B02BD7643D00D5D5A0
/* YHHomeWebBottomView.swift in Sources */
,
A567E5B02BD7643D00D5D5A0
/* YHHomeWebBottomView.swift in Sources */
,
...
@@ -2971,7 +2964,6 @@
...
@@ -2971,7 +2964,6 @@
A5ACE9302B4564F7002C94D2
/* Algorithm.swift in Sources */
,
A5ACE9302B4564F7002C94D2
/* Algorithm.swift in Sources */
,
045EEED52B9F171A0022A143
/* YHEducationRequestViewModel.swift in Sources */
,
045EEED52B9F171A0022A143
/* YHEducationRequestViewModel.swift in Sources */
,
045EEEB62B9F171A0022A143
/* YHWorkExperienceItemView.swift in Sources */
,
045EEEB62B9F171A0022A143
/* YHWorkExperienceItemView.swift in Sources */
,
A5C468592BFB37380015E726
/* YHCommonAlertView3.swift in Sources */
,
A58A8C942BA6C7C600632765
/* YHCertificateEntryModel.swift in Sources */
,
A58A8C942BA6C7C600632765
/* YHCertificateEntryModel.swift in Sources */
,
045EEEB82B9F171A0022A143
/* YHWorkExampleMessageView.swift in Sources */
,
045EEEB82B9F171A0022A143
/* YHWorkExampleMessageView.swift in Sources */
,
04F4B76B2BAA7E1E00D13284
/* YHCertificateTemplateSheetView.swift in Sources */
,
04F4B76B2BAA7E1E00D13284
/* YHCertificateTemplateSheetView.swift in Sources */
,
...
@@ -3102,7 +3094,7 @@
...
@@ -3102,7 +3094,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
2
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -3305,7 +3297,7 @@
...
@@ -3305,7 +3297,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
2
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -3350,7 +3342,7 @@
...
@@ -3350,7 +3342,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
2
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
...
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
View file @
0735a8d2
...
@@ -112,7 +112,7 @@ extension YHTabBarViewController {
...
@@ -112,7 +112,7 @@ extension YHTabBarViewController {
//展示tabbar上的横线
//展示tabbar上的横线
func
handleTabBarLine
()
->
Void
{
func
handleTabBarLine
()
->
Void
{
let
rect
=
CGRect
.
init
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
0.5
)
let
rect
=
CGRect
.
init
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
0.5
)
let
fillColor
=
UIColor
(
hex
:
0x121A26
,
transparency
:
0.05
)
!
let
fillColor
=
UIColor
.
mainTextColor5
let
img
=
UIImage
.
from
(
color
:
fillColor
,
rect
:
rect
)
let
img
=
UIImage
.
from
(
color
:
fillColor
,
rect
:
rect
)
UIView
.
transition
(
with
:
self
.
tabBar
,
duration
:
0.5
,
options
:
.
transitionCrossDissolve
)
{
UIView
.
transition
(
with
:
self
.
tabBar
,
duration
:
0.5
,
options
:
.
transitionCrossDissolve
)
{
...
...
galaxy/galaxy/Classes/Base/V/YHBasicContentView.swift
View file @
0735a8d2
...
@@ -17,8 +17,8 @@ class YHBasicContentView: ESTabBarItemContentView {
...
@@ -17,8 +17,8 @@ class YHBasicContentView: ESTabBarItemContentView {
// 此渲染模式会影响图片颜色哦
// 此渲染模式会影响图片颜色哦
renderingMode
=
.
alwaysOriginal
renderingMode
=
.
alwaysOriginal
textColor
=
UIColor
(
hex
:
0x121A26
)
textColor
=
UIColor
.
mainTextColor
highlightTextColor
=
UIColor
(
hex
:
0x121A26
)
highlightTextColor
=
UIColor
.
mainTextColor
titleLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
titleLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
}
}
...
...
galaxy/galaxy/Classes/Base/V/YHEmptyDataView.swift
View file @
0735a8d2
...
@@ -55,7 +55,7 @@ class YHEmptyDataView: UIView {
...
@@ -55,7 +55,7 @@ class YHEmptyDataView: UIView {
var
tipsLabel
:
UILabel
=
{
var
tipsLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
init
(
hex
:
0x121A26
,
alpha
:
0.5
)
label
.
textColor
=
UIColor
.
mainTextColor50
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
textAlignment
=
.
center
label
.
textAlignment
=
.
center
label
.
text
=
"暂无内容"
.
local
label
.
text
=
"暂无内容"
.
local
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
0735a8d2
...
@@ -156,7 +156,7 @@ private extension YHHomePageViewController {
...
@@ -156,7 +156,7 @@ private extension YHHomePageViewController {
homeCollectView
.
contentInset
=
UIEdgeInsets
(
top
:
YHHomeHeadView
.
viewH
,
left
:
0
,
bottom
:
0
,
right
:
0
)
homeCollectView
.
contentInset
=
UIEdgeInsets
(
top
:
YHHomeHeadView
.
viewH
,
left
:
0
,
bottom
:
0
,
right
:
0
)
let
tmpHeadView
=
homeCollectView
.
es
.
addYHPullToRefresh
{
let
tmpHeadView
=
homeCollectView
.
es
.
addYHPullToRefresh
{
self
.
loadFirs
tData
()
self
.
ge
tData
()
}
}
var
r
=
tmpHeadView
.
frame
var
r
=
tmpHeadView
.
frame
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerView.swift
View file @
0735a8d2
...
@@ -10,12 +10,23 @@ import Foundation
...
@@ -10,12 +10,23 @@ import Foundation
import
FSPagerView
import
FSPagerView
import
Kingfisher
import
Kingfisher
let
bannerSildingInterval
=
3.0
class
YHHomeBannerView
:
UIView
{
class
YHHomeBannerView
:
UIView
{
static
let
viewH
:
CGFloat
=
KScreenWidth
-
20.0
*
2
static
let
viewH
:
CGFloat
=
KScreenWidth
-
20.0
*
2
var
dataArr
:
[
YHBannerModel
]
=
[]
{
var
dataArr
:
[
YHBannerModel
]
=
[]
{
didSet
{
didSet
{
// 设置为0是先停掉自动滑动定时器
bannerView
.
automaticSlidingInterval
=
0
self
.
indicatorView
.
indicatorItems
=
self
.
dataArr
.
count
self
.
indicatorView
.
indicatorItems
=
self
.
dataArr
.
count
bannerView
.
reloadData
()
bannerView
.
reloadData
()
// 指定指示器为第一个
self
.
indicatorView
.
curIndicatorIndex
=
0
// 指定显示图片为第一个
bannerView
.
selectItem
(
at
:
0
,
animated
:
false
)
// 开启定时器开始滚动
bannerView
.
automaticSlidingInterval
=
bannerSildingInterval
}
}
}
}
...
@@ -34,7 +45,7 @@ class YHHomeBannerView: UIView {
...
@@ -34,7 +45,7 @@ class YHHomeBannerView: UIView {
view
.
dataSource
=
self
view
.
dataSource
=
self
view
.
bounces
=
false
view
.
bounces
=
false
view
.
isInfinite
=
true
view
.
isInfinite
=
true
view
.
automaticSlidingInterval
=
3
view
.
automaticSlidingInterval
=
bannerSildingInterval
view
.
register
(
YHHomeBannerCollectionViewCell
.
self
,
forCellWithReuseIdentifier
:
"cell"
)
view
.
register
(
YHHomeBannerCollectionViewCell
.
self
,
forCellWithReuseIdentifier
:
"cell"
)
view
.
itemSize
=
CGSizeMake
(
YHHomeBannerView
.
viewH
,
YHHomeBannerView
.
viewH
)
//FSPagerView.automaticSize
view
.
itemSize
=
CGSizeMake
(
YHHomeBannerView
.
viewH
,
YHHomeBannerView
.
viewH
)
//FSPagerView.automaticSize
return
view
return
view
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
View file @
0735a8d2
...
@@ -39,7 +39,7 @@ class YHHomeCollectionViewCell: UICollectionViewCell {
...
@@ -39,7 +39,7 @@ class YHHomeCollectionViewCell: UICollectionViewCell {
lazy
var
descripeLable
:
UILabel
=
{
lazy
var
descripeLable
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
text
=
""
label
.
text
=
""
label
.
textColor
=
UIColor
(
hex
:
0x121A26
,
alpha
:
1.0
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
numberOfLines
=
2
label
.
numberOfLines
=
2
label
.
lineBreakMode
=
.
byTruncatingTail
label
.
lineBreakMode
=
.
byTruncatingTail
...
@@ -63,7 +63,7 @@ class YHHomeCollectionViewCell: UICollectionViewCell {
...
@@ -63,7 +63,7 @@ class YHHomeCollectionViewCell: UICollectionViewCell {
lazy
var
numLable
:
UILabel
=
{
lazy
var
numLable
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
text
=
""
label
.
text
=
""
label
.
textColor
=
UIColor
(
hex
:
0x121A264D
,
alpha
:
0.3
)
label
.
textColor
=
UIColor
.
mainTextColor30
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
return
label
return
label
}()
}()
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHSearchInfoBar.swift
View file @
0735a8d2
...
@@ -40,7 +40,7 @@ class YHSearchInfoBar: UIView {
...
@@ -40,7 +40,7 @@ class YHSearchInfoBar: UIView {
textField
.
attributedPlaceholder
=
NSAttributedString
(
string
:
"香港身份"
.
local
,
attributes
:
[
NSAttributedString
.
Key
.
foregroundColor
:
UIColor
(
hex
:
0x94A3B8
)])
textField
.
attributedPlaceholder
=
NSAttributedString
(
string
:
"香港身份"
.
local
,
attributes
:
[
NSAttributedString
.
Key
.
foregroundColor
:
UIColor
(
hex
:
0x94A3B8
)])
textField
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
12
)
textField
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
12
)
textField
.
tintColor
=
UIColor
.
brandMainColor
textField
.
tintColor
=
UIColor
.
brandMainColor
textField
.
textColor
=
UIColor
(
hexString
:
"#121A26"
)
textField
.
textColor
=
UIColor
.
mainTextColor30
textField
.
clearButtonMode
=
.
whileEditing
textField
.
clearButtonMode
=
.
whileEditing
textField
.
addTarget
(
self
,
action
:
#selector(
textFieldChanged(textField:)
)
,
for
:
.
editingChanged
)
textField
.
addTarget
(
self
,
action
:
#selector(
textFieldChanged(textField:)
)
,
for
:
.
editingChanged
)
textField
.
delegate
=
self
textField
.
delegate
=
self
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHSearchInfoCell.swift
View file @
0735a8d2
...
@@ -43,7 +43,7 @@ class YHSearchInfoCell: UITableViewCell {
...
@@ -43,7 +43,7 @@ class YHSearchInfoCell: UITableViewCell {
var
label
=
UILabel
()
var
label
=
UILabel
()
label
.
font
=
Self
.
textFont
label
.
font
=
Self
.
textFont
label
.
textAlignment
=
.
left
label
.
textAlignment
=
.
left
label
.
textColor
=
UIColor
(
hex
:
0x121A26
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
numberOfLines
=
2
label
.
numberOfLines
=
2
return
label
return
label
}()
}()
...
@@ -84,7 +84,7 @@ class YHSearchInfoCell: UITableViewCell {
...
@@ -84,7 +84,7 @@ class YHSearchInfoCell: UITableViewCell {
func
renderHighLightText
(
_
text
:
String
)
{
func
renderHighLightText
(
_
text
:
String
)
{
var
attributedString
=
NSMutableAttributedString
(
string
:
self
.
model
.
title
,
attributes
:
[
var
attributedString
=
NSMutableAttributedString
(
string
:
self
.
model
.
title
,
attributes
:
[
.
foregroundColor
:
UIColor
(
hex
:
0x121A26
)
,
.
foregroundColor
:
UIColor
.
mainTextColor
,
.
font
:
Self
.
textFont
.
font
:
Self
.
textFont
])
])
if
isEmptyString
(
text
)
{
if
isEmptyString
(
text
)
{
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHSearchInfoHistoryCell.swift
View file @
0735a8d2
...
@@ -16,7 +16,7 @@ class YHSearchInfoHistoryCell: UICollectionViewCell {
...
@@ -16,7 +16,7 @@ class YHSearchInfoHistoryCell: UICollectionViewCell {
var
label
=
UILabel
()
var
label
=
UILabel
()
label
.
font
=
.
PFSC_R
(
ofSize
:
12
)
label
.
font
=
.
PFSC_R
(
ofSize
:
12
)
label
.
textAlignment
=
.
left
label
.
textAlignment
=
.
left
label
.
textColor
=
UIColor
(
hex
:
0x121A26
)
label
.
textColor
=
UIColor
.
mainTextColor
return
label
return
label
}()
}()
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHServiceOrderAlertView.swift
View file @
0735a8d2
...
@@ -139,17 +139,17 @@ class YHServiceOrderAlertView: UIView {
...
@@ -139,17 +139,17 @@ class YHServiceOrderAlertView: UIView {
make
.
top
.
equalTo
(
157
)
make
.
top
.
equalTo
(
157
)
}
}
let
a
:
ASAttributedString
=
.
init
(
"1.当前仅支持查看"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
15
)),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
.
withAlphaComponent
(
0.7
)))
let
a
:
ASAttributedString
=
.
init
(
"1.当前仅支持查看"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
15
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.7
)))
let
aa
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"优才订单"
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
15
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
aa
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"优才订单"
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
15
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
aaa
:
ASAttributedString
=
.
init
(
",如果是签约了其他高才、专才、留学等订单,请与您的服务管家或销售顾问企微沟通联系哦"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
15
)),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
.
withAlphaComponent
(
0.7
)))
let
aaa
:
ASAttributedString
=
.
init
(
",如果是签约了其他高才、专才、留学等订单,请与您的服务管家或销售顾问企微沟通联系哦"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
15
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.7
)))
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"2.使用其他手机号签约合同/订单,请退出登录"
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
15
)),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
.
withAlphaComponent
(
0.7
)))
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"2.使用其他手机号签约合同/订单,请退出登录"
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
15
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.7
)))
let
bb
:
ASAttributedString
=
.
init
(
"切换账号"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
15
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
bb
:
ASAttributedString
=
.
init
(
"切换账号"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
15
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
bbb
:
ASAttributedString
=
.
init
(
"查看"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
15
)),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
.
withAlphaComponent
(
0.7
)))
let
bbb
:
ASAttributedString
=
.
init
(
"查看"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
15
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.7
)))
measageLabel
.
attributed
.
text
=
a
+
aa
+
aaa
measageLabel
.
attributed
.
text
=
a
+
aa
+
aaa
subMeasageLabel
.
attributed
.
text
=
b
+
bb
+
bbb
subMeasageLabel
.
attributed
.
text
=
b
+
bb
+
bbb
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHOrderDetailViewController.swift
View file @
0735a8d2
...
@@ -76,7 +76,7 @@ class YHOrderDetailViewController: YHBaseViewController {
...
@@ -76,7 +76,7 @@ class YHOrderDetailViewController: YHBaseViewController {
orderLabel
=
{
orderLabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
label
.
textColor
=
UIColor
(
hex
:
0x121A26
)
.
withAlphaComponent
(
0.5
)
label
.
textColor
=
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.5
)
label
.
text
=
"合同编号: "
label
.
text
=
"合同编号: "
return
label
return
label
}()
}()
...
@@ -90,7 +90,7 @@ class YHOrderDetailViewController: YHBaseViewController {
...
@@ -90,7 +90,7 @@ class YHOrderDetailViewController: YHBaseViewController {
phoneLabel
=
{
phoneLabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
label
.
textColor
=
UIColor
(
hex
:
0x121A26
)
.
withAlphaComponent
(
0.5
)
label
.
textColor
=
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.5
)
label
.
text
=
"签约手机号:"
label
.
text
=
"签约手机号:"
return
label
return
label
}()
}()
...
@@ -104,7 +104,7 @@ class YHOrderDetailViewController: YHBaseViewController {
...
@@ -104,7 +104,7 @@ class YHOrderDetailViewController: YHBaseViewController {
orderNumLabel
=
{
orderNumLabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
label
.
textColor
=
UIColor
(
hex
:
0x121A26
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
text
=
model
.
orderSn
label
.
text
=
model
.
orderSn
label
.
textAlignment
=
.
right
label
.
textAlignment
=
.
right
return
label
return
label
...
@@ -119,7 +119,7 @@ class YHOrderDetailViewController: YHBaseViewController {
...
@@ -119,7 +119,7 @@ class YHOrderDetailViewController: YHBaseViewController {
phoneNumLabel
=
{
phoneNumLabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
label
.
textColor
=
UIColor
(
hex
:
0x121A26
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
text
=
model
.
mobile
label
.
text
=
model
.
mobile
label
.
textAlignment
=
.
right
label
.
textAlignment
=
.
right
return
label
return
label
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceCenterMainViewController.swift
View file @
0735a8d2
...
@@ -263,14 +263,14 @@ extension YHServiceCenterMainViewController {
...
@@ -263,14 +263,14 @@ extension YHServiceCenterMainViewController {
}
}
}
}
if
doneCount
==
6
{
if
doneCount
==
6
{
let
a
:
ASAttributedString
=
.
init
(
"您好,
\(
name
)
,您的资料已全部准备完成,已进入"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
13
)),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
))
let
a
:
ASAttributedString
=
.
init
(
"您好,
\(
name
)
,您的资料已全部准备完成,已进入"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
13
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
aa
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"全套资料审核"
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
13
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
aa
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"全套资料审核"
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
13
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
aaa
:
ASAttributedString
=
.
init
(
"阶段,审核没问题会安排递交入境处哦~"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
13
)),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
))
let
aaa
:
ASAttributedString
=
.
init
(
"阶段,审核没问题会安排递交入境处哦~"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
13
)),
.
foreground
(
UIColor
.
mainTextColor
))
self
.
nameLabel
.
attributed
.
text
=
a
+
aa
+
aaa
self
.
nameLabel
.
attributed
.
text
=
a
+
aa
+
aaa
}
else
{
}
else
{
let
a
:
ASAttributedString
=
.
init
(
"您好,
\(
name
)
,您当前处于"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
13
)),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
))
let
a
:
ASAttributedString
=
.
init
(
"您好,
\(
name
)
,您当前处于"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
13
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
aa
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"信息提交"
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
13
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
aa
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"信息提交"
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
13
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
aaa
:
ASAttributedString
=
.
init
(
"阶段,让我们一起共同完成您的身份申请之旅吧~"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
13
)),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
))
let
aaa
:
ASAttributedString
=
.
init
(
"阶段,让我们一起共同完成您的身份申请之旅吧~"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
13
)),
.
foreground
(
UIColor
.
mainTextColor
))
self
.
nameLabel
.
attributed
.
text
=
a
+
aa
+
aaa
self
.
nameLabel
.
attributed
.
text
=
a
+
aa
+
aaa
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MySignature(我的签字)/V/YHCommonAlertView.swift
View file @
0735a8d2
...
@@ -39,30 +39,83 @@ class YHCommonAlertView: UIView {
...
@@ -39,30 +39,83 @@ class YHCommonAlertView: UIView {
addGestureRecognizer
(
tap
)
addGestureRecognizer
(
tap
)
setView
()
setView
()
}
}
func
setContent
(
_
title
:
String
?
=
nil
,
_
message
:
String
?
=
nil
,
_
leftButtonString
:
String
?
=
nil
,
_
rightButtonString
:
String
?
=
nil
)
{
func
setContent
(
_
title
:
String
?
=
nil
,
_
message
:
String
?
=
nil
,
_
leftButtonString
:
String
?
=
nil
,
_
rightButtonString
:
String
?
=
nil
)
{
self
.
titleLabel
.
text
=
title
titleLabel
.
text
=
title
self
.
messageLabel
.
text
=
message
messageLabel
.
text
=
message
self
.
disAgressButton
.
setTitle
(
leftButtonString
,
for
:
.
normal
)
disAgressButton
.
setTitle
(
leftButtonString
,
for
:
.
normal
)
self
.
agreeButton
.
setTitle
(
rightButtonString
,
for
:
.
normal
)
agreeButton
.
setTitle
(
rightButtonString
,
for
:
.
normal
)
centerView
.
snp
.
remakeConstraints
{
make
in
make
.
center
.
equalToSuperview
()
make
.
width
.
equalTo
(
299
)
// make.height.equalTo(164)
}
if
title
?
.
count
==
0
||
title
==
nil
{
if
title
?
.
count
==
0
||
title
==
nil
{
centerView
.
snp
.
remakeConstraints
{
make
in
lineView
.
isHidden
=
true
make
.
center
.
equalToSuperview
()
make
.
width
.
equalTo
(
299
)
make
.
height
.
equalTo
(
164
)
}
messageLabel
.
snp
.
remakeConstraints
{
make
in
messageLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
22
)
make
.
left
.
equalTo
(
22
)
make
.
right
.
equalTo
(
-
22
)
make
.
right
.
equalTo
(
-
22
)
make
.
height
.
lessThanOrEqualTo
(
60
)
make
.
height
.
greaterThanOrEqualTo
(
21
)
make
.
top
.
equalTo
(
37
)
make
.
top
.
equalTo
(
37
)
}
}
lineView
.
isHidden
=
true
}
else
{
}
else
{
lineView
.
isHidden
=
false
lineView
.
isHidden
=
false
messageLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
22
)
make
.
right
.
equalTo
(
-
22
)
make
.
height
.
greaterThanOrEqualTo
(
21
)
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
21
)
}
}
if
leftButtonString
?
.
isEmpty
==
false
&&
rightButtonString
?
.
isEmpty
==
false
{
disAgressButton
.
isHidden
=
false
agreeButton
.
isHidden
=
false
disAgressButton
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
messageLabel
.
snp
.
bottom
)
.
offset
(
36
)
make
.
left
.
equalTo
(
16
)
make
.
bottom
.
equalTo
(
-
21
)
make
.
width
.
equalTo
(
128
)
make
.
height
.
equalTo
(
45
)
}
agreeButton
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
disAgressButton
.
snp
.
top
)
make
.
width
.
equalTo
(
disAgressButton
.
snp
.
width
)
make
.
height
.
equalTo
(
disAgressButton
.
snp
.
height
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
kMargin
)
}
}
else
{
disAgressButton
.
isHidden
=
true
agreeButton
.
isHidden
=
false
agreeButton
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
messageLabel
.
snp
.
bottom
)
.
offset
(
36
)
make
.
height
.
equalTo
(
45
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
kMargin
)
make
.
left
.
equalToSuperview
()
.
offset
(
kMargin
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
kMargin
)
}
if
rightButtonString
?
.
isEmpty
==
true
&&
leftButtonString
?
.
isEmpty
==
true
{
agreeButton
.
setTitle
(
"我知道了"
,
for
:
.
normal
)
}
else
if
leftButtonString
?
.
isEmpty
==
true
{
}
else
{
agreeButton
.
setTitle
(
leftButtonString
,
for
:
.
normal
)
}
}
}
}
}
...
@@ -104,7 +157,6 @@ class YHCommonAlertView: UIView {
...
@@ -104,7 +157,6 @@ class YHCommonAlertView: UIView {
messageLabel
=
{
messageLabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textAlignment
=
.
center
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textColor
=
UIColor
.
mainTextColor
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
16
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
16
)
label
.
numberOfLines
=
0
label
.
numberOfLines
=
0
...
@@ -122,7 +174,7 @@ class YHCommonAlertView: UIView {
...
@@ -122,7 +174,7 @@ class YHCommonAlertView: UIView {
disAgressButton
=
{
disAgressButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
(
hex
:
0xffffff
)
button
.
backgroundColor
=
UIColor
(
hex
:
0xffffff
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
5
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
4
)
button
.
contentHorizontalAlignment
=
.
center
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"不同意"
,
for
:
.
normal
)
button
.
setTitle
(
"不同意"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
brandMainColor
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
brandMainColor
,
for
:
.
normal
)
...
@@ -143,7 +195,7 @@ class YHCommonAlertView: UIView {
...
@@ -143,7 +195,7 @@ class YHCommonAlertView: UIView {
agreeButton
=
{
agreeButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
.
brandMainColor
button
.
backgroundColor
=
UIColor
.
brandMainColor
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
5
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
4
)
button
.
contentHorizontalAlignment
=
.
center
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"同意"
,
for
:
.
normal
)
button
.
setTitle
(
"同意"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
hex
:
0xffffff
),
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
hex
:
0xffffff
),
for
:
.
normal
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MySignature(我的签字)/V/YHCommonAlertView2.swift
deleted
100644 → 0
View file @
3ad19e16
//
// YHCommonAlertView2.swift
// galaxy
//
// Created by davidhuangA on 2024/5/20.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHCommonAlertView2
:
UIView
{
typealias
AgreeBlock
=
()
->
()
var
agreeBlock
:
AgreeBlock
?
var
cancelBlcok
:
AgreeBlock
?
var
centerView
:
UIView
!
var
titleLabel
:
UILabel
!
var
lineView
:
UIView
!
var
messageLabel
:
UILabel
!
var
agreeButton
:
UIButton
!
var
disAgressButton
:
UIButton
!
var
isFullGuestureEnabel
:
Bool
=
true
//view响应全局手势 默认响应
static
func
show
(
_
title
:
String
?
=
nil
,
_
message
:
String
?
=
nil
,
_
leftButtonString
:
String
?
=
nil
,
_
rightButtonString
:
String
?
=
nil
,
fullGuestureEnable
:
Bool
=
true
,
cancelCallBack
:
(()
->
Void
)?
=
nil
,
callBack
:
@escaping
(()
->
Void
))
{
let
view
=
YHCommonAlertView2
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
agreeBlock
=
callBack
view
.
cancelBlcok
=
cancelCallBack
view
.
setContent
(
title
,
message
,
leftButtonString
,
rightButtonString
)
view
.
isFullGuestureEnabel
=
fullGuestureEnable
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
backgroundColor
=
UIColor
(
white
:
0.5
,
alpha
:
0.1
)
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
handleTap
)
)
tap
.
delegate
=
self
addGestureRecognizer
(
tap
)
setView
()
}
func
setContent
(
_
title
:
String
?
=
nil
,
_
message
:
String
?
=
nil
,
_
leftButtonString
:
String
?
=
nil
,
_
rightButtonString
:
String
?
=
nil
)
{
self
.
titleLabel
.
text
=
title
self
.
messageLabel
.
text
=
message
self
.
disAgressButton
.
setTitle
(
leftButtonString
,
for
:
.
normal
)
self
.
agreeButton
.
setTitle
(
rightButtonString
,
for
:
.
normal
)
if
title
?
.
count
==
0
||
title
==
nil
{
centerView
.
snp
.
remakeConstraints
{
make
in
make
.
center
.
equalToSuperview
()
make
.
width
.
equalTo
(
299
)
make
.
height
.
equalTo
(
164
)
}
messageLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
22
)
make
.
right
.
equalTo
(
-
22
)
make
.
height
.
lessThanOrEqualTo
(
60
)
make
.
top
.
equalTo
(
37
)
}
lineView
.
isHidden
=
true
}
else
{
lineView
.
isHidden
=
false
centerView
.
snp
.
remakeConstraints
{
make
in
make
.
center
.
equalToSuperview
()
make
.
width
.
equalTo
(
299
)
make
.
height
.
equalTo
(
334
)
}
messageLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
22
)
make
.
right
.
equalTo
(
-
22
)
make
.
height
.
equalTo
(
172
)
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
21
)
}
}
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
setView
()
{
backgroundColor
=
UIColor
(
hex
:
0x0000
,
alpha
:
0.5
)
centerView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
kCornerRadius6
return
view
}()
addSubview
(
centerView
)
centerView
.
snp
.
makeConstraints
{
make
in
make
.
center
.
equalToSuperview
()
make
.
width
.
equalTo
(
299
)
make
.
height
.
equalTo
(
187
)
}
titleLabel
=
{
let
label
=
UILabel
()
label
.
textAlignment
=
.
center
label
.
textColor
=
UIColor
.
mainTextColor
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
17
)
label
.
numberOfLines
=
0
return
label
}()
centerView
.
addSubview
(
titleLabel
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
22
)
make
.
right
.
equalTo
(
-
22
)
make
.
height
.
equalTo
(
20
)
make
.
top
.
equalTo
(
16
)
}
messageLabel
=
{
let
label
=
UILabel
()
label
.
textAlignment
=
.
left
label
.
textColor
=
UIColor
.
mainTextColor
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
16
)
label
.
numberOfLines
=
0
return
label
}()
centerView
.
addSubview
(
messageLabel
)
messageLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
22
)
make
.
right
.
equalTo
(
-
22
)
make
.
height
.
equalTo
(
42
)
make
.
top
.
equalTo
(
63
)
}
disAgressButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
(
hex
:
0xffffff
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"不同意"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
brandMainColor
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
layer
.
borderWidth
=
1
button
.
layer
.
borderColor
=
UIColor
.
brandMainColor
.
cgColor
button
.
addTarget
(
self
,
action
:
#selector(
disagree
)
,
for
:
.
touchUpInside
)
return
button
}()
centerView
.
addSubview
(
disAgressButton
)
disAgressButton
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
bottom
.
equalTo
(
-
21
)
make
.
width
.
equalTo
(
128
)
make
.
height
.
equalTo
(
45
)
}
agreeButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
.
brandMainColor
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"同意"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
hex
:
0xffffff
),
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
addTarget
(
self
,
action
:
#selector(
agree
)
,
for
:
.
touchUpInside
)
return
button
}()
centerView
.
addSubview
(
agreeButton
)
agreeButton
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
16
)
make
.
bottom
.
equalTo
(
-
21
)
make
.
width
.
equalTo
(
128
)
make
.
height
.
equalTo
(
45
)
}
lineView
=
{
let
line
=
UIView
()
line
.
backgroundColor
=
UIColor
(
hex
:
0xF0F0F0
)
return
line
}()
centerView
.
addSubview
(
lineView
)
lineView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
1
)
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
12
)
}
}
@objc
func
agree
()
{
if
let
block
=
self
.
agreeBlock
{
block
()
}
dismiss
()
}
@objc
private
func
handleTap
(
_
sender
:
AnyObject
?)
{
print
(
"处理点击手势"
)
if
isFullGuestureEnabel
{
dismiss
()
}
}
@objc
func
disagree
()
{
if
let
block
=
self
.
cancelBlcok
{
block
()
}
dismiss
()
}
func
dismiss
()
{
removeFromSuperview
()
}
}
extension
YHCommonAlertView2
:
UIGestureRecognizerDelegate
{
func
gestureRecognizer
(
_
gestureRecognizer
:
UIGestureRecognizer
,
shouldReceive
touch
:
UITouch
)
->
Bool
{
if
touch
.
view
==
self
{
return
true
}
return
false
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MySignature(我的签字)/V/YHCommonAlertView3.swift
deleted
100644 → 0
View file @
3ad19e16
//
// YHCommonAlertView3.swift
// galaxy
//
// Created by davidhuangA on 2024/5/20.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHCommonAlertView3
:
UIView
{
typealias
AgreeBlock
=
()
->
()
var
agreeBlock
:
AgreeBlock
?
var
cancelBlcok
:
AgreeBlock
?
var
centerView
:
UIView
!
var
titleLabel
:
UILabel
!
var
lineView
:
UIView
!
var
messageLabel
:
UILabel
!
var
agreeButton
:
UIButton
!
var
disAgressButton
:
UIButton
!
var
isFullGuestureEnabel
:
Bool
=
true
//view响应全局手势 默认响应
static
func
show
(
_
title
:
String
?
=
nil
,
_
message
:
String
?
=
nil
,
_
leftButtonString
:
String
?
=
nil
,
_
rightButtonString
:
String
?
=
nil
,
fullGuestureEnable
:
Bool
=
true
,
cancelCallBack
:
(()
->
Void
)?
=
nil
,
callBack
:
@escaping
(()
->
Void
))
{
let
view
=
YHCommonAlertView3
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
agreeBlock
=
callBack
view
.
cancelBlcok
=
cancelCallBack
view
.
setContent
(
title
,
message
,
leftButtonString
,
rightButtonString
)
view
.
isFullGuestureEnabel
=
fullGuestureEnable
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
backgroundColor
=
UIColor
(
white
:
0.5
,
alpha
:
0.1
)
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
handleTap
)
)
tap
.
delegate
=
self
addGestureRecognizer
(
tap
)
setView
()
}
func
setContent
(
_
title
:
String
?
=
nil
,
_
message
:
String
?
=
nil
,
_
leftButtonString
:
String
?
=
nil
,
_
rightButtonString
:
String
?
=
nil
)
{
self
.
titleLabel
.
text
=
title
self
.
messageLabel
.
text
=
message
self
.
disAgressButton
.
setTitle
(
leftButtonString
,
for
:
.
normal
)
self
.
agreeButton
.
setTitle
(
rightButtonString
,
for
:
.
normal
)
if
title
?
.
count
==
0
||
title
==
nil
{
centerView
.
snp
.
remakeConstraints
{
make
in
make
.
center
.
equalToSuperview
()
make
.
width
.
equalTo
(
299
)
make
.
height
.
equalTo
(
164
)
}
messageLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
22
)
make
.
right
.
equalTo
(
-
22
)
make
.
height
.
lessThanOrEqualTo
(
60
)
make
.
top
.
equalTo
(
37
)
}
lineView
.
isHidden
=
true
}
else
{
lineView
.
isHidden
=
false
centerView
.
snp
.
remakeConstraints
{
make
in
make
.
center
.
equalToSuperview
()
make
.
width
.
equalTo
(
299
)
// make.height.equalTo(257 + 18)
}
messageLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
22
)
make
.
right
.
equalTo
(
-
22
)
// make.height.equalTo(88 + 18)
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
21
)
}
disAgressButton
.
isHidden
=
true
agreeButton
.
snp
.
remakeConstraints
{
make
in
make
.
right
.
equalTo
(
-
16
)
make
.
bottom
.
equalTo
(
-
17
)
make
.
left
.
equalTo
(
kMargin
)
make
.
height
.
equalTo
(
45
)
make
.
top
.
equalTo
(
messageLabel
.
snp
.
bottom
)
.
offset
(
28
)
}
}
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
setView
()
{
backgroundColor
=
UIColor
(
hex
:
0x0000
,
alpha
:
0.5
)
centerView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
kCornerRadius6
return
view
}()
addSubview
(
centerView
)
centerView
.
snp
.
makeConstraints
{
make
in
make
.
center
.
equalToSuperview
()
make
.
width
.
equalTo
(
299
)
make
.
height
.
equalTo
(
187
)
}
titleLabel
=
{
let
label
=
UILabel
()
label
.
textAlignment
=
.
center
label
.
textColor
=
UIColor
.
mainTextColor
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
17
)
label
.
numberOfLines
=
0
return
label
}()
centerView
.
addSubview
(
titleLabel
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
22
)
make
.
right
.
equalTo
(
-
22
)
make
.
height
.
equalTo
(
20
)
make
.
top
.
equalTo
(
16
)
}
messageLabel
=
{
let
label
=
UILabel
()
label
.
textAlignment
=
.
left
label
.
textColor
=
UIColor
.
mainTextColor
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
16
)
label
.
numberOfLines
=
0
return
label
}()
centerView
.
addSubview
(
messageLabel
)
messageLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
22
)
make
.
right
.
equalTo
(
-
22
)
make
.
height
.
equalTo
(
42
)
make
.
top
.
equalTo
(
63
)
}
disAgressButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
(
hex
:
0xffffff
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"不同意"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
brandMainColor
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
layer
.
borderWidth
=
1
button
.
layer
.
borderColor
=
UIColor
.
brandMainColor
.
cgColor
button
.
addTarget
(
self
,
action
:
#selector(
disagree
)
,
for
:
.
touchUpInside
)
return
button
}()
centerView
.
addSubview
(
disAgressButton
)
disAgressButton
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
bottom
.
equalTo
(
-
21
)
make
.
width
.
equalTo
(
128
)
make
.
height
.
equalTo
(
45
)
}
agreeButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
.
brandMainColor
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"同意"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
hex
:
0xffffff
),
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
addTarget
(
self
,
action
:
#selector(
agree
)
,
for
:
.
touchUpInside
)
return
button
}()
centerView
.
addSubview
(
agreeButton
)
agreeButton
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
16
)
make
.
bottom
.
equalTo
(
-
21
)
make
.
width
.
equalTo
(
128
)
make
.
height
.
equalTo
(
45
)
}
lineView
=
{
let
line
=
UIView
()
line
.
backgroundColor
=
UIColor
(
hex
:
0xF0F0F0
)
return
line
}()
centerView
.
addSubview
(
lineView
)
lineView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
1
)
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
12
)
}
}
@objc
func
agree
()
{
if
let
block
=
self
.
agreeBlock
{
block
()
}
dismiss
()
}
@objc
private
func
handleTap
(
_
sender
:
AnyObject
?)
{
print
(
"处理点击手势"
)
if
isFullGuestureEnabel
{
dismiss
()
}
}
@objc
func
disagree
()
{
if
let
block
=
self
.
cancelBlcok
{
block
()
}
dismiss
()
}
func
dismiss
()
{
removeFromSuperview
()
}
}
extension
YHCommonAlertView3
:
UIGestureRecognizerDelegate
{
func
gestureRecognizer
(
_
gestureRecognizer
:
UIGestureRecognizer
,
shouldReceive
touch
:
UITouch
)
->
Bool
{
if
touch
.
view
==
self
{
return
true
}
return
false
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHInformationFillTipsAlertView.swift
View file @
0735a8d2
...
@@ -19,24 +19,7 @@ class YHInformationFillTipsAlertView: UIView {
...
@@ -19,24 +19,7 @@ class YHInformationFillTipsAlertView: UIView {
var
messageLabel
:
UILabel
!
var
messageLabel
:
UILabel
!
var
agreeButton
:
UIButton
!
var
agreeButton
:
UIButton
!
var
disAgressButton
:
UIButton
!
var
disAgressButton
:
UIButton
!
//头部背景图片
lazy
var
headBkgImagV
:
UIImageView
=
{
let
imagV
=
UIImageView
()
imagV
.
image
=
UIImage
(
named
:
"submit_success_bkg"
)
imagV
.
contentMode
=
.
scaleAspectFill
return
imagV
}()
//头部背景图片
lazy
var
successIcon
:
UIImageView
=
{
let
imagV
=
UIImageView
()
imagV
.
image
=
UIImage
(
named
:
"submit_success_icon"
)
imagV
.
contentMode
=
.
scaleAspectFill
return
imagV
}()
var
homeTableView
:
UITableView
=
{
var
homeTableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
plain
)
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
plain
)
tableView
.
backgroundColor
=
.
clear
tableView
.
backgroundColor
=
.
clear
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHServiceNoOrderView.swift
View file @
0735a8d2
...
@@ -22,7 +22,7 @@ class YHServiceNoOrderView: UIView {
...
@@ -22,7 +22,7 @@ class YHServiceNoOrderView: UIView {
private
lazy
var
tipsLab
:
UILabel
=
{
private
lazy
var
tipsLab
:
UILabel
=
{
let
lable
=
UILabel
()
let
lable
=
UILabel
()
lable
.
textColor
=
UIColor
.
init
(
hex
:
0x121A26
)
lable
.
textColor
=
UIColor
.
mainTextColor
lable
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
lable
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
lable
.
textAlignment
=
.
center
lable
.
textAlignment
=
.
center
lable
.
text
=
"您还没有相关订单"
lable
.
text
=
"您还没有相关订单"
...
@@ -50,7 +50,7 @@ class YHServiceNoOrderView: UIView {
...
@@ -50,7 +50,7 @@ class YHServiceNoOrderView: UIView {
btn
.
layer
.
cornerRadius
=
kCornerRadius3
btn
.
layer
.
cornerRadius
=
kCornerRadius3
btn
.
clipsToBounds
=
true
btn
.
clipsToBounds
=
true
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
13
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
13
)
btn
.
setTitleColor
(
UIColor
.
init
(
hex
:
0x121A26
)
,
for
:
.
normal
)
btn
.
setTitleColor
(
UIColor
.
mainTextColor
,
for
:
.
normal
)
btn
.
backgroundColor
=
UIColor
.
init
(
hex
:
0xF4F6FA
)
btn
.
backgroundColor
=
UIColor
.
init
(
hex
:
0xF4F6FA
)
return
btn
return
btn
}()
}()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHServiceOrderProgressTableViewCell.swift
View file @
0735a8d2
...
@@ -65,7 +65,7 @@ extension YHServiceOrderProgressTableViewCell {
...
@@ -65,7 +65,7 @@ extension YHServiceOrderProgressTableViewCell {
messageLabel
.
text
=
"您还有"
+
"
\(
model
.
num
)
"
+
"份信息待填写哦~"
messageLabel
.
text
=
"您还有"
+
"
\(
model
.
num
)
"
+
"份信息待填写哦~"
// 0未知 1待开始 2进行中 3 已完成
// 0未知 1待开始 2进行中 3 已完成
if
model
.
status
==
1
{
if
model
.
status
==
1
{
titleLabel
.
textColor
=
UIColor
(
hex
:
0x121a26
,
transparency
:
0.5
)
titleLabel
.
textColor
=
UIColor
.
mainTextColor50
messageLabel
.
textColor
=
UIColor
(
hex
:
0x94a3b8
,
transparency
:
0.5
)
messageLabel
.
textColor
=
UIColor
(
hex
:
0x94a3b8
,
transparency
:
0.5
)
buttonLabel
.
text
=
"待开始"
buttonLabel
.
text
=
"待开始"
buttonLabel
.
backgroundColor
=
UIColor
(
hex
:
0xb8babe
,
transparency
:
0.5
)
buttonLabel
.
backgroundColor
=
UIColor
(
hex
:
0xb8babe
,
transparency
:
0.5
)
...
@@ -94,8 +94,8 @@ extension YHServiceOrderProgressTableViewCell {
...
@@ -94,8 +94,8 @@ extension YHServiceOrderProgressTableViewCell {
titleLabel
.
text
=
"我的文书"
titleLabel
.
text
=
"我的文书"
messageLabel
.
text
=
"您的文书还没确认哦~"
messageLabel
.
text
=
"您的文书还没确认哦~"
}
}
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
.
withAlphaComponent
(
0.3
)))
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
.
withAlphaComponent
(
0.3
)))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
progressLabel
.
attributed
.
text
=
b
+
bb
progressLabel
.
attributed
.
text
=
b
+
bb
}
}
if
model
.
status
==
2
{
if
model
.
status
==
2
{
...
@@ -163,8 +163,8 @@ extension YHServiceOrderProgressTableViewCell {
...
@@ -163,8 +163,8 @@ extension YHServiceOrderProgressTableViewCell {
}
}
}
}
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
))
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
.
mainTextColor
))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
.
withAlphaComponent
(
0.3
)))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
progressLabel
.
attributed
.
text
=
b
+
bb
progressLabel
.
attributed
.
text
=
b
+
bb
}
}
if
model
.
status
==
3
{
if
model
.
status
==
3
{
...
@@ -199,8 +199,8 @@ extension YHServiceOrderProgressTableViewCell {
...
@@ -199,8 +199,8 @@ extension YHServiceOrderProgressTableViewCell {
titleLabel
.
text
=
"我的文书"
titleLabel
.
text
=
"我的文书"
messageLabel
.
text
=
"恭喜您,文件已全部确认完~"
messageLabel
.
text
=
"恭喜您,文件已全部确认完~"
}
}
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
))
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
.
mainTextColor
))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
.
withAlphaComponent
(
0.3
)))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
progressLabel
.
attributed
.
text
=
b
+
bb
progressLabel
.
attributed
.
text
=
b
+
bb
}
}
if
model
.
status
==
4
{
if
model
.
status
==
4
{
...
@@ -250,8 +250,8 @@ extension YHServiceOrderProgressTableViewCell {
...
@@ -250,8 +250,8 @@ extension YHServiceOrderProgressTableViewCell {
let
aaa
:
ASAttributedString
=
.
init
(
"正在制作中哦~"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
13
)),
.
foreground
(
UIColor
(
hex
:
0x94a3b8
)))
let
aaa
:
ASAttributedString
=
.
init
(
"正在制作中哦~"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
13
)),
.
foreground
(
UIColor
(
hex
:
0x94a3b8
)))
messageLabel
.
attributed
.
text
=
a
+
aa
+
aaa
messageLabel
.
attributed
.
text
=
a
+
aa
+
aaa
}
}
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
))
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
.
mainTextColor
))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
(
hex
:
0x121a26
)
.
withAlphaComponent
(
0.3
)))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
progressLabel
.
attributed
.
text
=
b
+
bb
progressLabel
.
attributed
.
text
=
b
+
bb
}
}
if
model
.
percentage
==
0
{
if
model
.
percentage
==
0
{
...
...
galaxy/galaxy/Classes/Modules/Login(登录)/C/YHCodeSueecssViewController.swift
View file @
0735a8d2
...
@@ -180,7 +180,7 @@ class YHCodeSueecssViewController: YHBaseViewController {
...
@@ -180,7 +180,7 @@ class YHCodeSueecssViewController: YHBaseViewController {
if
success
==
false
{
if
success
==
false
{
if
error
?
.
errorCode
==
YHErrorCode
.
unregisterError
.
rawValue
{
if
error
?
.
errorCode
==
YHErrorCode
.
unregisterError
.
rawValue
{
YHCommonAlertView
3
.
show
(
"状态提示"
,
"您的账号已注销,暂时无法登录app
\n
\r\n
具体详情可邮件联系
\r\n
nick.gzm@galaxyoversea.com"
,
"取消
"
,
"我知道了"
)
{
YHCommonAlertView
.
show
(
"状态提示"
,
"您的账号已注销,暂时无法登录app
\n
\r\n
具体详情可邮件联系
\r\n
nick.gzm@galaxyoversea.com"
,
"
"
,
"我知道了"
)
{
self
.
navigationController
?
.
popViewController
()
self
.
navigationController
?
.
popViewController
()
}
}
}
else
{
}
else
{
...
...
galaxy/galaxy/Classes/Modules/Login(登录)/C/YHCodeSueecssWithVideoBkgViewController.swift
View file @
0735a8d2
...
@@ -42,7 +42,7 @@ class YHCodeSueecssWithVideoBkgViewController: YHBaseViewController {
...
@@ -42,7 +42,7 @@ class YHCodeSueecssWithVideoBkgViewController: YHBaseViewController {
lazy
var
frontHoldView
:
UIView
=
{
lazy
var
frontHoldView
:
UIView
=
{
let
view
=
UIView
()
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
(
hex
:
0x121A26
,
alpha
:
0.32
)
view
.
backgroundColor
=
UIColor
.
mainTextColor30
return
view
return
view
}()
}()
...
@@ -96,7 +96,7 @@ extension YHCodeSueecssWithVideoBkgViewController {
...
@@ -96,7 +96,7 @@ extension YHCodeSueecssWithVideoBkgViewController {
if
success
==
false
{
if
success
==
false
{
if
error
?
.
errorCode
==
YHErrorCode
.
unregisterError
.
rawValue
{
if
error
?
.
errorCode
==
YHErrorCode
.
unregisterError
.
rawValue
{
YHCommonAlertView
3
.
show
(
"状态提示"
,
"您的账号已注销,暂时无法登录app
\n
\r\n
具体详情可邮件联系
\r\n
nick.gzm@galaxyoversea.com"
,
"取消
"
,
"我知道了"
)
{
YHCommonAlertView
.
show
(
"状态提示"
,
"您的账号已注销,暂时无法登录app
\n
\r\n
具体详情可邮件联系
\r\n
nick.gzm@galaxyoversea.com"
,
"
"
,
"我知道了"
)
{
self
.
navigationController
?
.
popViewController
()
self
.
navigationController
?
.
popViewController
()
}
}
}
else
{
}
else
{
...
@@ -252,7 +252,7 @@ extension YHCodeSueecssWithVideoBkgViewController {
...
@@ -252,7 +252,7 @@ extension YHCodeSueecssWithVideoBkgViewController {
let
button
=
UILabel
()
let
button
=
UILabel
()
button
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
button
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
button
.
text
=
"重新发送(58)"
button
.
text
=
"重新发送(58)"
button
.
textColor
=
UIColor
.
init
(
hex
:
0x121A26
)
button
.
textColor
=
UIColor
.
mainTextColor
button
.
textAlignment
=
.
center
button
.
textAlignment
=
.
center
button
.
isHidden
=
false
button
.
isHidden
=
false
button
.
layer
.
cornerRadius
=
24
button
.
layer
.
cornerRadius
=
24
...
...
galaxy/galaxy/Classes/Modules/Login(登录)/C/YHPhoneLiginWithVideoBkgViewController.swift
View file @
0735a8d2
...
@@ -53,7 +53,7 @@ class YHPhoneLiginWithVideoBkgViewController: YHBaseViewController {
...
@@ -53,7 +53,7 @@ class YHPhoneLiginWithVideoBkgViewController: YHBaseViewController {
lazy
var
frontHoldView
:
UIView
=
{
lazy
var
frontHoldView
:
UIView
=
{
let
view
=
UIView
()
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
(
hex
:
0x121A26
,
alpha
:
0.32
)
view
.
backgroundColor
=
UIColor
.
mainTextColor30
return
view
return
view
}()
}()
...
...
galaxy/galaxy/Classes/Modules/Login(登录)/V/YHLoginPrivacyView.swift
View file @
0735a8d2
...
@@ -14,7 +14,11 @@ class YHLoginPrivacyView: UIView {
...
@@ -14,7 +14,11 @@ class YHLoginPrivacyView: UIView {
var
serviceButton
:
UIButton
!
var
serviceButton
:
UIButton
!
var
andLabel
:
UILabel
!
var
andLabel
:
UILabel
!
var
privacyButton
:
UIButton
!
var
privacyButton
:
UIButton
!
var
isAgree
:
Bool
=
false
var
isAgree
:
Bool
=
false
{
didSet
{
agreeButton
.
isSelected
=
isAgree
}
}
override
init
(
frame
:
CGRect
)
{
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
super
.
init
(
frame
:
frame
)
...
@@ -45,7 +49,7 @@ class YHLoginPrivacyView: UIView {
...
@@ -45,7 +49,7 @@ class YHLoginPrivacyView: UIView {
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
text
=
"我已阅读并同意"
label
.
text
=
"我已阅读并同意"
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
UIColor
.
labelTextColor2
label
.
textColor
=
UIColor
(
hex
:
0xffffff
,
alpha
:
0.7
)
label
.
textAlignment
=
.
left
label
.
textAlignment
=
.
left
return
label
return
label
}()
}()
...
@@ -76,7 +80,7 @@ class YHLoginPrivacyView: UIView {
...
@@ -76,7 +80,7 @@ class YHLoginPrivacyView: UIView {
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
text
=
"和"
label
.
text
=
"和"
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
UIColor
.
labelTextColor2
label
.
textColor
=
UIColor
(
hex
:
0xffffff
,
alpha
:
0.7
)
label
.
textAlignment
=
.
left
label
.
textAlignment
=
.
left
return
label
return
label
}()
}()
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
View file @
0735a8d2
...
@@ -36,7 +36,7 @@ class YHMessageListVC: YHBaseViewController {
...
@@ -36,7 +36,7 @@ class YHMessageListVC: YHBaseViewController {
let
bar
=
UIView
()
let
bar
=
UIView
()
let
titleLabel
=
UILabel
()
let
titleLabel
=
UILabel
()
titleLabel
.
textColor
=
UIColor
(
hex
:
0x121A26
)
titleLabel
.
textColor
=
UIColor
.
mainTextColor
titleLabel
.
textAlignment
=
.
left
titleLabel
.
textAlignment
=
.
left
titleLabel
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
21
)
titleLabel
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
21
)
titleLabel
.
text
=
"消息"
titleLabel
.
text
=
"消息"
...
@@ -325,7 +325,7 @@ extension YHMessageListVC: UITableViewDelegate, UITableViewDataSource {
...
@@ -325,7 +325,7 @@ extension YHMessageListVC: UITableViewDelegate, UITableViewDataSource {
}
}
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textColor
=
UIColor
(
hex
:
0x121A26
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textAlignment
=
.
left
label
.
textAlignment
=
.
left
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
13
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
13
)
label
.
text
=
"开启通知,及时掌握最新消息"
.
local
label
.
text
=
"开启通知,及时掌握最新消息"
.
local
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/V/YHDetailMessageCell.swift
View file @
0735a8d2
...
@@ -89,7 +89,7 @@ class YHDetailMessageCell: UITableViewCell {
...
@@ -89,7 +89,7 @@ class YHDetailMessageCell: UITableViewCell {
contentView
.
backgroundColor
=
UIColor
(
hex
:
0xF8F8F8
)
contentView
.
backgroundColor
=
UIColor
(
hex
:
0xF8F8F8
)
timeLabel
=
UILabel
()
timeLabel
=
UILabel
()
timeLabel
.
textColor
=
UIColor
(
hex
:
0x121A26
,
alpha
:
0.3
)
timeLabel
.
textColor
=
UIColor
.
mainTextColor30
timeLabel
.
textAlignment
=
.
center
timeLabel
.
textAlignment
=
.
center
timeLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
timeLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
timeLabel
.
text
=
"2023-09-13"
timeLabel
.
text
=
"2023-09-13"
...
@@ -118,7 +118,7 @@ class YHDetailMessageCell: UITableViewCell {
...
@@ -118,7 +118,7 @@ class YHDetailMessageCell: UITableViewCell {
detailLabel
.
textAlignment
=
.
left
detailLabel
.
textAlignment
=
.
left
detailLabel
.
numberOfLines
=
0
detailLabel
.
numberOfLines
=
0
detailLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
detailLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
detailLabel
.
textColor
=
UIColor
(
hex
:
0x121A26
,
alpha
:
0.7
)
detailLabel
.
textColor
=
UIColor
.
mainTextColor70
whiteView
.
addSubview
(
detailLabel
)
whiteView
.
addSubview
(
detailLabel
)
lineView
=
UIView
()
lineView
=
UIView
()
...
@@ -183,12 +183,12 @@ class YHDetailMessageCell: UITableViewCell {
...
@@ -183,12 +183,12 @@ class YHDetailMessageCell: UITableViewCell {
func
updateModel
()
{
func
updateModel
()
{
let
text1
:
ASAttributedString
=
.
init
(
"林先生,您好,您尚有20%内容未填写,请到"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
(
hex
:
0x121A26
,
alpha
:
0.7
)
))
let
text1
:
ASAttributedString
=
.
init
(
"林先生,您好,您尚有20%内容未填写,请到"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor70
))
let
text2
:
ASAttributedString
=
.
init
(
"服务中心-资料上传"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
brandMainColor
),
.
action
{
let
text2
:
ASAttributedString
=
.
init
(
"服务中心-资料上传"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
brandMainColor
),
.
action
{
})
})
let
text3
:
ASAttributedString
=
.
init
(
"去填写,请您尽快完成~"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
(
hex
:
0x121A26
,
alpha
:
0.7
)
))
let
text3
:
ASAttributedString
=
.
init
(
"去填写,请您尽快完成~"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor70
))
detailLabel
.
attributed
.
text
=
text1
+
text2
+
text3
detailLabel
.
attributed
.
text
=
text1
+
text2
+
text3
}
}
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/V/YHMessageSessionCell.swift
View file @
0735a8d2
...
@@ -119,19 +119,19 @@ class YHMessageSessionCell: UITableViewCell {
...
@@ -119,19 +119,19 @@ class YHMessageSessionCell: UITableViewCell {
iconContentView
.
addSubview
(
badgeLabel
)
iconContentView
.
addSubview
(
badgeLabel
)
nameLabel
=
UILabel
()
nameLabel
=
UILabel
()
nameLabel
.
textColor
=
UIColor
(
hex
:
0x121A26
)
nameLabel
.
textColor
=
UIColor
.
mainTextColor
nameLabel
.
textAlignment
=
.
left
nameLabel
.
textAlignment
=
.
left
nameLabel
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
nameLabel
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
contentView
.
addSubview
(
nameLabel
)
contentView
.
addSubview
(
nameLabel
)
detailLabel
=
UILabel
()
detailLabel
=
UILabel
()
detailLabel
.
textColor
=
UIColor
(
hex
:
0x121A26
,
alpha
:
0.5
)
detailLabel
.
textColor
=
UIColor
.
mainTextColor50
detailLabel
.
textAlignment
=
.
left
detailLabel
.
textAlignment
=
.
left
detailLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
detailLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
contentView
.
addSubview
(
detailLabel
)
contentView
.
addSubview
(
detailLabel
)
timeLabel
=
UILabel
()
timeLabel
=
UILabel
()
timeLabel
.
textColor
=
UIColor
(
hex
:
0x121A26
,
alpha
:
0.3
)
timeLabel
.
textColor
=
UIColor
.
mainTextColor30
timeLabel
.
textAlignment
=
.
right
timeLabel
.
textAlignment
=
.
right
timeLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
11
)
timeLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
11
)
timeLabel
.
setContentCompressionResistancePriority
(
.
required
,
for
:
.
horizontal
)
timeLabel
.
setContentCompressionResistancePriority
(
.
required
,
for
:
.
horizontal
)
...
@@ -139,7 +139,7 @@ class YHMessageSessionCell: UITableViewCell {
...
@@ -139,7 +139,7 @@ class YHMessageSessionCell: UITableViewCell {
contentView
.
addSubview
(
timeLabel
)
contentView
.
addSubview
(
timeLabel
)
bottomLineView
=
UIView
()
bottomLineView
=
UIView
()
bottomLineView
.
backgroundColor
=
UIColor
(
hex
:
0x121A26
,
transparency
:
0.05
)
bottomLineView
.
backgroundColor
=
UIColor
.
mainTextColor5
contentView
.
addSubview
(
bottomLineView
)
contentView
.
addSubview
(
bottomLineView
)
iconContentView
.
snp
.
makeConstraints
{
make
in
iconContentView
.
snp
.
makeConstraints
{
make
in
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHAboutUsViewController.swift
View file @
0735a8d2
...
@@ -50,7 +50,7 @@ class YHAboutUsViewController: YHBaseViewController {
...
@@ -50,7 +50,7 @@ class YHAboutUsViewController: YHBaseViewController {
lazy
var
aboutLabel
=
{
lazy
var
aboutLabel
=
{
var
label
=
UILabel
()
var
label
=
UILabel
()
label
.
text
=
"关于银河"
.
local
label
.
text
=
"关于银河"
.
local
label
.
textColor
=
UIColor
.
init
(
hex
:
0x121A26
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textAlignment
=
NSTextAlignment
.
left
label
.
textAlignment
=
NSTextAlignment
.
left
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
21
)
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
21
)
return
label
return
label
...
@@ -69,7 +69,7 @@ class YHAboutUsViewController: YHBaseViewController {
...
@@ -69,7 +69,7 @@ class YHAboutUsViewController: YHBaseViewController {
lazy
var
advantageLabel
=
{
lazy
var
advantageLabel
=
{
var
label
=
UILabel
()
var
label
=
UILabel
()
label
.
text
=
"四大优势"
label
.
text
=
"四大优势"
label
.
textColor
=
UIColor
.
init
(
hex
:
0x121A26
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textAlignment
=
.
center
label
.
textAlignment
=
.
center
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
17
)
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
17
)
return
label
return
label
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHDeviceInfoViewController.swift
View file @
0735a8d2
...
@@ -12,7 +12,7 @@ class YHDeviceInfoViewController: YHBaseViewController {
...
@@ -12,7 +12,7 @@ class YHDeviceInfoViewController: YHBaseViewController {
lazy
var
deviceInfoLabel
:
UILabel
=
{
lazy
var
deviceInfoLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textColor
=
UIColor
(
hex
:
0x121A26
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textAlignment
=
.
left
label
.
textAlignment
=
.
left
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
15
)
label
.
numberOfLines
=
0
label
.
numberOfLines
=
0
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyNotifySettingVC.swift
View file @
0735a8d2
...
@@ -138,7 +138,7 @@ extension YHMyNotifySettingVC: UITableViewDelegate, UITableViewDataSource {
...
@@ -138,7 +138,7 @@ extension YHMyNotifySettingVC: UITableViewDelegate, UITableViewDataSource {
view
.
backgroundColor
=
UIColor
(
hex
:
0xF8FAFB
)
view
.
backgroundColor
=
UIColor
(
hex
:
0xF8FAFB
)
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textColor
=
UIColor
(
hex
:
0x121A26
,
alpha
:
0.5
)
label
.
textColor
=
UIColor
.
mainTextColor50
label
.
textAlignment
=
.
left
label
.
textAlignment
=
.
left
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
numberOfLines
=
0
label
.
numberOfLines
=
0
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyPermissionSettingVC.swift
View file @
0735a8d2
...
@@ -250,7 +250,7 @@ extension YHMyPermissionSettingVC: UITableViewDelegate, UITableViewDataSource {
...
@@ -250,7 +250,7 @@ extension YHMyPermissionSettingVC: UITableViewDelegate, UITableViewDataSource {
view
.
backgroundColor
=
UIColor
(
hex
:
0xF8FAFB
)
view
.
backgroundColor
=
UIColor
(
hex
:
0xF8FAFB
)
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textColor
=
UIColor
(
hex
:
0x121A26
,
alpha
:
0.5
)
label
.
textColor
=
UIColor
.
mainTextColor50
label
.
textAlignment
=
.
left
label
.
textAlignment
=
.
left
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
numberOfLines
=
0
label
.
numberOfLines
=
0
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMySettingViewController.swift
View file @
0735a8d2
...
@@ -40,7 +40,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
...
@@ -40,7 +40,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
let
btn
=
UIButton
()
let
btn
=
UIButton
()
btn
.
setTitle
(
"注销账号"
.
local
,
for
:
.
normal
)
btn
.
setTitle
(
"注销账号"
.
local
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
13
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
13
)
btn
.
setTitleColor
(
UIColor
(
hexString
:
"#121A26"
,
transparency
:
0.3
)
,
for
:
.
normal
)
btn
.
setTitleColor
(
UIColor
.
mainTextColor30
,
for
:
.
normal
)
btn
.
backgroundColor
=
.
clear
btn
.
backgroundColor
=
.
clear
btn
.
addTarget
(
self
,
action
:
#selector(
clickRegBtn
)
,
for
:
.
touchUpInside
)
btn
.
addTarget
(
self
,
action
:
#selector(
clickRegBtn
)
,
for
:
.
touchUpInside
)
return
btn
return
btn
...
@@ -180,7 +180,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
...
@@ -180,7 +180,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
//点击注销按钮
//点击注销按钮
@objc
func
clickRegBtn
()
{
@objc
func
clickRegBtn
()
{
YHCommonAlertView
2
.
show
(
"风险提示"
,
"您正在进行账号注销操作,一旦完成注销,您将无法再登录
\"
银河港生活
\"
APP,并因此无法在APP中继续现有的服务流程。
\n
\n
真心希望您能留下来,继续享受银河港生活为您提供的精彩服务。"
,
"取消"
,
"坚持注销"
)
{
YHCommonAlertView
.
show
(
"风险提示"
,
"您正在进行账号注销操作,一旦完成注销,您将无法再登录
\"
银河港生活
\"
APP,并因此无法在APP中继续现有的服务流程。
\n
\n
真心希望您能留下来,继续享受银河港生活为您提供的精彩服务。"
,
"取消"
,
"坚持注销"
)
{
self
.
unRegisterAPPOp
()
self
.
unRegisterAPPOp
()
}
}
...
@@ -230,7 +230,7 @@ extension YHMySettingViewController : UITableViewDelegate, UITableViewDataSource
...
@@ -230,7 +230,7 @@ extension YHMySettingViewController : UITableViewDelegate, UITableViewDataSource
if
item
.
type
==
.
version
{
if
item
.
type
==
.
version
{
cell
.
isShowRedPoint
=
item
.
isShowRedPoint
cell
.
isShowRedPoint
=
item
.
isShowRedPoint
var
detailText
=
"已是最新版"
var
detailText
=
"已是最新版"
var
detailColor
=
UIColor
.
init
(
hex
:
0x121A26
,
alpha
:
0.3
)
var
detailColor
=
UIColor
.
mainTextColor30
if
let
configModel
=
YHConfigManager
.
shared
.
reqVM
.
configModel
,
configModel
.
suggest_updating
==
true
{
if
let
configModel
=
YHConfigManager
.
shared
.
reqVM
.
configModel
,
configModel
.
suggest_updating
==
true
{
detailText
=
"去更新"
detailText
=
"去更新"
detailColor
=
UIColor
.
brandMainColor
detailColor
=
UIColor
.
brandMainColor
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHAboutUsAdvantageCell.swift
View file @
0735a8d2
...
@@ -30,7 +30,7 @@ class YHAboutUsAdvantageCell: UICollectionViewCell {
...
@@ -30,7 +30,7 @@ class YHAboutUsAdvantageCell: UICollectionViewCell {
lazy
var
titleLabel
:
UILabel
=
{
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
init
(
hex
:
0x121A26
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textAlignment
=
.
center
label
.
textAlignment
=
.
center
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
14
)
return
label
return
label
...
@@ -38,7 +38,7 @@ class YHAboutUsAdvantageCell: UICollectionViewCell {
...
@@ -38,7 +38,7 @@ class YHAboutUsAdvantageCell: UICollectionViewCell {
lazy
var
detailLabel
:
UILabel
=
{
lazy
var
detailLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textColor
=
UIColor
(
hex
:
0x121A2680
,
alpha
:
0.5
)
label
.
textColor
=
UIColor
.
mainTextColor50
label
.
numberOfLines
=
0
label
.
numberOfLines
=
0
label
.
textAlignment
=
.
center
label
.
textAlignment
=
.
center
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
11
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
11
)
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHMyPermissionCell.swift
View file @
0735a8d2
...
@@ -12,8 +12,8 @@ class YHMyPermissionCell: UITableViewCell {
...
@@ -12,8 +12,8 @@ class YHMyPermissionCell: UITableViewCell {
static
let
cellReuseIdentifier
=
"YHMyPermissionCell"
static
let
cellReuseIdentifier
=
"YHMyPermissionCell"
static
let
enableColor
=
UIColor
(
hex
:
0x121A26
,
alpha
:
0.3
)
static
let
enableColor
=
UIColor
.
mainTextColor30
static
let
disableColor
=
UIColor
(
hex
:
0x121A26
,
alpha
:
0.7
)
static
let
disableColor
=
UIColor
.
mainTextColor70
var
titleLabel
:
UILabel
!
var
titleLabel
:
UILabel
!
var
statusLabel
:
UILabel
!
var
statusLabel
:
UILabel
!
...
@@ -33,7 +33,7 @@ class YHMyPermissionCell: UITableViewCell {
...
@@ -33,7 +33,7 @@ class YHMyPermissionCell: UITableViewCell {
self
.
selectionStyle
=
.
none
self
.
selectionStyle
=
.
none
titleLabel
=
UILabel
()
titleLabel
=
UILabel
()
titleLabel
.
textColor
=
UIColor
(
hex
:
0x121A26
)
titleLabel
.
textColor
=
UIColor
.
mainTextColor
titleLabel
.
textAlignment
=
.
left
titleLabel
.
textAlignment
=
.
left
titleLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
titleLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
contentView
.
addSubview
(
titleLabel
)
contentView
.
addSubview
(
titleLabel
)
...
...
galaxy/galaxy/Classes/Modules/VersionUpload(版本更新)/V/YHFindAppNewVersionView.swift
View file @
0735a8d2
...
@@ -86,7 +86,7 @@ class YHFindAppNewVersionView: UIView {
...
@@ -86,7 +86,7 @@ class YHFindAppNewVersionView: UIView {
lazy
var
titleLabel
:
UILabel
=
{
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
init
(
hex
:
0x121A26
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
20
)
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
20
)
label
.
text
=
"发现新版本"
label
.
text
=
"发现新版本"
return
label
return
label
...
...
galaxy/galaxy/Classes/Tools/Extention/UIColor+Extension.swift
View file @
0735a8d2
...
@@ -27,7 +27,12 @@ extension UIColor {
...
@@ -27,7 +27,12 @@ extension UIColor {
static
let
brandMainColor6
:
UIColor
=
UIColor
(
hexString
:
"#0046B4"
,
transparency
:
0.06
)
!
static
let
brandMainColor6
:
UIColor
=
UIColor
(
hexString
:
"#0046B4"
,
transparency
:
0.06
)
!
//标题/主内容
//标题/主内容
static
let
mainTextColor
:
UIColor
=
UIColor
(
hexString
:
"#222222"
)
!
// static let mainTextColor : UIColor = UIColor(hexString: "#222222")!
static
let
mainTextColor
:
UIColor
=
UIColor
(
hexString
:
"#121A26"
)
!
static
let
mainTextColor5
:
UIColor
=
UIColor
(
hexString
:
"#121A26"
,
transparency
:
0.05
)
!
static
let
mainTextColor30
:
UIColor
=
UIColor
(
hexString
:
"#121A26"
,
transparency
:
0.3
)
!
static
let
mainTextColor50
:
UIColor
=
UIColor
(
hexString
:
"#121A26"
,
transparency
:
0.5
)
!
static
let
mainTextColor70
:
UIColor
=
UIColor
(
hexString
:
"#121A26"
,
transparency
:
0.7
)
!
//次内容一
//次内容一
static
let
subTextColor
:
UIColor
=
UIColor
(
hexString
:
"#4E4E4E"
)
!
static
let
subTextColor
:
UIColor
=
UIColor
(
hexString
:
"#4E4E4E"
)
!
...
...
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