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
7522d8a9
Commit
7522d8a9
authored
May 13, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情UI调整
parent
1019c1c5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
14 deletions
+42
-14
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
...orm/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
+39
-14
GeliBusinessPlatform/ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
.../ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
+2
-0
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+1
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
7522d8a9
No preview for this file type
GeliBusinessPlatform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
View file @
7522d8a9
...
@@ -7,26 +7,51 @@
...
@@ -7,26 +7,51 @@
//
//
import
UIKit
import
UIKit
import
ViewAnimator
class
ChangeGoodsPriceVC
:
BaseViewController
{
class
ChangeGoodsPriceVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
navbar
.
title
=
"修改价格"
navbar
.
title
=
"修改价格"
self
.
view
.
addSubview
(
navbar
)
self
.
view
.
addSubview
(
navbar
)
self
.
view
.
backgroundColor
=
UIColor
.
white
setTabv
()
// Do any additional setup after loading the view.
}
}
var
tableV
:
UITableView
!
private
let
animations
=
[
AnimationType
.
from
(
direction
:
.
bottom
,
offset
:
150*
glscale
)]
/*
func
setTabv
()
{
// MARK: - Navigation
tableV
=
UITableView
()
view
.
addSubview
(
tableV
);
// In a storyboard-based application, you will often want to do a little preparation before navigation
tableV
.
snp
.
makeConstraints
{
(
make
)
in
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
make
.
left
.
right
.
bottom
.
equalToSuperview
()
// Get the new view controller using segue.destination.
make
.
top
.
equalTo
(
navbar
.
snp_bottom
)
// Pass the selected object to the new view controller.
}
}
tableV
.
backgroundColor
=
UIColor
.
init
(
named
:
"白色背景色"
)
*/
tableV
.
delegate
=
self
tableV
.
dataSource
=
self
tableV
.
separatorStyle
=
.
none
tableV
?
.
register
(
UINib
(
nibName
:
"ChangePriceNormalCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"ChangePriceNormalCell"
)
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
3
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"ChangePriceNormalCell"
)
as!
ChangePriceNormalCell
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
print
(
indexPath
)
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
120*
glscale
}
}
}
GeliBusinessPlatform/ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
View file @
7522d8a9
...
@@ -32,6 +32,8 @@ class ShowAlGoodsViewController: BaseViewController , UITableViewDelegate, UITa
...
@@ -32,6 +32,8 @@ class ShowAlGoodsViewController: BaseViewController , UITableViewDelegate, UITa
tableV
.
delegate
=
self
tableV
.
delegate
=
self
tableV
.
dataSource
=
self
tableV
.
dataSource
=
self
tableV
.
separatorStyle
=
.
none
tableV
.
separatorStyle
=
.
none
//不是这个cell-是跟订单详情里面的商品 一样
tableV
?
.
register
(
UINib
(
nibName
:
"ChangePriceNormalCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"ChangePriceNormalCell"
)
tableV
?
.
register
(
UINib
(
nibName
:
"ChangePriceNormalCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"ChangePriceNormalCell"
)
}
}
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
7522d8a9
...
@@ -66,6 +66,7 @@ class OrderDViewController: BaseViewController {
...
@@ -66,6 +66,7 @@ class OrderDViewController: BaseViewController {
}
}
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
loadData
()
navbar
.
title
=
"订单详情"
navbar
.
title
=
"订单详情"
self
.
view
.
addSubview
(
navbar
)
self
.
view
.
addSubview
(
navbar
)
...
...
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