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
805f0de2
Commit
805f0de2
authored
Dec 02, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播状态控制器相关内容
parent
b593bc69
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
226 additions
and
4 deletions
+226
-4
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHServiceCenterViewController.swift
...ligentService(服务中心)/C/YHServiceCenterViewController.swift
+0
-4
YHLiveStateViewController.swift
...s/LivestreamSales(直播销售)/C/YHLiveStateViewController.swift
+178
-0
Contents.json
...sets.xcassets/YinHeLive/live_close.imageset/Contents.json
+22
-0
live_close@2x.png
....xcassets/YinHeLive/live_close.imageset/live_close@2x.png
+0
-0
live_close@3x.png
....xcassets/YinHeLive/live_close.imageset/live_close@3x.png
+0
-0
Contents.json
...sets.xcassets/YinHeLive/live_share.imageset/Contents.json
+22
-0
live_share@2x.png
....xcassets/YinHeLive/live_share.imageset/live_share@2x.png
+0
-0
live_share@3x.png
....xcassets/YinHeLive/live_share.imageset/live_share@3x.png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
805f0de2
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
04013E3E2CF87F3A001A8E40
/* zhibo.json in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E3D2CF87F3A001A8E40
/* zhibo.json */
;
};
04013E3E2CF87F3A001A8E40
/* zhibo.json in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E3D2CF87F3A001A8E40
/* zhibo.json */
;
};
04013E402CF99505001A8E40
/* live.json in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E3F2CF99505001A8E40
/* live.json */
;
};
04013E402CF99505001A8E40
/* live.json in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E3F2CF99505001A8E40
/* live.json */
;
};
04013E422CFADF6B001A8E40
/* YHShareAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E412CFADF6B001A8E40
/* YHShareAlertView.swift */
;
};
04013E422CFADF6B001A8E40
/* YHShareAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E412CFADF6B001A8E40
/* YHShareAlertView.swift */
;
};
04013E442CFD7F66001A8E40
/* YHLiveStateViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E432CFD7F66001A8E40
/* YHLiveStateViewController.swift */
;
};
040450CF2CC8A0F400D1CFE5
/* YHResignDocumentMultiLineTipsCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
040450CE2CC8A0F400D1CFE5
/* YHResignDocumentMultiLineTipsCell.swift */
;
};
040450CF2CC8A0F400D1CFE5
/* YHResignDocumentMultiLineTipsCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
040450CE2CC8A0F400D1CFE5
/* YHResignDocumentMultiLineTipsCell.swift */
;
};
0408C3632BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0408C3622BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift */
;
};
0408C3632BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0408C3622BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift */
;
};
0409BEEB2C5B41D4003FCFD7
/* YHPrincipleProfileListCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0409BEEA2C5B41D4003FCFD7
/* YHPrincipleProfileListCell.swift */
;
};
0409BEEB2C5B41D4003FCFD7
/* YHPrincipleProfileListCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0409BEEA2C5B41D4003FCFD7
/* YHPrincipleProfileListCell.swift */
;
};
...
@@ -1085,6 +1086,7 @@
...
@@ -1085,6 +1086,7 @@
04013E3D2CF87F3A001A8E40
/* zhibo.json */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.json
;
path
=
zhibo.json
;
sourceTree
=
"<group>"
;
};
04013E3D2CF87F3A001A8E40
/* zhibo.json */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.json
;
path
=
zhibo.json
;
sourceTree
=
"<group>"
;
};
04013E3F2CF99505001A8E40
/* live.json */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.json
;
path
=
live.json
;
sourceTree
=
"<group>"
;
};
04013E3F2CF99505001A8E40
/* live.json */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.json
;
path
=
live.json
;
sourceTree
=
"<group>"
;
};
04013E412CFADF6B001A8E40
/* YHShareAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHShareAlertView.swift
;
sourceTree
=
"<group>"
;
};
04013E412CFADF6B001A8E40
/* YHShareAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHShareAlertView.swift
;
sourceTree
=
"<group>"
;
};
04013E432CFD7F66001A8E40
/* YHLiveStateViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLiveStateViewController.swift
;
sourceTree
=
"<group>"
;
};
040450CE2CC8A0F400D1CFE5
/* YHResignDocumentMultiLineTipsCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignDocumentMultiLineTipsCell.swift
;
sourceTree
=
"<group>"
;
};
040450CE2CC8A0F400D1CFE5
/* YHResignDocumentMultiLineTipsCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignDocumentMultiLineTipsCell.swift
;
sourceTree
=
"<group>"
;
};
0408C3622BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVideoPlayerControlView.swift
;
sourceTree
=
"<group>"
;
};
0408C3622BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVideoPlayerControlView.swift
;
sourceTree
=
"<group>"
;
};
0409BEEA2C5B41D4003FCFD7
/* YHPrincipleProfileListCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleProfileListCell.swift
;
sourceTree
=
"<group>"
;
};
0409BEEA2C5B41D4003FCFD7
/* YHPrincipleProfileListCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleProfileListCell.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -2981,6 +2983,7 @@
...
@@ -2981,6 +2983,7 @@
04564D7B2CF8CF6D004456E4
/* YHPlayer.swift */
,
04564D7B2CF8CF6D004456E4
/* YHPlayer.swift */
,
04564D602CF59835004456E4
/* YHMessageInputViewController.swift */
,
04564D602CF59835004456E4
/* YHMessageInputViewController.swift */
,
0413A9AC2CFB086A00304BC6
/* YHSimpleAudienceVC.swift */
,
0413A9AC2CFB086A00304BC6
/* YHSimpleAudienceVC.swift */
,
04013E432CFD7F66001A8E40
/* YHLiveStateViewController.swift */
,
);
);
path
=
C
;
path
=
C
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -6833,6 +6836,7 @@
...
@@ -6833,6 +6836,7 @@
04B401F42CEB1C51005C61A9
/* YHIncomeCompanyDetailModel.swift in Sources */
,
04B401F42CEB1C51005C61A9
/* YHIncomeCompanyDetailModel.swift in Sources */
,
04564D7E2CF8D03D004456E4
/* YHFloatingWindow.swift in Sources */
,
04564D7E2CF8D03D004456E4
/* YHFloatingWindow.swift in Sources */
,
044BACC72BCFA58E00184C64
/* YHNoDataTipsView.swift in Sources */
,
044BACC72BCFA58E00184C64
/* YHNoDataTipsView.swift in Sources */
,
04013E442CFD7F66001A8E40
/* YHLiveStateViewController.swift in Sources */
,
04D5C5662B8ED92600190021
/* YHBaseModel.swift in Sources */
,
04D5C5662B8ED92600190021
/* YHBaseModel.swift in Sources */
,
A5F8AC082B9F414000A21EFA
/* YHCustomTextView.swift in Sources */
,
A5F8AC082B9F414000A21EFA
/* YHCustomTextView.swift in Sources */
,
04912F882CB8FF3000CC3105
/* YHResignAppointedScheduleSingleItemView.swift in Sources */
,
04912F882CB8FF3000CC3105
/* YHResignAppointedScheduleSingleItemView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceCenterViewController.swift
View file @
805f0de2
...
@@ -238,10 +238,6 @@ extension YHServiceCenterViewController {
...
@@ -238,10 +238,6 @@ extension YHServiceCenterViewController {
}
}
@objc
func
pushOrderView
()
{
@objc
func
pushOrderView
()
{
// let vc = YHResignUploadTravelHKViewController()
// self.navigationController?.pushViewController(vc)
//
// return
var
flag
=
true
var
flag
=
true
if
self
.
state
==
1
||
self
.
state
==
3
{
if
self
.
state
==
1
||
self
.
state
==
3
{
flag
=
false
flag
=
false
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHLiveStateViewController.swift
0 → 100644
View file @
805f0de2
//
// YHLiveStateViewController.swift
// galaxy
//
// Created by EDY on 2024/12/2.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
enum
YHLiveState
:
Int
{
case
start
=
0
case
stop
=
1
case
end
=
2
}
class
YHLiveStateViewController
:
YHBaseViewController
{
var
closeButton
:
UIButton
!
var
shareButton
:
UIButton
!
var
logImageView
:
UIImageView
!
var
loginTitleLabel
:
UILabel
!
var
loginSubTitleLabel
:
UILabel
!
var
messageLabel
:
UILabel
!
var
getCodeButton
:
UIButton
!
var
state
:
YHLiveState
=
.
start
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
setView
()
updateData
(
state
)
}
func
setView
()
{
view
.
backgroundColor
=
UIColor
(
hex
:
0x000000
,
alpha
:
0.6
)
closeButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
setImage
(
UIImage
(
named
:
"live_close"
),
for
:
.
normal
)
button
.
addTarget
(
self
,
action
:
#selector(
close
)
,
for
:
.
touchUpInside
)
return
button
}()
view
.
addSubview
(
closeButton
)
closeButton
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
10
)
make
.
top
.
equalTo
(
10
+
k_Height_statusBar
())
make
.
width
.
height
.
equalTo
(
24
)
}
shareButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
setImage
(
UIImage
(
named
:
"live_share"
),
for
:
.
normal
)
button
.
addTarget
(
self
,
action
:
#selector(
close
)
,
for
:
.
touchUpInside
)
return
button
}()
view
.
addSubview
(
shareButton
)
shareButton
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
56
)
make
.
top
.
equalTo
(
10
+
k_Height_statusBar
())
make
.
width
.
height
.
equalTo
(
24
)
}
logImageView
=
{
let
view
=
UIImageView
()
view
.
layer
.
cornerRadius
=
39
view
.
backgroundColor
=
.
red
return
view
}()
view
.
addSubview
(
logImageView
)
logImageView
.
snp
.
makeConstraints
{
make
in
make
.
centerX
.
equalToSuperview
()
make
.
top
.
equalTo
(
196
)
make
.
width
.
height
.
equalTo
(
78
)
}
loginTitleLabel
=
{
let
label
=
UILabel
()
label
.
text
=
"优才E老师"
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
label
.
textColor
=
UIColor
.
white
label
.
textAlignment
=
.
center
return
label
}()
view
.
addSubview
(
loginTitleLabel
)
loginTitleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
logImageView
.
snp
.
bottom
)
.
offset
(
16
)
make
.
height
.
equalTo
(
20
)
}
let
lineView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
.
withAlphaComponent
(
0.24
)
return
view
}()
view
.
addSubview
(
lineView
)
lineView
.
snp
.
makeConstraints
{
make
in
make
.
centerX
.
equalToSuperview
()
make
.
top
.
equalTo
(
loginTitleLabel
.
snp
.
bottom
)
.
offset
(
23
)
make
.
height
.
equalTo
(
1
)
make
.
width
.
equalTo
(
186
)
}
loginSubTitleLabel
=
{
let
label
=
UILabel
()
label
.
text
=
"直播暂未开始"
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
17
)
label
.
textColor
=
UIColor
.
white
label
.
textAlignment
=
.
center
return
label
}()
view
.
addSubview
(
loginSubTitleLabel
)
loginSubTitleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
32
)
make
.
height
.
equalTo
(
20
)
}
messageLabel
=
{
let
label
=
UILabel
()
label
.
text
=
"预计6月28日18:00开始~"
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
textColor
=
UIColor
.
white
.
withAlphaComponent
(
0.8
)
label
.
textAlignment
=
.
center
return
label
}()
view
.
addSubview
(
messageLabel
)
messageLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
loginSubTitleLabel
.
snp
.
bottom
)
.
offset
(
8
)
make
.
height
.
equalTo
(
20
)
}
getCodeButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"返回首页"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
layer
.
borderWidth
=
1
button
.
layer
.
borderColor
=
UIColor
.
white
.
cgColor
button
.
addTarget
(
self
,
action
:
#selector(
backHome
)
,
for
:
.
touchUpInside
)
return
button
}()
view
.
addSubview
(
getCodeButton
)
getCodeButton
.
snp
.
makeConstraints
{
make
in
make
.
centerX
.
equalToSuperview
()
make
.
width
.
equalTo
(
92
)
make
.
top
.
equalTo
(
messageLabel
.
snp
.
bottom
)
.
offset
(
32
)
make
.
height
.
equalTo
(
40
)
}
}
@objc
func
close
()
{
dismiss
(
animated
:
true
)
}
func
updateData
(
_
type
:
YHLiveState
)
{
switch
type
{
case
.
start
:
loginSubTitleLabel
.
text
=
"直播暂未开始"
messageLabel
.
text
=
"预计6月28日18:00开始~"
getCodeButton
.
isHidden
=
true
case
.
stop
:
loginSubTitleLabel
.
text
=
"主播离开了"
messageLabel
.
text
=
"主播暂时离开,请稍等片刻~"
getCodeButton
.
isHidden
=
true
case
.
end
:
loginSubTitleLabel
.
text
=
"直播已结束"
messageLabel
.
text
=
"直播已结束,去首页逛逛吧~"
getCodeButton
.
isHidden
=
false
}
}
@objc
func
backHome
()
{
}
}
galaxy/galaxy/Res/Assets.xcassets/YinHeLive/live_close.imageset/Contents.json
0 → 100644
View file @
805f0de2
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"live_close@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"live_close@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/YinHeLive/live_close.imageset/live_close@2x.png
0 → 100644
View file @
805f0de2
341 Bytes
galaxy/galaxy/Res/Assets.xcassets/YinHeLive/live_close.imageset/live_close@3x.png
0 → 100644
View file @
805f0de2
448 Bytes
galaxy/galaxy/Res/Assets.xcassets/YinHeLive/live_share.imageset/Contents.json
0 → 100644
View file @
805f0de2
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"live_share@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"live_share@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/YinHeLive/live_share.imageset/live_share@2x.png
0 → 100644
View file @
805f0de2
543 Bytes
galaxy/galaxy/Res/Assets.xcassets/YinHeLive/live_share.imageset/live_share@3x.png
0 → 100644
View file @
805f0de2
764 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