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
705bdff0
Commit
705bdff0
authored
Apr 24, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
103a5540
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
20 deletions
+6
-20
orderResult.vue
pages/orderResult/orderResult.vue
+6
-20
No files found.
pages/orderResult/orderResult.vue
View file @
705bdff0
...
...
@@ -349,6 +349,8 @@
let
orderStartTime
=
0
;
let
continueStatus
=
false
;
console
.
log
(
moment
(
startDateStemp
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
"ding单结束的时间"
)
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
&&
res
.
data
.
data
.
length
){
res
.
data
.
data
.
forEach
(
item
=>
{
if
(
continueStatus
)
return
;
...
...
@@ -359,7 +361,7 @@
})
}
else
{
let
d
=
moment
(
item
.
startHoldTime
).
valueOf
()
if
(
d
-
startDateStemp
>=
3600
*
1000
){
if
(
d
-
orderStartTime
>=
3600
*
1000
){
uni
.
navigateTo
({
url
:
`/pages/order/order?roomId=
${
this
.
orderInfo
.
roomId
}
&orderNo=
${
this
.
orderInfo
.
orderNo
}
`
})
...
...
@@ -367,35 +369,19 @@
}
else
{
uni
.
showToast
({
icon
:
"none"
,
title
:
"此订单已无可续单时段"
title
:
"此订单已无可续单时段
2
"
})
continueStatus
=
true
;
return
}
}
}
else
{
if
(
item
.
status
==
0
){
let
d
=
moment
(
item
.
timeHour
).
valueOf
()
if
(
d
>
startDateStemp
){
orderStartTime
=
d
;
console
.
log
(
moment
(
orderStartTime
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
"续单可开始的时间"
)
}
}
else
{
if
(
item
.
status
==
1
)
{
let
d
=
moment
(
item
.
endHoldTime
).
valueOf
();
let
s
=
moment
(
item
.
startHoldTime
).
valueOf
()
if
(
startDateStemp
>
d
){
if
(
d
>=
startDateStemp
){
orderStartTime
=
d
;
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