Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
37b5c2db
Commit
37b5c2db
authored
Jul 29, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
28078816
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
orders.vue
pages/AggregateOrders/components/orders.vue
+4
-1
No files found.
pages/AggregateOrders/components/orders.vue
View file @
37b5c2db
...
@@ -143,7 +143,10 @@
...
@@ -143,7 +143,10 @@
const
diff
=
x
.
orderTime
+
5
*
60
*
1000
-
now
;
// 5分钟倒计时
const
diff
=
x
.
orderTime
+
5
*
60
*
1000
-
now
;
// 5分钟倒计时
let
remainingSeconds
=
Math
.
max
(
diff
,
0
);
// 确保不出现负数
let
remainingSeconds
=
Math
.
max
(
diff
,
0
);
// 确保不出现负数
x
.
remainingSeconds
=
Math
.
floor
(
remainingSeconds
/
1000
)
x
.
remainingSeconds
=
Math
.
floor
(
remainingSeconds
/
1000
)
if
(
x
.
remainingSeconds
<=
0
)
x
.
orderStatus
=
4
if
(
x
.
remainingSeconds
<=
0
)
{
x
.
orderStatus
=
4
// x.orderStatusInfo.desc = '支付超时'
}
// console.log("支付倒计时",x.remainingSeconds)
// console.log("支付倒计时",x.remainingSeconds)
// if(x.remainingSeconds) this.initCountdown(x)
// if(x.remainingSeconds) this.initCountdown(x)
}
}
...
...
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