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
a296b2d2
Commit
a296b2d2
authored
May 13, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
7543a385
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
26 deletions
+27
-26
AggregateOrdersList.vue
pages/AggregateOrders/AggregateOrdersList.vue
+1
-1
orders.vue
pages/AggregateOrders/components/orders.vue
+26
-25
No files found.
pages/AggregateOrders/AggregateOrdersList.vue
View file @
a296b2d2
...
...
@@ -200,7 +200,7 @@
})
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
console
.
log
(
"res.data.pageData"
,
res
.
data
.
pageData
);
//
console.log("res.data.pageData",res.data.pageData);
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
)
{
this
.
status
=
"nomore"
;
...
...
pages/AggregateOrders/components/orders.vue
View file @
a296b2d2
...
...
@@ -122,31 +122,32 @@
orders
:
{
handler
(
newVal
,
oldVal
)
{
this
.
g
=
JSON
.
parse
(
JSON
.
stringify
(
newVal
))
// this.g.forEach(x => {
// let goodsTypeHotel = 0
// // #ifdef MP-DI
// goodsTypeHotel = x.goodsType==9?1:0
// // #endif
// // #ifdef MP-AG
// goodsTypeHotel = x.goodsType==7?1:0
// // #endif
// if(x.orderStatus!=1) x.isExpired = true
// if (x.orderStatus==1&&goodsTypeHotel>0) {
// const now = Date.now();
// // const customStr = '2025-05-12 14:43:00'
// const customStr = x.createTimeStr
// const [date, time] = customStr.split(' ')
// const [year, month, day] = date.split('-')
// const [hours, minutes, seconds] = time.split(':')
// const parsedDate = new Date(year, month-1, day, hours, minutes, seconds)
// x.orderTime = parsedDate.getTime()
// const diff = x.orderTime + 5 * 60 * 1000 - now; // 5分钟倒计时
// let remainingSeconds = Math.max(diff, 0); // 确保不出现负数
// x.remainingSeconds = Math.floor(remainingSeconds/1000)
// // console.log("支付倒计时",x.remainingSeconds)
// if(x.remainingSeconds) this.initCountdown(x)
// }
// });
this
.
g
.
forEach
(
x
=>
{
let
goodsTypeHotel
=
0
// #ifdef MP-DI
goodsTypeHotel
=
x
.
goodsType
==
9
?
1
:
0
// #endif
// #ifdef MP-AG
goodsTypeHotel
=
x
.
goodsType
==
7
?
1
:
0
// #endif
if
(
x
.
orderStatus
!=
1
)
x
.
isExpired
=
true
if
(
x
.
orderStatus
==
1
&&
goodsTypeHotel
>
0
)
{
const
now
=
Date
.
now
();
// const customStr = '2025-05-12 14:43:00'
const
customStr
=
x
.
createTimeStr
const
[
date
,
time
]
=
customStr
.
split
(
' '
)
const
[
year
,
month
,
day
]
=
date
.
split
(
'-'
)
const
[
hours
,
minutes
,
seconds
]
=
time
.
split
(
':'
)
const
parsedDate
=
new
Date
(
year
,
month
-
1
,
day
,
hours
,
minutes
,
seconds
)
x
.
orderTime
=
parsedDate
.
getTime
()
const
diff
=
x
.
orderTime
+
5
*
60
*
1000
-
now
;
// 5分钟倒计时
let
remainingSeconds
=
Math
.
max
(
diff
,
0
);
// 确保不出现负数
x
.
remainingSeconds
=
Math
.
floor
(
remainingSeconds
/
1000
)
if
(
x
.
remainingSeconds
<=
0
)
x
.
orderStatus
=
4
// console.log("支付倒计时",x.remainingSeconds)
// if(x.remainingSeconds) this.initCountdown(x)
}
});
},
deep
:
true
,
}
...
...
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