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
0a31f184
Commit
0a31f184
authored
May 27, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善订单请求
parent
102eb481
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
+10
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
0a31f184
No preview for this file type
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
View file @
0a31f184
...
@@ -73,7 +73,11 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
...
@@ -73,7 +73,11 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
isUpData
=
true
isUpData
=
true
page
=
1
page
=
1
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
orderList
([
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
,
"page"
:
page
,
"order_status"
:
orderStatus
,
"pay_status"
:
payStatus
,
"order_source"
:
orderSource
,
"shipping_status"
:
shippingStatus
,
"start_time"
:
startTime
,
"end_time"
:
endTime
],
success
:
{
(
data
)
in
var
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
,
"page"
:
page
,
"order_status"
:
orderStatus
,
"pay_status"
:
payStatus
,
"order_source"
:
orderSource
,
"shipping_status"
:
shippingStatus
,
"start_time"
:
startTime
,
"end_time"
:
endTime
]
if
endTime
==
0
{
dic
.
removeValue
(
forKey
:
"end_time"
)
}
orderList
(
dic
,
success
:
{
(
data
)
in
self
.
dataArr
.
removeAll
()
self
.
dataArr
.
removeAll
()
let
dataM
=
data
as!
OrderListModel
let
dataM
=
data
as!
OrderListModel
...
@@ -101,7 +105,11 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
...
@@ -101,7 +105,11 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
print
(
"加载更多数据"
)
print
(
"加载更多数据"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
orderList
([
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
,
"page"
:
page
,
"order_status"
:
orderStatus
,
"pay_status"
:
payStatus
,
"order_source"
:
orderSource
,
"shipping_status"
:
shippingStatus
,
"start_time"
:
startTime
,
"end_time"
:
endTime
],
success
:
{
(
data
)
in
var
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
,
"page"
:
page
,
"order_status"
:
orderStatus
,
"pay_status"
:
payStatus
,
"order_source"
:
orderSource
,
"shipping_status"
:
shippingStatus
,
"start_time"
:
startTime
,
"end_time"
:
endTime
]
if
endTime
==
0
{
dic
.
removeValue
(
forKey
:
"end_time"
)
}
orderList
(
dic
,
success
:
{
(
data
)
in
self
.
page
+=
1
self
.
page
+=
1
let
dataM
=
data
as!
OrderListModel
let
dataM
=
data
as!
OrderListModel
dataM
.
data
?
.
forEach
({
(
model
)
in
dataM
.
data
?
.
forEach
({
(
model
)
in
...
...
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