Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
fcc2723b
Commit
fcc2723b
authored
Aug 24, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 标注
parent
33ce2535
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
order.vue
src/pages/index/order.vue
+5
-4
No files found.
src/pages/index/order.vue
View file @
fcc2723b
...
...
@@ -276,7 +276,6 @@ export default {
// tab栏切换
change
(
index
)
{
this
.
current
[
this
.
curNow
]
=
index
// this.orderList = []
this
.
reloadOrderList
()
},
...
...
@@ -301,15 +300,17 @@ export default {
var
self
=
this
self
.
$u
.
api
.
listOrder
(
param
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
type
!=
self
.
orderType
)
return
if
(
res
.
data
.
type
!=
self
.
orderType
)
return
// 已切换到其他tab,则不处理后台返回的数据
if
(
self
.
pageNumber
==
1
)
{
// 下拉刷新或切换到新tab,清空对应数组
self
.
orderList
[
this
.
curNow
][
this
.
current
[
this
.
curNow
]]
=
[]
}
if
(
res
.
data
.
list
)
{
self
.
orderList
[
this
.
curNow
][
this
.
current
[
this
.
curNow
]].
push
(
...
res
.
data
.
list
)
// 更新tab数字
if
(
self
.
list
[
this
.
curNow
][
self
.
types
[
this
.
curNow
][
res
.
data
.
type
]]
)
{
...
...
@@ -317,15 +318,15 @@ export default {
self
.
types
[
this
.
curNow
][
res
.
data
.
type
]
].
total
=
res
.
data
.
total
}
// 待预约, 待签到,待完工需要排序
if
(
this
.
needSort
)
{
// 待预约, 待签到,待完工需要排序
self
.
orderList
[
this
.
curNow
][
this
.
current
[
this
.
curNow
]].
sort
(
(
x
,
y
)
=>
{
return
x
.
currentOverTime
<=
y
.
currentOverTime
?
1
:
-
1
}
)
}
// 更新底部加载状态
self
.
loadStatus
=
res
.
data
.
total
>
self
.
orderList
[
this
.
curNow
][
this
.
current
[
this
.
curNow
]].
length
&&
...
...
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