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
1bfa84ee
Commit
1bfa84ee
authored
Jul 21, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整订单详情UI底部按钮样式
parent
1450b619
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+19
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
1bfa84ee
No preview for this file type
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
1bfa84ee
...
...
@@ -95,7 +95,6 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
//MARK:--底部视图,根据数据显示
self
.
btmBtnsTitleArr
=
self
.
getOrderBottomBtnTitleStrByStatus
(
status
:
(
self
.
dataMdoel
?
.
order_res
?
.
order_status
)
!
,
status_d
:
(
self
.
dataMdoel
?
.
order_res
?
.
order_status_d
)
!
)
if
self
.
btmBtnsTitleArr
.
count
==
0
{
self
.
btmViewH
.
constant
=
0
self
.
bottomView
.
isHidden
=
true
...
...
@@ -104,16 +103,34 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
self
.
bottomView
.
isHidden
=
false
self
.
bottomBgView
.
isHidden
=
false
for
i
in
0
..<
self
.
btmBtnsTitleArr
.
count
{
let
title
=
self
.
btmBtnsTitleArr
[
i
]
let
width
=
fullScreenWidth
/
CGFloat
(
self
.
btmBtnsTitleArr
.
count
)
let
btn
=
UIButton
(
frame
:
CGRect
(
x
:
CGFloat
(
i
)
*
width
,
y
:
0
,
width
:
width
,
height
:
self
.
bottomView
.
bounds
.
size
.
height
))
btn
.
setTitleColor
(
UIColor
(
named
:
"
蓝色字体颜
色"
),
for
:
.
normal
)
btn
.
setTitleColor
(
UIColor
(
named
:
"
白色背景
色"
),
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
boldSystemFont
(
ofSize
:
13
)
btn
.
setTitle
(
title
,
for
:
.
normal
)
btn
.
addTarget
(
self
,
action
:
#selector(
self.bottomBtnClick(sender:)
)
,
for
:
.
touchUpInside
)
self
.
bottomView
.
addSubview
(
btn
)
self
.
bottomView
.
backgroundColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)
self
.
bottomBgView
.
backgroundColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)
let
lineV
=
UIView
()
lineV
.
backgroundColor
=
UIColor
.
init
(
named
:
"白色背景色"
)
self
.
bottomView
.
addSubview
(
lineV
)
lineV
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
btn
.
snp_right
)
make
.
top
.
equalTo
(
12
)
make
.
width
.
equalTo
(
1
)
make
.
height
.
equalTo
(
self
.
bottomView
.
bounds
.
size
.
height
-
24
)
}
}
}
if
self
.
dataMdoel
?
.
order_res
?
.
order_status
==
2
||
self
.
dataMdoel
?
.
order_res
?
.
order_status
==
5
{
...
...
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