Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
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
pseer
gxpt_wechat
Commits
4eb65ec5
Commit
4eb65ec5
authored
Apr 23, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
42078746
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
7 deletions
+24
-7
orderResult.vue
pages/orderResult/orderResult.vue
+24
-7
No files found.
pages/orderResult/orderResult.vue
View file @
4eb65ec5
...
@@ -348,8 +348,10 @@
...
@@ -348,8 +348,10 @@
//订单开始时间
//订单开始时间
let
orderStartTime
=
0
;
let
orderStartTime
=
0
;
let
continueStatus
=
false
;
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
&&
res
.
data
.
data
.
length
){
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
&&
res
.
data
.
data
.
length
){
res
.
data
.
data
.
forEach
(
item
=>
{
res
.
data
.
data
.
forEach
(
item
=>
{
if
(
continueStatus
)
return
;
if
(
orderStartTime
){
if
(
orderStartTime
){
if
(
item
.
status
==
0
){
if
(
item
.
status
==
0
){
uni
.
navigateTo
({
uni
.
navigateTo
({
...
@@ -367,20 +369,35 @@
...
@@ -367,20 +369,35 @@
icon
:
"none"
,
icon
:
"none"
,
title
:
"此订单已无可续单时段"
title
:
"此订单已无可续单时段"
})
})
continueStatus
=
true
;
return
return
}
}
}
}
}
else
{
}
else
{
let
d
=
0
;
if
(
item
.
status
==
0
){
if
(
item
.
status
==
0
){
d
=
moment
(
item
.
timeHour
).
valueOf
()
let
d
=
moment
(
item
.
timeHour
).
valueOf
()
if
(
d
>
startDateStemp
){
orderStartTime
=
d
;
console
.
log
(
moment
(
orderStartTime
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
"续单可开始的时间"
)
}
}
else
{
}
else
{
d
=
moment
(
item
.
endHoldTime
).
add
(
1
,
'm'
).
valueOf
()
let
d
=
moment
(
item
.
endHoldTime
).
valueOf
();
}
let
s
=
moment
(
item
.
startHoldTime
).
valueOf
()
if
(
d
>
startDateStemp
){
if
(
startDateStemp
>
d
){
orderStartTime
=
d
;
orderStartTime
=
d
;
console
.
log
(
moment
(
orderStartTime
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
"续单可开始的时间"
)
console
.
log
(
moment
(
orderStartTime
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
"续单可开始的时间2"
)
}
if
(
startDateStemp
>
s
&&
startDateStemp
<
d
){
uni
.
showToast
({
icon
:
"none"
,
title
:
"此订单已无可续单时段"
});
continueStatus
=
true
;
return
}
}
}
}
}
})
})
}
}
...
...
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