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
5d8490f1
Commit
5d8490f1
authored
Jan 22, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务中心 首页UI
parent
a8f5ff7e
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
246 additions
and
13 deletions
+246
-13
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-4
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+1
-1
YHDavidTestViewController.swift
...lasses/Modules/Home(首页)/C/YHDavidTestViewController.swift
+1
-1
YHHomeViewController.swift
...axy/Classes/Modules/Home(首页)/C/YHHomeViewController.swift
+2
-2
YHServiceCenterMainViewController.swift
...ntService(服务中心)/C/YHServiceCenterMainViewController.swift
+105
-5
YHContractCell.swift
...s/Modules/IntelligentService(服务中心)/V/YHContractCell.swift
+107
-0
Contents.json
...主入口/service_center_right_next_icon.imageset/Contents.json
+22
-0
icon-展开@2x.png
...入口/service_center_right_next_icon.imageset/icon-展开@2x.png
+0
-0
icon-展开@3x.png
...入口/service_center_right_next_icon.imageset/icon-展开@3x.png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
5d8490f1
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
A5ACE94F2B4564F7002C94D2
/* YhOverlayView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9112B4564F7002C94D2
/* YhOverlayView.swift */
;
};
A5ACE94F2B4564F7002C94D2
/* YhOverlayView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9112B4564F7002C94D2
/* YhOverlayView.swift */
;
};
A5ACE9502B4564F7002C94D2
/* YhCacheTool.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9122B4564F7002C94D2
/* YhCacheTool.swift */
;
};
A5ACE9502B4564F7002C94D2
/* YhCacheTool.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9122B4564F7002C94D2
/* YhCacheTool.swift */
;
};
A5ACE9512B4564F7002C94D2
/* YhConstant.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9132B4564F7002C94D2
/* YhConstant.swift */
;
};
A5ACE9512B4564F7002C94D2
/* YhConstant.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9132B4564F7002C94D2
/* YhConstant.swift */
;
};
A5ACE9522B4564F7002C94D2
/* YH
IntelligentServiceViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9192B4564F7002C94D2
/* YHIntelligentService
ViewController.swift */
;
};
A5ACE9522B4564F7002C94D2
/* YH
ServiceCenterMainViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9192B4564F7002C94D2
/* YHServiceCenterMain
ViewController.swift */
;
};
A5ACE9532B4564F7002C94D2
/* YHBaseViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9202B4564F7002C94D2
/* YHBaseViewController.swift */
;
};
A5ACE9532B4564F7002C94D2
/* YHBaseViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9202B4564F7002C94D2
/* YHBaseViewController.swift */
;
};
A5ACE9542B4564F7002C94D2
/* YHNavigationController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9212B4564F7002C94D2
/* YHNavigationController.swift */
;
};
A5ACE9542B4564F7002C94D2
/* YHNavigationController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9212B4564F7002C94D2
/* YHNavigationController.swift */
;
};
A5ACE9552B4564F7002C94D2
/* YHTabBarViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9222B4564F7002C94D2
/* YHTabBarViewController.swift */
;
};
A5ACE9552B4564F7002C94D2
/* YHTabBarViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9222B4564F7002C94D2
/* YHTabBarViewController.swift */
;
};
...
@@ -88,6 +88,7 @@
...
@@ -88,6 +88,7 @@
A5ACE9582B4564F7002C94D2
/* YHNoDataTipView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9262B4564F7002C94D2
/* YHNoDataTipView.swift */
;
};
A5ACE9582B4564F7002C94D2
/* YHNoDataTipView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE9262B4564F7002C94D2
/* YHNoDataTipView.swift */
;
};
A5ACE95E2B4571BF002C94D2
/* YHHomeViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE95D2B4571BF002C94D2
/* YHHomeViewController.swift */
;
};
A5ACE95E2B4571BF002C94D2
/* YHHomeViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5ACE95D2B4571BF002C94D2
/* YHHomeViewController.swift */
;
};
A5C382CA2B5E1F4C00C5E65C
/* YHLoginTipsView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C382C92B5E1F4C00C5E65C
/* YHLoginTipsView.swift */
;
};
A5C382CA2B5E1F4C00C5E65C
/* YHLoginTipsView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C382C92B5E1F4C00C5E65C
/* YHLoginTipsView.swift */
;
};
A5C382CC2B5EA11800C5E65C
/* YHContractCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C382CB2B5EA11800C5E65C
/* YHContractCell.swift */
;
};
A5C5B2E62B4EC0BF00A7C5D1
/* YHDavidTestViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C5B2E52B4EC0BF00A7C5D1
/* YHDavidTestViewController.swift */
;
};
A5C5B2E62B4EC0BF00A7C5D1
/* YHDavidTestViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C5B2E52B4EC0BF00A7C5D1
/* YHDavidTestViewController.swift */
;
};
A5C5B2E82B4EC95600A7C5D1
/* YHDavidTestCollectionViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C5B2E72B4EC95600A7C5D1
/* YHDavidTestCollectionViewCell.swift */
;
};
A5C5B2E82B4EC95600A7C5D1
/* YHDavidTestCollectionViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C5B2E72B4EC95600A7C5D1
/* YHDavidTestCollectionViewCell.swift */
;
};
A5C5B2EA2B4ECA4D00A7C5D1
/* YHDavidModel0.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C5B2E92B4ECA4D00A7C5D1
/* YHDavidModel0.swift */
;
};
A5C5B2EA2B4ECA4D00A7C5D1
/* YHDavidModel0.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A5C5B2E92B4ECA4D00A7C5D1
/* YHDavidModel0.swift */
;
};
...
@@ -217,7 +218,7 @@
...
@@ -217,7 +218,7 @@
A5ACE9122B4564F7002C94D2
/* YhCacheTool.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YhCacheTool.swift
;
sourceTree
=
"<group>"
;
};
A5ACE9122B4564F7002C94D2
/* YhCacheTool.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YhCacheTool.swift
;
sourceTree
=
"<group>"
;
};
A5ACE9132B4564F7002C94D2
/* YhConstant.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YhConstant.swift
;
sourceTree
=
"<group>"
;
};
A5ACE9132B4564F7002C94D2
/* YhConstant.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YhConstant.swift
;
sourceTree
=
"<group>"
;
};
A5ACE9152B4564F7002C94D2
/* galaxy-Bridge-Header.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"galaxy-Bridge-Header.h"
;
sourceTree
=
"<group>"
;
};
A5ACE9152B4564F7002C94D2
/* galaxy-Bridge-Header.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"galaxy-Bridge-Header.h"
;
sourceTree
=
"<group>"
;
};
A5ACE9192B4564F7002C94D2
/* YH
IntelligentServiceViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHIntelligentService
ViewController.swift
;
sourceTree
=
"<group>"
;
};
A5ACE9192B4564F7002C94D2
/* YH
ServiceCenterMainViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceCenterMain
ViewController.swift
;
sourceTree
=
"<group>"
;
};
A5ACE9202B4564F7002C94D2
/* YHBaseViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBaseViewController.swift
;
sourceTree
=
"<group>"
;
};
A5ACE9202B4564F7002C94D2
/* YHBaseViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBaseViewController.swift
;
sourceTree
=
"<group>"
;
};
A5ACE9212B4564F7002C94D2
/* YHNavigationController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNavigationController.swift
;
sourceTree
=
"<group>"
;
};
A5ACE9212B4564F7002C94D2
/* YHNavigationController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNavigationController.swift
;
sourceTree
=
"<group>"
;
};
A5ACE9222B4564F7002C94D2
/* YHTabBarViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTabBarViewController.swift
;
sourceTree
=
"<group>"
;
};
A5ACE9222B4564F7002C94D2
/* YHTabBarViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTabBarViewController.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -226,6 +227,7 @@
...
@@ -226,6 +227,7 @@
A5ACE9262B4564F7002C94D2
/* YHNoDataTipView.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNoDataTipView.swift
;
sourceTree
=
"<group>"
;
};
A5ACE9262B4564F7002C94D2
/* YHNoDataTipView.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNoDataTipView.swift
;
sourceTree
=
"<group>"
;
};
A5ACE95D2B4571BF002C94D2
/* YHHomeViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHomeViewController.swift
;
sourceTree
=
"<group>"
;
};
A5ACE95D2B4571BF002C94D2
/* YHHomeViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHomeViewController.swift
;
sourceTree
=
"<group>"
;
};
A5C382C92B5E1F4C00C5E65C
/* YHLoginTipsView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLoginTipsView.swift
;
sourceTree
=
"<group>"
;
};
A5C382C92B5E1F4C00C5E65C
/* YHLoginTipsView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLoginTipsView.swift
;
sourceTree
=
"<group>"
;
};
A5C382CB2B5EA11800C5E65C
/* YHContractCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHContractCell.swift
;
sourceTree
=
"<group>"
;
};
A5C5B2E52B4EC0BF00A7C5D1
/* YHDavidTestViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHDavidTestViewController.swift
;
sourceTree
=
"<group>"
;
};
A5C5B2E52B4EC0BF00A7C5D1
/* YHDavidTestViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHDavidTestViewController.swift
;
sourceTree
=
"<group>"
;
};
A5C5B2E72B4EC95600A7C5D1
/* YHDavidTestCollectionViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHDavidTestCollectionViewCell.swift
;
sourceTree
=
"<group>"
;
};
A5C5B2E72B4EC95600A7C5D1
/* YHDavidTestCollectionViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHDavidTestCollectionViewCell.swift
;
sourceTree
=
"<group>"
;
};
A5C5B2E92B4ECA4D00A7C5D1
/* YHDavidModel0.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHDavidModel0.swift
;
sourceTree
=
"<group>"
;
};
A5C5B2E92B4ECA4D00A7C5D1
/* YHDavidModel0.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHDavidModel0.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -619,7 +621,7 @@
...
@@ -619,7 +621,7 @@
A5ACE9182B4564F7002C94D2
/* C */
=
{
A5ACE9182B4564F7002C94D2
/* C */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
A5ACE9192B4564F7002C94D2
/* YH
IntelligentService
ViewController.swift */
,
A5ACE9192B4564F7002C94D2
/* YH
ServiceCenterMain
ViewController.swift */
,
);
);
path
=
C
;
path
=
C
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -628,6 +630,7 @@
...
@@ -628,6 +630,7 @@
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
A5C382C92B5E1F4C00C5E65C
/* YHLoginTipsView.swift */
,
A5C382C92B5E1F4C00C5E65C
/* YHLoginTipsView.swift */
,
A5C382CB2B5EA11800C5E65C
/* YHContractCell.swift */
,
);
);
path
=
V
;
path
=
V
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -946,7 +949,7 @@
...
@@ -946,7 +949,7 @@
A5ACE9442B4564F7002C94D2
/* Array+Extension.swift in Sources */
,
A5ACE9442B4564F7002C94D2
/* Array+Extension.swift in Sources */
,
0468D4282B50D4AF00CFB916
/* YHPrivacyAlertView.swift in Sources */
,
0468D4282B50D4AF00CFB916
/* YHPrivacyAlertView.swift in Sources */
,
0468D4342B56587B00CFB916
/* YHOOSManager.swift in Sources */
,
0468D4342B56587B00CFB916
/* YHOOSManager.swift in Sources */
,
A5ACE9522B4564F7002C94D2
/* YH
IntelligentService
ViewController.swift in Sources */
,
A5ACE9522B4564F7002C94D2
/* YH
ServiceCenterMain
ViewController.swift in Sources */
,
A5C5B2FD2B55361700A7C5D1
/* YHBannerModel.swift in Sources */
,
A5C5B2FD2B55361700A7C5D1
/* YHBannerModel.swift in Sources */
,
A5ACE9462B4564F7002C94D2
/* BsHUDSquareBaseView.swift in Sources */
,
A5ACE9462B4564F7002C94D2
/* BsHUDSquareBaseView.swift in Sources */
,
A5551FFE2B4C26CE00510980
/* YHBaseViewModel.swift in Sources */
,
A5551FFE2B4C26CE00510980
/* YHBaseViewModel.swift in Sources */
,
...
@@ -987,6 +990,7 @@
...
@@ -987,6 +990,7 @@
A5ACE9402B4564F7002C94D2
/* String+Extension.swift in Sources */
,
A5ACE9402B4564F7002C94D2
/* String+Extension.swift in Sources */
,
A5ACE9482B4564F7002C94D2
/* BsHUDWariningView.swift in Sources */
,
A5ACE9482B4564F7002C94D2
/* BsHUDWariningView.swift in Sources */
,
A5C5B3252B57C74900A7C5D1
/* YHDavidCell3.swift in Sources */
,
A5C5B3252B57C74900A7C5D1
/* YHDavidCell3.swift in Sources */
,
A5C382CC2B5EA11800C5E65C
/* YHContractCell.swift in Sources */
,
A5ACE9492B4564F7002C94D2
/* BsHUDSuccessView.swift in Sources */
,
A5ACE9492B4564F7002C94D2
/* BsHUDSuccessView.swift in Sources */
,
A5ACE9432B4564F7002C94D2
/* UILable+Extension.swift in Sources */
,
A5ACE9432B4564F7002C94D2
/* UILable+Extension.swift in Sources */
,
A5ACE9382B4564F7002C94D2
/* UIApplication+Extension.swift in Sources */
,
A5ACE9382B4564F7002C94D2
/* UIApplication+Extension.swift in Sources */
,
...
...
galaxy/galaxy/AppDelegate.swift
View file @
5d8490f1
...
@@ -139,7 +139,7 @@ extension AppDelegate {
...
@@ -139,7 +139,7 @@ extension AppDelegate {
private
func
setupRootVC
()
{
private
func
setupRootVC
()
{
let
tabBarController
=
YHTabBarViewController
()
let
tabBarController
=
YHTabBarViewController
()
let
v0
=
YHNavigationController
(
rootVC
:
YHHomeViewController
())
let
v0
=
YHNavigationController
(
rootVC
:
YHHomeViewController
())
let
v1
=
YHNavigationController
(
rootVC
:
YH
IntelligentService
ViewController
())
let
v1
=
YHNavigationController
(
rootVC
:
YH
ServiceCenterMain
ViewController
())
let
v2
=
YHNavigationController
(
rootVC
:
YHMyViewController
())
let
v2
=
YHNavigationController
(
rootVC
:
YHMyViewController
())
v0
.
tabBarItem
=
ESTabBarItem
.
init
(
YHBasicContentView
(),
title
:
"首页"
,
image
:
UIImage
(
named
:
"photo"
),
selectedImage
:
UIImage
(
named
:
"photo_1"
))
v0
.
tabBarItem
=
ESTabBarItem
.
init
(
YHBasicContentView
(),
title
:
"首页"
,
image
:
UIImage
(
named
:
"photo"
),
selectedImage
:
UIImage
(
named
:
"photo_1"
))
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHDavidTestViewController.swift
View file @
5d8490f1
...
@@ -106,7 +106,7 @@ class YHDavidTestViewController: YHBaseViewController {
...
@@ -106,7 +106,7 @@ class YHDavidTestViewController: YHBaseViewController {
view
.
backgroundColor
=
.
white
view
.
backgroundColor
=
.
white
gk_navigationBar
.
isHidden
=
true
gk_navigationBar
.
isHidden
=
true
self
.
items
=
[
AboutAdvantageItem
(
iconName
:
"about_match"
,
title
:
"精准匹配"
,
detail
:
"大数据精准匹配,专属方案获批率更高"
)]
self
.
items
=
[
AboutAdvantageItem
(
iconName
:
"about_match"
,
title
:
"精准匹配"
,
detail
:
"大数据精准匹配,专属方案获批率更高"
)
,
AboutAdvantageItem
(
iconName
:
"about_match"
,
title
:
"精准匹配"
,
detail
:
"大数据精准匹配,专属方案获批率更高"
),
AboutAdvantageItem
(
iconName
:
"about_match"
,
title
:
"精准匹配"
,
detail
:
"大数据精准匹配,专属方案获批率更高"
),
AboutAdvantageItem
(
iconName
:
"about_match"
,
title
:
"精准匹配"
,
detail
:
"大数据精准匹配,专属方案获批率更高"
),
AboutAdvantageItem
(
iconName
:
"about_match"
,
title
:
"精准匹配"
,
detail
:
"大数据精准匹配,专属方案获批率更高"
),
AboutAdvantageItem
(
iconName
:
"about_match"
,
title
:
"精准匹配"
,
detail
:
"大数据精准匹配,专属方案获批率更高"
)
]
self
.
myCollectView
.
reloadData
()
self
.
myCollectView
.
reloadData
()
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeViewController.swift
View file @
5d8490f1
...
@@ -87,8 +87,8 @@ class YHHomeViewController: YHBaseViewController {
...
@@ -87,8 +87,8 @@ class YHHomeViewController: YHBaseViewController {
tableView
.
separatorStyle
=
.
none
tableView
.
separatorStyle
=
.
none
tableView
.
showsHorizontalScrollIndicator
=
false
tableView
.
showsHorizontalScrollIndicator
=
false
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
showsVerticalScrollIndicator
=
false
//
tableView.rowHeight = UITableView.automaticDimension
//
tableView.rowHeight = UITableView.automaticDimension
//
tableView.estimatedRowHeight = 100
//
tableView.estimatedRowHeight = 100
// tableView.register(YHHomeCustomCell.self, forCellReuseIdentifier: YHHomeCustomCell.cellReuseIdentifier)
// tableView.register(YHHomeCustomCell.self, forCellReuseIdentifier: YHHomeCustomCell.cellReuseIdentifier)
tableView
.
register
(
YHDavidCell0
.
self
,
forCellReuseIdentifier
:
YHDavidCell0
.
cellReuseIdentifier
)
tableView
.
register
(
YHDavidCell0
.
self
,
forCellReuseIdentifier
:
YHDavidCell0
.
cellReuseIdentifier
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YH
IntelligentService
ViewController.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YH
ServiceCenterMain
ViewController.swift
View file @
5d8490f1
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
//
//
import
UIKit
import
UIKit
import
SmartCodable
//
import SmartCodable
//服务中心
//服务中心
class
YH
IntelligentService
ViewController
:
YHBaseViewController
{
class
YH
ServiceCenterMain
ViewController
:
YHBaseViewController
{
private
lazy
var
topBkg
:
UIView
=
{
private
lazy
var
topBkg
:
UIView
=
{
let
imagV
=
UIImageView
()
let
imagV
=
UIImageView
()
...
@@ -33,12 +33,33 @@ class YHIntelligentServiceViewController: YHBaseViewController {
...
@@ -33,12 +33,33 @@ class YHIntelligentServiceViewController: YHBaseViewController {
return
view
return
view
}()
}()
var
homeTableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
tableView
.
backgroundColor
=
.
clear
tableView
.
separatorStyle
=
.
none
tableView
.
showsHorizontalScrollIndicator
=
false
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
rowHeight
=
UITableView
.
automaticDimension
tableView
.
estimatedRowHeight
=
81.0
tableView
.
register
(
YHContractCell
.
self
,
forCellReuseIdentifier
:
YHContractCell
.
cellReuseIdentifier
)
return
tableView
}()
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
initView
()
setupUI
()
}
}
func
initView
()
{
}
extension
YHServiceCenterMainViewController
{
func
setupUI
()
{
gk_navTitle
=
"服务中心"
gk_navTitle
=
"服务中心"
gk_navBarAlpha
=
1.0
gk_navBarAlpha
=
1.0
...
@@ -61,6 +82,85 @@ class YHIntelligentServiceViewController: YHBaseViewController {
...
@@ -61,6 +82,85 @@ class YHIntelligentServiceViewController: YHBaseViewController {
make
.
centerY
.
equalToSuperview
()
.
offset
(
-
64
)
make
.
centerY
.
equalToSuperview
()
.
offset
(
-
64
)
make
.
width
.
equalTo
(
KScreenWidth
)
make
.
width
.
equalTo
(
KScreenWidth
)
}
}
noDataView
.
isHidden
=
false
view
.
addSubview
(
homeTableView
)
homeTableView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
k_Height_NavigationtBarAndStatuBar
)
}
homeTableView
.
delegate
=
self
homeTableView
.
dataSource
=
self
}
}
// MARK: - UITableViewDelegate 和 UITableViewDataSource
extension
YHServiceCenterMainViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
2
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
1
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
16
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
16
))
return
view
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
return
0
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
}
// func tableView(_ tableView: UITableView, es indexPath: IndexPath) -> CGFloat {
// if indexPath.section == 0 {
// if indexPath.row == 0 {
// return 136
// } else if indexPath.row == 1 {
// return 194
// } else if indexPath.row == 2 {
// return 113
// } else if indexPath.row == 3 {
// return 138 + 15
// } else if indexPath.row == 4 {
// return YHDavidCell4.cellHeight
// } else if indexPath.row == 5 {
// return YHDavidCell5.cellHeight
// }
//
// return 100
// }
// return CGRectGetHeight(self.view.bounds)
// }
// func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
// return 81.0
// }
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHContractCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHContractCell
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
tableView
.
deselectRow
(
at
:
indexPath
,
animated
:
true
)
printLog
(
"点击了 tableView Cell
\(
indexPath
.
row
)
"
)
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHContractCell.swift
0 → 100644
View file @
5d8490f1
//
// YHContractCell.swift
// galaxy
//
// Created by davidhuangA on 2024/1/22.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHContractCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHContractCell"
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
setupUI
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
lazy
var
contractNameLable
=
{
let
lable
=
UILabel
()
lable
.
textColor
=
UIColor
(
red
:
0.133
,
green
:
0.133
,
blue
:
0.133
,
alpha
:
1
)
lable
.
font
=
kFont
(
name
:
"PingFangSC-Medium"
,
size
:
17
)
lable
.
text
=
"香港优秀人才计划-张先生"
return
lable
}()
lazy
var
contractIdLable
=
{
let
lable
=
UILabel
()
lable
.
font
=
kFont
(
name
:
"PingFangSC-Medium"
,
size
:
17
)
lable
.
text
=
"订单号:10936"
lable
.
textColor
=
UIColor
(
red
:
0.533
,
green
:
0.561
,
blue
:
0.596
,
alpha
:
1
)
lable
.
font
=
kFont
(
name
:
"PingFangSC-Regular"
,
size
:
12
)
return
lable
}()
}
extension
YHContractCell
{
func
setupUI
()
{
let
holdView
=
UIView
()
holdView
.
backgroundColor
=
.
white
holdView
.
layer
.
cornerRadius
=
12
holdView
.
clipsToBounds
=
true
backgroundColor
=
.
clear
contentView
.
backgroundColor
=
.
clear
contentView
.
addSubview
(
holdView
)
holdView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
bottom
.
equalToSuperview
()
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
}
let
nextImgV
=
UIImageView
()
nextImgV
.
image
=
UIImage
(
named
:
"service_center_right_next_icon"
)
nextImgV
.
contentMode
=
.
scaleAspectFill
holdView
.
addSubview
(
nextImgV
)
nextImgV
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalToSuperview
()
make
.
right
.
equalTo
(
-
16
)
make
.
width
.
height
.
equalTo
(
16
)
}
holdView
.
addSubview
(
contractNameLable
)
contractNameLable
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
16
)
make
.
left
.
equalTo
(
21
)
make
.
right
.
equalTo
(
nextImgV
.
snp
.
left
)
.
offset
(
-
10
)
make
.
height
.
equalTo
(
24
)
}
holdView
.
addSubview
(
contractIdLable
)
contractIdLable
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
contractNameLable
.
snp
.
bottom
)
.
offset
(
4
)
make
.
left
.
equalTo
(
contractNameLable
)
make
.
right
.
equalTo
(
contractNameLable
)
make
.
height
.
equalTo
(
20
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
}
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_center_right_next_icon.imageset/Contents.json
0 → 100644
View file @
5d8490f1
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"icon-展开@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"icon-展开@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_center_right_next_icon.imageset/icon-展开@2x.png
0 → 100644
View file @
5d8490f1
640 Bytes
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/主入口/service_center_right_next_icon.imageset/icon-展开@3x.png
0 → 100644
View file @
5d8490f1
931 Bytes
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