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
fafeb31f
Commit
fafeb31f
authored
May 13, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
9d7bf76a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
24 deletions
+10
-24
order.vue
pages/order/order.vue
+8
-23
orderResult.vue
pages/orderResult/orderResult.vue
+2
-1
No files found.
pages/order/order.vue
View file @
fafeb31f
...
@@ -1525,45 +1525,29 @@
...
@@ -1525,45 +1525,29 @@
useStatus
=
true
;
useStatus
=
true
;
nextStatus
=
true
;
nextStatus
=
true
;
console
.
log
(
"节点2"
)
console
.
log
(
"节点2"
)
}
}
else
if
(
endStemp
>
moment
(
item
.
startHoldTime
).
valueOf
()
&&
endStemp
<=
moment
(
item
.
endHoldTime
).
valueOf
()){
if
(
endStemp
>
moment
(
item
.
startHoldTime
).
valueOf
()
&&
endStemp
<=
moment
(
item
.
endHoldTime
).
valueOf
()){
useStatus
=
true
;
useStatus
=
true
;
nextStatus
=
true
;
nextStatus
=
true
;
console
.
log
(
"节点3"
)
console
.
log
(
"节点3"
)
}
}
else
if
(
startStemp
<=
moment
(
item
.
endHoldTime
).
valueOf
()
&&
endStemp
>=
moment
(
item
.
startHoldTime
).
valueOf
()){
if
(
startStemp
<=
moment
(
item
.
endHoldTime
).
valueOf
()
&&
endStemp
>=
moment
(
item
.
startHoldTime
).
valueOf
()){
useStatus
=
true
;
useStatus
=
true
;
nextStatus
=
true
;
nextStatus
=
true
;
console
.
log
(
"节点4"
)
console
.
log
(
"节点4"
)
}
}
}
else
if
(
this
.
orderType
==
2
){
}
else
if
(
this
.
orderType
==
2
){
// if( m
<=
60
&&
!
(
startStemp
>=
moment
(
item
.
endHoldTime
).
valueOf
()
&&
endStemp
<
end
)
){
// useStatus = true;
// nextStatus = true;
// console.log("节点5")
// }
if
(
startStemp
>
moment
(
item
.
startHoldTime
).
valueOf
()
&&
startStemp
<
moment
(
item
.
endHoldTime
).
valueOf
()){
if
(
startStemp
>
moment
(
item
.
startHoldTime
).
valueOf
()
&&
startStemp
<
moment
(
item
.
endHoldTime
).
valueOf
()){
useStatus
=
true
;
useStatus
=
true
;
nextStatus
=
true
;
nextStatus
=
true
;
console
.
log
(
"节点2"
)
console
.
log
(
"节点2"
)
}
}
else
if
(
startStemp
<
moment
(
item
.
endHoldTime
).
valueOf
()
&&
endStemp
>=
moment
(
item
.
startHoldTime
).
valueOf
()){
if
(
endStemp
>=
moment
(
item
.
startHoldTime
).
valueOf
()
&&
endStemp
<=
moment
(
item
.
endHoldTime
).
valueOf
()){
useStatus
=
true
;
useStatus
=
true
;
nextStatus
=
true
;
nextStatus
=
true
;
console
.
log
(
"节点3"
)
console
.
log
(
"节点4"
)
}
}
else
if
(
endStemp
>=
moment
(
item
.
startHoldTime
).
valueOf
()
&&
endStemp
<=
moment
(
item
.
endHoldTime
).
valueOf
()){
if
(
startStemp
<
moment
(
item
.
endHoldTime
).
valueOf
()
&&
endStemp
>=
moment
(
item
.
startHoldTime
).
valueOf
()){
useStatus
=
true
;
useStatus
=
true
;
nextStatus
=
true
;
nextStatus
=
true
;
console
.
log
(
"节点
4
"
)
console
.
log
(
"节点
3
"
)
}
}
}
}
}
}
...
@@ -1609,6 +1593,7 @@
...
@@ -1609,6 +1593,7 @@
startStamp
=
moment
(
params
.
startDateTime
).
valueOf
();
startStamp
=
moment
(
params
.
startDateTime
).
valueOf
();
endStamp
=
startStamp
+
m
*
60000
;
endStamp
=
startStamp
+
m
*
60000
;
dateObj
.
useStatus
=
this
.
onUseByStartAndDuration
(
params
.
startDateTime
,
m
,
2
)
dateObj
.
useStatus
=
this
.
onUseByStartAndDuration
(
params
.
startDateTime
,
m
,
2
)
console
.
log
(
dateObj
.
useStatus
,
999
)
}
else
if
(
params
.
duration
){
}
else
if
(
params
.
duration
){
dateObj
=
this
.
onComputeByDuration
(
m
,
2
);
dateObj
=
this
.
onComputeByDuration
(
m
,
2
);
...
...
pages/orderResult/orderResult.vue
View file @
fafeb31f
...
@@ -352,7 +352,8 @@
...
@@ -352,7 +352,8 @@
storeId
:
this
.
orderInfo
.
storeId
,
storeId
:
this
.
orderInfo
.
storeId
,
roomId
:
this
.
orderInfo
.
roomId
,
roomId
:
this
.
orderInfo
.
roomId
,
day
:
this
.
orderInfo
.
endDate
,
day
:
this
.
orderInfo
.
endDate
,
orderType
:
2
orderType
:
2
,
orderId
:
this
.
orderInfo
.
id
}).
then
(
res
=>
{
}).
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
res
.
data
.
code
!=
200
){
if
(
res
.
data
.
code
!=
200
){
...
...
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