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
3b7daf0c
Commit
3b7daf0c
authored
Jan 03, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
6e7fe225
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
index.vue
pages/index/index.vue
+1
-0
order.vue
pages/order/order.vue
+19
-14
No files found.
pages/index/index.vue
View file @
3b7daf0c
...
...
@@ -273,6 +273,7 @@
this
.
$refs
.
popup
.
open
()
uni
.
hideLoading
()
}
this
.
objListDate
=
[];
this
.
onGetListStore
()
}
})
...
...
pages/order/order.vue
View file @
3b7daf0c
...
...
@@ -672,15 +672,17 @@
let
end
=
Number
(
this
.
endTime
.
split
(
":"
)[
0
])
let
endM
=
Number
(
this
.
endTime
.
split
(
":"
)[
1
])
if
(
this
.
setStartTime
.
days
>=
2
){
start
+=
24
this
.
setStartTime
.
days
=
1
}
if
(
this
.
orderType
==
1
&&
end
<=
start
)
{
// if(this.setStartTime.days >=2){
// start +=24
// this.setStartTime.days = 1
// }
if
(
this
.
orderType
==
2
&&
end
<
start
){
end
+=
24
}
else
if
(
this
.
orderType
==
2
&&
end
<
start
)
{
}
else
if
(
this
.
orderType
==
1
&&
end
<=
start
)
{
end
+=
24
}
// 重新将数据还原到元数据
this
.
intervalList
=
[
...
this
.
dateIntervalList
...
...
@@ -794,13 +796,13 @@
},
// 下单模式切换
onTypeChange
(
i
)
{
if
(
this
.
orderType
==
2
)
{
uni
.
showToast
({
icon
:
'none'
,
title
:
'房间续单无法选择套餐模式'
})
return
}
//
if (this.orderType == 2) {
//
uni.showToast({
//
icon: 'none',
//
title: '房间续单无法选择套餐模式'
//
})
//
return
//
}
if
(
this
.
index
===
i
||
!
this
.
packageMode
.
length
)
return
;
this
.
index
=
i
this
.
modeIndex
=
0
;
...
...
@@ -1110,7 +1112,10 @@
let
startArr
=
startTime
.
split
(
":"
)
let
endArr
=
endTime
.
split
(
":"
)
obj
.
startDate
=
`
${
this
.
dateList
[
this
.
dateIndex
].
readDate
}
${
startTime
}
:00`
if
(
Number
(
endArr
[
0
])
<=
Number
(
startArr
[
0
]))
{
if
(
this
.
orderType
==
1
&&
Number
(
endArr
[
0
])
<=
Number
(
startArr
[
0
]))
{
obj
.
endDate
=
`
${
moment
(
this
.
dateList
[
this
.
dateIndex
].
readDate
).
add
(
1
,
"days"
).
format
(
"YYYY-MM-DD"
)}
${
endTime
}
:00`
}
else
if
(
this
.
orderType
==
2
&&
Number
(
endArr
[
0
])
<
Number
(
startArr
[
0
]))
{
obj
.
endDate
=
`
${
moment
(
this
.
dateList
[
this
.
dateIndex
].
readDate
).
add
(
1
,
"days"
).
format
(
"YYYY-MM-DD"
)}
${
endTime
}
:00`
}
else
{
...
...
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