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
429ca7ba
Commit
429ca7ba
authored
Jan 04, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
1712bd95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
order.vue
pages/order/order.vue
+5
-13
No files found.
pages/order/order.vue
View file @
429ca7ba
...
...
@@ -477,10 +477,10 @@
}
},
onShow
()
{
if
(
Number
(
moment
().
format
(
"HHmm"
))
>
Number
(
this
.
startTime
.
split
(
":"
).
join
(
''
))){
this
.
startTime
=
moment
().
format
(
"HH:mm"
),
this
.
onSetEndTime
();
}
//
if( Number(moment().format("HHmm")) > Number(this.startTime.split(":").join(''))){
//
this.startTime = moment().format("HH:mm"),
//
this.onSetEndTime();
//
}
},
methods
:
{
onGetDicts
()
{
...
...
@@ -601,12 +601,9 @@
}
else
if
(
item
.
status
===
0
&&
this
.
setStartTime
.
duration
>=
0
&&
this
.
setStartTime
.
duration
<
this
.
duration
&&
this
.
setStartTime
.
status
){
this
.
setStartTime
.
duration
+=
1
;
}
else
if
(
item
.
status
===
0
&&
this
.
setStartTime
.
duration
==
this
.
duration
&&
this
.
setStartTime
.
status
){
//到这里就结束了
this
.
startTime
=
this
.
setStartTime
.
startTime
;
this
.
setStartTime
.
duration
+=
1
;
if
(
index
>=
24
){
this
.
setStartTime
.
days
=
2
this
.
days
=
2
;
}
}
if
(
index
>=
this
.
dateIntervalList
.
length
-
1
){
if
(
!
this
.
addM
){
...
...
@@ -703,10 +700,6 @@
let
end
=
Number
(
this
.
endTime
.
split
(
":"
)[
0
])
let
endM
=
Number
(
this
.
endTime
.
split
(
":"
)[
1
])
console
.
log
(
this
.
days
,
start
,
3333
)
// 如果开始时间是第二天
if
(
this
.
setStartTime
.
days
>=
2
||
this
.
days
==
2
){
start
+=
24
...
...
@@ -1133,7 +1126,6 @@
},
// 将时间转换成完整日期
onSetDateTime
(
startTime
,
endTime
)
{
console
.
log
(
startTime
,
endTime
,
this
.
days
,
909090
)
let
obj
=
{
startDate
:
""
,
endDate
:
''
...
...
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