Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
299de975
Commit
299de975
authored
Dec 30, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充图片
parent
b8d42b88
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
+12
-5
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/AlertView/GLTimeSelectView.swift
GeliBusinessPlatform/View/AlertView/GLTimeSelectView.swift
+6
-0
GeliBusinessPlatform/View/TimeSelectView/DIYCalendarCell.swift
...usinessPlatform/View/TimeSelectView/DIYCalendarCell.swift
+0
-1
GeliBusinessPlatform/ViewController/分销收益页/FXSY_ViewController.swift
...ssPlatform/ViewController/分销收益页/FXSY_ViewController.swift
+4
-2
GeliBusinessPlatform/ViewController/分销收益页/FXSY_ViewController.xib
...nessPlatform/ViewController/分销收益页/FXSY_ViewController.xib
+2
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
299de975
No preview for this file type
GeliBusinessPlatform/View/AlertView/GLTimeSelectView.swift
View file @
299de975
...
...
@@ -12,6 +12,7 @@ import LGButton
protocol
GLTimeSelectViewDelegate
{
func
GLTimeSelectViewSelectFinish
(
date
:
String
)
func
GLTimeSelectViewClose
()
}
class
GLTimeSelectView
:
UIView
,
UIPickerViewDelegate
,
UIPickerViewDataSource
{
...
...
@@ -90,6 +91,7 @@ class GLTimeSelectView: UIView, UIPickerViewDelegate, UIPickerViewDataSource {
self
.
removeFromSuperview
()
}
@IBAction
func
close_action
(
_
sender
:
Any
)
{
delegate
?
.
GLTimeSelectViewClose
()
self
.
removeFromSuperview
()
}
func
pickerView
(
_
pickerView
:
UIPickerView
,
numberOfRowsInComponent
component
:
Int
)
->
Int
{
...
...
@@ -100,7 +102,9 @@ class GLTimeSelectView: UIView, UIPickerViewDelegate, UIPickerViewDataSource {
}
return
days
.
count
}
func
pickerView
(
_
pickerView
:
UIPickerView
,
titleForRow
row
:
Int
,
forComponent
component
:
Int
)
->
String
?
{
if
component
==
0
{
return
years
[
row
]
}
else
if
component
==
1
{
...
...
@@ -108,6 +112,7 @@ class GLTimeSelectView: UIView, UIPickerViewDelegate, UIPickerViewDataSource {
}
return
days
[
row
]
+
"日"
}
func
pickerView
(
_
pickerView
:
UIPickerView
,
didSelectRow
row
:
Int
,
inComponent
component
:
Int
)
{
let
arr
=
getDate
()
switch
component
{
...
...
@@ -249,6 +254,7 @@ class GLTimeSelectView: UIView, UIPickerViewDelegate, UIPickerViewDataSource {
func
setUI
(){
time_picker
.
delegate
=
self
time_picker
.
dataSource
=
self
// time_picker.showsSelectionIndicator = true
let
arr
=
getDate
()
var
strTime
=
2003
...
...
GeliBusinessPlatform/View/TimeSelectView/DIYCalendarCell.swift
View file @
299de975
...
...
@@ -58,7 +58,6 @@ class DIYCalendarCell: FSCalendarCell {
if
selectionType
==
.
middle
{
print
(
"middle--middle"
)
self
.
titleLabel
.
textColor
=
UIColor
.
init
(
named
:
"蓝色字体颜色"
)
let
color
=
UIColor
.
white
self
.
selectionLayer
.
fillColor
=
color
.
cgColor
self
.
selectionLayer
.
path
=
UIBezierPath
(
rect
:
self
.
selectionLayer
.
bounds
)
.
cgPath
...
...
GeliBusinessPlatform/ViewController/分销收益页/FXSY_ViewController.swift
View file @
299de975
...
...
@@ -56,9 +56,10 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
@IBOutlet
weak
var
top_view_h
:
NSLayoutConstraint
!
@IBOutlet
weak
var
top_view
:
UIView
!
func
GLTimeSelectViewClose
(){
arrow_img
.
image
=
UIImage
(
named
:
"down_black"
)}
func
GLTimeSelectViewSelectFinish
(
date
:
String
)
{
arrow_img
.
image
=
UIImage
(
named
:
"down_black"
)
if
date
.
count
==
4
{
date_lbl
.
text
=
date
+
"年"
}
else
if
date
.
count
>
4
&&
date
.
count
<=
7
{
...
...
@@ -75,6 +76,7 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
}
@IBAction
func
date_select_action
(
_
sender
:
Any
)
{
arrow_img
.
image
=
UIImage
(
named
:
"up_black"
)
let
vc
=
GLTimeSelectView
(
frame
:
self
.
view
.
bounds
)
vc
.
delegate
=
self
vc
.
dateStr
=
strNowTime
...
...
@@ -121,7 +123,7 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
@IBAction
func
type_select
(
_
sender
:
Any
)
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
titleLbl
.
text
=
"请选择
国家
"
view
.
titleLbl
.
text
=
"请选择
收支类型
"
view
.
delegate
=
self
view
.
dataArr
=
[
"收入"
,
"支出"
]
view
.
is_center_select
=
true
...
...
GeliBusinessPlatform/ViewController/分销收益页/FXSY_ViewController.xib
View file @
299de975
...
...
@@ -144,7 +144,7 @@
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"
offline_zhankai_2.png
"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"LRJ-fs-pAL"
>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"
down_black
"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"LRJ-fs-pAL"
>
<rect
key=
"frame"
x=
"64"
y=
"29"
width=
"12"
height=
"6"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"6"
id=
"6h3-zg-g2Y"
/>
...
...
@@ -208,7 +208,7 @@
</view>
</objects>
<resources>
<image
name=
"
offline_zhankai_2.png"
width=
"24"
height=
"24
"
/>
<image
name=
"
down_black"
width=
"11.5"
height=
"6
"
/>
<namedColor
name=
"多选按钮字体颜色"
>
<color
red=
"0.41176470588235292"
green=
"0.41176470588235292"
blue=
"0.41176470588235292"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
...
...
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