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
9268de26
Commit
9268de26
authored
May 27, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
613 ios:订单管理列表的订单信息下单时间展示时分
parent
2ea8d7d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Define/Define.swift
GeliBusinessPlatform/Define/Define.swift
+7
-0
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
9268de26
No preview for this file type
GeliBusinessPlatform/Define/Define.swift
View file @
9268de26
...
...
@@ -264,6 +264,13 @@ func dayByDouble (sender : Double ) -> String {
dformatter
.
dateFormat
=
"yyyy.MM.dd"
return
dformatter
.
string
(
from
:
data
)
}
func
dayAndTimeByDouble
(
sender
:
Double
)
->
String
{
let
timeInterval
:
TimeInterval
=
TimeInterval
(
sender
)
let
data
:
Date
=
Date
(
timeIntervalSince1970
:
timeInterval
)
let
dformatter
=
DateFormatter
()
dformatter
.
dateFormat
=
"yyyy.MM.dd HH:mm"
return
dformatter
.
string
(
from
:
data
)
}
//MARK: -- 格式化数字
func
formatShowNumber
(
value
:
String
)
->
String
{
if
value
.
isEmpty
{
...
...
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
View file @
9268de26
...
...
@@ -199,7 +199,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
cell
.
typeLbl
.
isHidden
=
false
}
cell
.
dateLbl
.
text
=
dayByDouble
(
sender
:
rowModel
.
add_time
!
)
cell
.
dateLbl
.
text
=
day
AndTime
ByDouble
(
sender
:
rowModel
.
add_time
!
)
cell
.
countLbl
.
text
=
"商品数量:
\(
rowModel
.
goods_number
!
)
"
cell
.
priceLbl
.
text
=
"金额:¥
\(
rowModel
.
sum_amount
!
)
"
cell
.
delegate
=
self
...
...
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