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
8f195f4b
Commit
8f195f4b
authored
May 16, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 空视图UI
parent
bf4727f2
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
195 additions
and
0 deletions
+195
-0
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHEmptyDataView.swift
galaxy/galaxy/Classes/Base/V/YHEmptyDataView.swift
+98
-0
Contents.json
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/Contents.json
+6
-0
Contents.json
...sets/EmptyDataBg/no_data_bg_common.imageset/Contents.json
+22
-0
暂无@2x.png
...xcassets/EmptyDataBg/no_data_bg_common.imageset/暂无@2x.png
+0
-0
暂无@3x.png
...xcassets/EmptyDataBg/no_data_bg_common.imageset/暂无@3x.png
+0
-0
Contents.json
...cassets/EmptyDataBg/no_data_bg_msg.imageset/Contents.json
+22
-0
暂无消息@2x.png
....xcassets/EmptyDataBg/no_data_bg_msg.imageset/暂无消息@2x.png
+0
-0
暂无消息@3x.png
....xcassets/EmptyDataBg/no_data_bg_msg.imageset/暂无消息@3x.png
+0
-0
Contents.json
...ssets/EmptyDataBg/no_data_bg_order.imageset/Contents.json
+21
-0
您还没有相关订单@3x.png
...ets/EmptyDataBg/no_data_bg_order.imageset/您还没有相关订单@3x.png
+0
-0
Contents.json
...sets/EmptyDataBg/no_data_bg_search.imageset/Contents.json
+22
-0
无搜索结果@2x.png
...ssets/EmptyDataBg/no_data_bg_search.imageset/无搜索结果@2x.png
+0
-0
无搜索结果@3x.png
...ssets/EmptyDataBg/no_data_bg_search.imageset/无搜索结果@3x.png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
8f195f4b
...
@@ -259,6 +259,7 @@
...
@@ -259,6 +259,7 @@
04A7BD172BA43A0F00BD35A2
/* YHMyDocumentsDetailViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A7BD162BA43A0F00BD35A2
/* YHMyDocumentsDetailViewModel.swift */
;
};
04A7BD172BA43A0F00BD35A2
/* YHMyDocumentsDetailViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A7BD162BA43A0F00BD35A2
/* YHMyDocumentsDetailViewModel.swift */
;
};
04A7BD192BA441D400BD35A2
/* YHMyDocumentsUrlModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A7BD182BA441D400BD35A2
/* YHMyDocumentsUrlModel.swift */
;
};
04A7BD192BA441D400BD35A2
/* YHMyDocumentsUrlModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A7BD182BA441D400BD35A2
/* YHMyDocumentsUrlModel.swift */
;
};
04AA19FD2BB40D5C00C1CBBD
/* Applegate(JPush).swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AA19FC2BB40D5C00C1CBBD
/* Applegate(JPush).swift */
;
};
04AA19FD2BB40D5C00C1CBBD
/* Applegate(JPush).swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AA19FC2BB40D5C00C1CBBD
/* Applegate(JPush).swift */
;
};
04AAA8DC2BF5E5A200FE9FD5
/* YHEmptyDataView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AAA8DB2BF5E5A200FE9FD5
/* YHEmptyDataView.swift */
;
};
04AF514E2BEB585C00009E3A
/* YHVideoPlayerVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AF514D2BEB585C00009E3A
/* YHVideoPlayerVC.swift */
;
};
04AF514E2BEB585C00009E3A
/* YHVideoPlayerVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AF514D2BEB585C00009E3A
/* YHVideoPlayerVC.swift */
;
};
04AF58C42B4FC51C0066011A
/* YHLocalizable.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AF58C32B4FC51C0066011A
/* YHLocalizable.swift */
;
};
04AF58C42B4FC51C0066011A
/* YHLocalizable.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04AF58C32B4FC51C0066011A
/* YHLocalizable.swift */
;
};
04C693622B723AB8004C1758
/* YHMySettingViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
;
};
04C693622B723AB8004C1758
/* YHMySettingViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
;
};
...
@@ -714,6 +715,7 @@
...
@@ -714,6 +715,7 @@
04A7BD162BA43A0F00BD35A2
/* YHMyDocumentsDetailViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyDocumentsDetailViewModel.swift
;
sourceTree
=
"<group>"
;
};
04A7BD162BA43A0F00BD35A2
/* YHMyDocumentsDetailViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyDocumentsDetailViewModel.swift
;
sourceTree
=
"<group>"
;
};
04A7BD182BA441D400BD35A2
/* YHMyDocumentsUrlModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyDocumentsUrlModel.swift
;
sourceTree
=
"<group>"
;
};
04A7BD182BA441D400BD35A2
/* YHMyDocumentsUrlModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyDocumentsUrlModel.swift
;
sourceTree
=
"<group>"
;
};
04AA19FC2BB40D5C00C1CBBD
/* Applegate(JPush).swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"Applegate(JPush).swift"
;
sourceTree
=
"<group>"
;
};
04AA19FC2BB40D5C00C1CBBD
/* Applegate(JPush).swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"Applegate(JPush).swift"
;
sourceTree
=
"<group>"
;
};
04AAA8DB2BF5E5A200FE9FD5
/* YHEmptyDataView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHEmptyDataView.swift
;
sourceTree
=
"<group>"
;
};
04AF514D2BEB585C00009E3A
/* YHVideoPlayerVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVideoPlayerVC.swift
;
sourceTree
=
"<group>"
;
};
04AF514D2BEB585C00009E3A
/* YHVideoPlayerVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVideoPlayerVC.swift
;
sourceTree
=
"<group>"
;
};
04AF58C32B4FC51C0066011A
/* YHLocalizable.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLocalizable.swift
;
sourceTree
=
"<group>"
;
};
04AF58C32B4FC51C0066011A
/* YHLocalizable.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLocalizable.swift
;
sourceTree
=
"<group>"
;
};
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMySettingViewController.swift
;
sourceTree
=
"<group>"
;
};
04C693612B723AB8004C1758
/* YHMySettingViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMySettingViewController.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -2309,6 +2311,7 @@
...
@@ -2309,6 +2311,7 @@
A5ACE9252B4564F7002C94D2
/* YHBasicContentView.swift */
,
A5ACE9252B4564F7002C94D2
/* YHBasicContentView.swift */
,
A5ACE9262B4564F7002C94D2
/* YHNoDataTipView.swift */
,
A5ACE9262B4564F7002C94D2
/* YHNoDataTipView.swift */
,
04A7BC902B6B7B89000E8D47
/* YHTwoOptionAlertView.swift */
,
04A7BC902B6B7B89000E8D47
/* YHTwoOptionAlertView.swift */
,
04AAA8DB2BF5E5A200FE9FD5
/* YHEmptyDataView.swift */
,
);
);
path
=
V
;
path
=
V
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -2890,6 +2893,7 @@
...
@@ -2890,6 +2893,7 @@
04E86E0D2B70D51D00A35F4B
/* YHWebViewViewController.swift in Sources */
,
04E86E0D2B70D51D00A35F4B
/* YHWebViewViewController.swift in Sources */
,
A5EF21312BA6DF94005027E6
/* YHMineSchemeViewController.swift in Sources */
,
A5EF21312BA6DF94005027E6
/* YHMineSchemeViewController.swift in Sources */
,
045EEE872B9F171A0022A143
/* YHPreviewControllerHoldViewController.swift in Sources */
,
045EEE872B9F171A0022A143
/* YHPreviewControllerHoldViewController.swift in Sources */
,
04AAA8DC2BF5E5A200FE9FD5
/* YHEmptyDataView.swift in Sources */
,
045EEF172B9F171A0022A143
/* YHSelectCountryViewController.swift in Sources */
,
045EEF172B9F171A0022A143
/* YHSelectCountryViewController.swift in Sources */
,
044CF8D62BBA57DC00008CE8
/* YHFailPromptView.swift in Sources */
,
044CF8D62BBA57DC00008CE8
/* YHFailPromptView.swift in Sources */
,
A5ACE9562B4564F7002C94D2
/* YHBouncesContentView.swift in Sources */
,
A5ACE9562B4564F7002C94D2
/* YHBouncesContentView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Base/V/YHEmptyDataView.swift
0 → 100644
View file @
8f195f4b
//
// YHEmptyDataView.swift
// galaxy
//
// Created by edy on 2024/5/16.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
// 通用空视图
let
kEmptyCommonBgName
=
"no_data_bg_common"
// 搜索空视图
let
kEmptySearchBgSName
=
"no_data_bg_search"
// 消息空视图
let
kEmptyMessageBgSName
=
"no_data_bg_msg"
// 订单空视图
let
kEmptyOrderBgName
=
"no_data_bg_order"
class
YHEmptyDataView
:
UIView
{
// 组件视图总高度
static
let
fixHeight
=
imgHeight
+
tipsHeight
+
gap
static
let
imgHeight
=
128.0
static
let
tipsHeight
=
20.0
static
let
gap
=
16.0
var
bgName
:
String
=
kEmptyCommonBgName
{
didSet
{
emptyBgImgV
.
image
=
UIImage
(
named
:
bgName
)
}
}
var
tips
:
String
=
"暂无内容"
{
didSet
{
tipsLabel
.
text
=
tips
}
}
var
topMargin
:
Double
=
0.0
{
didSet
{
emptyBgImgV
.
snp
.
updateConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
topMargin
)
}
self
.
setNeedsLayout
()
self
.
layoutIfNeeded
()
}
}
var
emptyBgImgV
:
UIImageView
=
{
let
imgView
=
UIImageView
(
image
:
UIImage
(
named
:
kEmptyCommonBgName
))
return
imgView
}()
var
tipsLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
init
(
hex
:
0x121A26
,
alpha
:
0.5
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
textAlignment
=
.
center
label
.
text
=
"暂无内容"
.
local
return
label
}()
static
func
createView
(
_
tips
:
String
=
"暂无内容"
,
_
bgName
:
String
=
kEmptyCommonBgName
)
->
YHEmptyDataView
{
let
view
=
YHEmptyDataView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
self
.
fixHeight
))
view
.
bgName
=
bgName
view
.
tips
=
tips
return
view
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
createUI
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
createUI
()
{
self
.
addSubview
(
emptyBgImgV
)
self
.
addSubview
(
tipsLabel
)
emptyBgImgV
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
0
)
make
.
width
.
height
.
equalTo
(
Self
.
imgHeight
)
make
.
centerX
.
equalTo
(
self
)
}
tipsLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
emptyBgImgV
.
snp
.
bottom
)
.
offset
(
Self
.
gap
)
make
.
height
.
equalTo
(
Self
.
tipsHeight
)
make
.
centerX
.
equalTo
(
self
)
}
}
}
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/Contents.json
0 → 100644
View file @
8f195f4b
{
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/no_data_bg_common.imageset/Contents.json
0 → 100644
View file @
8f195f4b
{
"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/EmptyDataBg/no_data_bg_common.imageset/暂无@2x.png
0 → 100644
View file @
8f195f4b
5.42 KB
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/no_data_bg_common.imageset/暂无@3x.png
0 → 100644
View file @
8f195f4b
7.78 KB
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/no_data_bg_msg.imageset/Contents.json
0 → 100644
View file @
8f195f4b
{
"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/EmptyDataBg/no_data_bg_msg.imageset/暂无消息@2x.png
0 → 100644
View file @
8f195f4b
6.93 KB
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/no_data_bg_msg.imageset/暂无消息@3x.png
0 → 100644
View file @
8f195f4b
10.4 KB
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/no_data_bg_order.imageset/Contents.json
0 → 100644
View file @
8f195f4b
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"您还没有相关订单@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/no_data_bg_order.imageset/您还没有相关订单@3x.png
0 → 100644
View file @
8f195f4b
11 KB
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/no_data_bg_search.imageset/Contents.json
0 → 100644
View file @
8f195f4b
{
"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/EmptyDataBg/no_data_bg_search.imageset/无搜索结果@2x.png
0 → 100644
View file @
8f195f4b
6.56 KB
galaxy/galaxy/Res/Assets.xcassets/EmptyDataBg/no_data_bg_search.imageset/无搜索结果@3x.png
0 → 100644
View file @
8f195f4b
9.55 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