Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
5606b0b0
Commit
5606b0b0
authored
Sep 21, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单列表状态
parent
73d89965
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
order.js
src/pages/order/order.js
+9
-11
No files found.
src/pages/order/order.js
View file @
5606b0b0
...
@@ -44,7 +44,7 @@ wxService.page({
...
@@ -44,7 +44,7 @@ wxService.page({
orderList
:
null
,
orderList
:
null
,
totalPages
:
0
,
totalPages
:
0
,
subImgs
:
[],
subImgs
:
[],
trade
:
''
,
// 订单状态(C:取消;N:新建,P:已支付;D:已发货;R:已收货)
status
:
''
,
// 订单状态(C:取消;N:新建,P:已支付;D:已发货;R:已收货)
no_data
:
true
,
no_data
:
true
,
currentTradeId
:
''
currentTradeId
:
''
},
},
...
@@ -70,9 +70,7 @@ wxService.page({
...
@@ -70,9 +70,7 @@ wxService.page({
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
5
pageSize
:
5
},
()
=>
{
},
()
=>
{
const
params
=
{
trade
:
this
.
data
.
trade
}
this
.
initOrderList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
,
this
.
data
.
status
)
this
.
initOrderList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
,
params
)
// this.initOrderList(this.data.pageNo, this.data.pageSize, this.data.trade)
})
})
}
}
...
@@ -96,7 +94,7 @@ wxService.page({
...
@@ -96,7 +94,7 @@ wxService.page({
icon
:
'none'
icon
:
'none'
})
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
initOrderList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
,
this
.
data
.
trade
)
this
.
initOrderList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
,
this
.
data
.
status
)
},
200
)
},
200
)
}
else
{
}
else
{
wx
.
showToast
({
wx
.
showToast
({
...
@@ -229,14 +227,14 @@ wxService.page({
...
@@ -229,14 +227,14 @@ wxService.page({
currentIndex
:
type
,
currentIndex
:
type
,
pageNo
:
1
,
pageNo
:
1
,
orderList
:
[],
orderList
:
[],
trade
:
''
,
status
:
''
,
no_data
:
true
no_data
:
true
},
()
=>
{
},
()
=>
{
if
(
type
==
5
&&
status
==
'RF'
)
{
if
(
type
==
5
&&
status
==
'RF'
)
{
this
.
getRefundList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
)
this
.
getRefundList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
)
}
else
{
}
else
{
this
.
setData
({
this
.
setData
({
trade
:
status
status
:
status
},
()
=>
{
},
()
=>
{
this
.
initOrderList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
,
status
)
this
.
initOrderList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
,
status
)
})
})
...
@@ -244,13 +242,13 @@ wxService.page({
...
@@ -244,13 +242,13 @@ wxService.page({
}
}
})
})
},
},
initOrderList
(
pageNo
,
pageSize
,
trade
)
{
initOrderList
(
pageNo
,
pageSize
,
status
)
{
console
.
log
(
'-------------'
,
trade
)
console
.
log
(
'-------------'
,
status
)
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'加载中'
,
title
:
'加载中'
,
mask
:
true
mask
:
true
})
})
const
params
=
{
trade
}
const
params
=
{
status
:
status
}
wxService
.
post
(
`/sale/trade/buyer/history?pageNum=
${
pageNo
}
&pageSize=
${
pageSize
}
`
,
params
).
then
(
res
=>
{
wxService
.
post
(
`/sale/trade/buyer/history?pageNum=
${
pageNo
}
&pageSize=
${
pageSize
}
`
,
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
const
{
result
,
data
}
=
res
.
data
...
@@ -354,7 +352,7 @@ wxService.page({
...
@@ -354,7 +352,7 @@ wxService.page({
this
.
setData
({
this
.
setData
({
pageNo
:
this
.
data
.
pageNo
+
1
,
pageNo
:
this
.
data
.
pageNo
+
1
,
},
()
=>
{
},
()
=>
{
this
.
initOrderList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
,
this
.
data
.
trade
)
this
.
initOrderList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
,
this
.
data
.
status
)
})
})
},
},
...
...
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