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
51610219
Commit
51610219
authored
Jun 06, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 文件清单空视图逻辑
parent
b3ebefaf
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
138 additions
and
1 deletion
+138
-1
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHFileListViewController.swift
...ice(服务中心)/FileList(文件清单)/C/YHFileListViewController.swift
+30
-1
YHFileListContentView.swift
...ervice(服务中心)/FileList(文件清单)/V/YHFileListContentView.swift
+3
-0
YHFileListEmptyView.swift
...tService(服务中心)/FileList(文件清单)/V/YHFileListEmptyView.swift
+79
-0
Contents.json
...eCenter/我的证书/my_cer_filelist_empty.imageset/Contents.json
+22
-0
您还没有相关订单@2x.png
...enter/我的证书/my_cer_filelist_empty.imageset/您还没有相关订单@2x.png
+0
-0
您还没有相关订单@3x.png
...enter/我的证书/my_cer_filelist_empty.imageset/您还没有相关订单@3x.png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
51610219
...
...
@@ -8,6 +8,7 @@
/* Begin PBXBuildFile section */
0408C3632BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0408C3622BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift */
;
};
041390692C1081FA0098CB8A
/* YHFileListEmptyView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041390682C1081FA0098CB8A
/* YHFileListEmptyView.swift */
;
};
0414BDA92BC7E81500225367
/* YHMyPermissionSettingVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414BDA82BC7E81500225367
/* YHMyPermissionSettingVC.swift */
;
};
0414BDAB2BC7E9C200225367
/* YHMyPermissionCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414BDAA2BC7E9C200225367
/* YHMyPermissionCell.swift */
;
};
0414BDAD2BC7F02C00225367
/* YHMyNotifySettingVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414BDAC2BC7F02C00225367
/* YHMyNotifySettingVC.swift */
;
};
...
...
@@ -482,6 +483,7 @@
/* Begin PBXFileReference section */
0408C3622BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVideoPlayerControlView.swift
;
sourceTree
=
"<group>"
;
};
041390682C1081FA0098CB8A
/* YHFileListEmptyView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFileListEmptyView.swift
;
sourceTree
=
"<group>"
;
};
0414BDA82BC7E81500225367
/* YHMyPermissionSettingVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyPermissionSettingVC.swift
;
sourceTree
=
"<group>"
;
};
0414BDAA2BC7E9C200225367
/* YHMyPermissionCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyPermissionCell.swift
;
sourceTree
=
"<group>"
;
};
0414BDAC2BC7F02C00225367
/* YHMyNotifySettingVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyNotifySettingVC.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -2471,6 +2473,7 @@
A58AC0A02BAC0B2900A30FA9
/* YHFileListItemView.swift */
,
A58AC09E2BAC05BA00A30FA9
/* YHFileListItemsView.swift */
,
A53B61112BB128AF0010B573
/* YHFileListItemsView2.swift */
,
041390682C1081FA0098CB8A
/* YHFileListEmptyView.swift */
,
);
path
=
V
;
sourceTree
=
"<group>"
;
...
...
@@ -3042,6 +3045,7 @@
045EEEAD2B9F171A0022A143
/* YHWorkExperienceListTableViewCell.swift in Sources */
,
049A48A82B49417300D0C641
/* YHAboutUsViewController.swift in Sources */
,
047619E92BA9867100F45358
/* YHCountryHotView.swift in Sources */
,
041390692C1081FA0098CB8A
/* YHFileListEmptyView.swift in Sources */
,
045EEEF82B9F171A0022A143
/* YHFormItemOnlyDoubleChoiceCell.swift in Sources */
,
0480976D2BA158A1000B9DCA
/* YHCertificateListVC.swift in Sources */
,
045EEE8B2B9F171A0022A143
/* YHPreviewMainApplicantInfoViewController.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/C/YHFileListViewController.swift
View file @
51610219
...
...
@@ -24,6 +24,18 @@ class YHFileListViewController: YHBaseViewController {
return
view
}()
private
lazy
var
emptyView
:
YHFileListEmptyView
=
{
let
view
=
YHFileListEmptyView
()
view
.
isHidden
=
true
view
.
bottomBtnClick
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
self
.
navigationController
?
.
popToRootViewController
(
animated
:
true
)
goTabBarBy
(
tabType
:
.
service
)
}
return
view
}()
private
lazy
var
myScrollView
:
UIScrollView
=
{
let
view
=
UIScrollView
()
view
.
backgroundColor
=
.
white
...
...
@@ -90,9 +102,20 @@ extension YHFileListViewController {
certificateReqVM
.
getCertificateFileListData
(
params
:
param
)
{
success
,
error
in
if
success
==
true
{
self
.
myContentView
.
dataModel
=
self
.
certificateReqVM
.
arrFileListData
self
.
myContentView
.
layoutIfNeeded
()
//
var
isHaveData
=
false
for
(
_
,
item
)
in
self
.
certificateReqVM
.
arrFileListData
.
enumerated
()
{
let
arr
=
item
?
.
supplement_list
.
filter
{
(
item
)
->
Bool
in
return
item
.
checkStatus
==
2
||
item
.
checkStatus
==
3
}
if
let
array
=
arr
,
array
.
count
>
0
{
isHaveData
=
true
}
}
self
.
emptyView
.
isHidden
=
isHaveData
let
r
=
self
.
myContentView
.
bounds
self
.
myContentView
.
frame
=
CGRect
(
x
:
kMargin
,
y
:
217
,
width
:
KScreenWidth
-
2*
kMargin
,
height
:
r
.
height
)
...
...
@@ -173,6 +196,12 @@ extension YHFileListViewController {
}
myScrollView
.
addSubview
(
footLable
)
view
.
addSubview
(
emptyView
)
emptyView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
k_Height_NavigationtBarAndStatuBar
)
}
}
func
captureScrollView
(
scrollView
:
UIScrollView
)
->
UIImage
?
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/V/YHFileListContentView.swift
View file @
51610219
...
...
@@ -74,6 +74,9 @@ extension YHFileListContentView {
var
lastView
:
UIView
?
for
(
index
,
item
)
in
arrData
.
enumerated
()
{
if
let
iii
=
item
{
if
iii
.
type
==
0
,
iii
.
supplement_list
.
count
<=
0
{
continue
}
var
view
:
UIView
=
YHFileListItemsView
()
if
view
is
YHFileListItemsView
{
let
targetView
=
view
as!
YHFileListItemsView
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/V/YHFileListEmptyView.swift
0 → 100644
View file @
51610219
//
// YHFileListEmptyView.swift
// galaxy
//
// Created by edy on 2024/6/5.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHFileListEmptyView
:
UIView
{
var
bottomBtnClick
:(()
->
())?
var
emptyBgImgV
:
UIImageView
=
{
let
imgView
=
UIImageView
(
image
:
UIImage
(
named
:
"my_cer_filelist_empty"
))
return
imgView
}()
lazy
var
tipsLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
mainTextColor
label
.
font
=
.
PFSC_M
(
ofSize
:
14
)
label
.
textAlignment
=
.
center
label
.
text
=
"恭喜您已完成所有证件的上传"
.
local
return
label
}()
lazy
var
bottomBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
backgroundColor
=
.
brandMainColor
btn
.
setTitle
(
"返回服务主页"
,
for
:
.
normal
)
btn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
13
)
btn
.
layer
.
cornerRadius
=
kCornerRadius3
btn
.
addTarget
(
self
,
action
:
#selector(
didBottomBtnClicked
)
,
for
:
.
touchUpInside
)
return
btn
}()
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
createUI
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
@objc
func
didBottomBtnClicked
()
{
bottomBtnClick
?()
}
func
createUI
()
{
self
.
backgroundColor
=
.
white
self
.
addSubview
(
emptyBgImgV
)
self
.
addSubview
(
tipsLabel
)
self
.
addSubview
(
bottomBtn
)
emptyBgImgV
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
148
)
make
.
width
.
height
.
equalTo
(
128.0
)
make
.
centerX
.
equalTo
(
self
)
}
tipsLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
emptyBgImgV
.
snp
.
bottom
)
.
offset
(
12
)
make
.
height
.
equalTo
(
20
)
make
.
centerX
.
equalTo
(
self
)
}
bottomBtn
.
snp
.
makeConstraints
{
make
in
make
.
width
.
equalTo
(
110
)
make
.
height
.
equalTo
(
38
)
make
.
top
.
equalTo
(
tipsLabel
.
snp
.
bottom
)
.
offset
(
22
)
make
.
centerX
.
equalTo
(
self
)
}
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的证书/my_cer_filelist_empty.imageset/Contents.json
0 → 100644
View file @
51610219
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"您还没有相关订单@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"您还没有相关订单@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的证书/my_cer_filelist_empty.imageset/您还没有相关订单@2x.png
0 → 100644
View file @
51610219
5.41 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的证书/my_cer_filelist_empty.imageset/您还没有相关订单@3x.png
0 → 100644
View file @
51610219
8.06 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment