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
4f23052e
Commit
4f23052e
authored
May 10, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
f8eecbdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
order.vue
pages/order/order.vue
+21
-4
No files found.
pages/order/order.vue
View file @
4f23052e
...
...
@@ -503,7 +503,8 @@
5
:
"星期五"
,
6
:
"星期六"
,
0
:
"星期日"
,
}
},
allDayUseStatus
:
false
,
// 当日无可预约时段,true 无法预约,false 可预约
};
},
filters
:
{
...
...
@@ -547,7 +548,6 @@
}
},
methods
:
{
// 日期切换
onDateChange
(
k
)
{
if
(
this
.
dateIndex
===
k
||
this
.
orderType
==
2
)
return
;
...
...
@@ -556,11 +556,12 @@
this
.
modeIndex
=
0
;
this
.
modeIndex2
=
-
1
;
}
this
.
allDayUseStatus
=
false
;
this
.
onGetSortDistance
()
},
// 小时标签切换
onChangePackage
(
index
){
if
(
this
.
modeIndex
==
index
)
return
;
if
(
this
.
modeIndex
==
index
||
this
.
allDayUseStatus
)
return
;
let
startDateTime
=
this
.
orderType
==
2
?
this
.
orderInfo
.
endDate
:
''
...
...
@@ -911,6 +912,12 @@
endDateTime
:
tempEndDate
,
useStatus
:
moment
(
tempEndDate
).
valueOf
()
-
moment
(
tempStartDate
).
valueOf
()
<
timeStampLong
}
if
(
this
.
modeIndex
==
0
&&
params
.
useStatus
){
// 当前日期,全天可用状态 true 不可用,false 还有可用时段;
this
.
allDayUseStatus
=
true
;
this
.
tipErrMsg
=
"当前日期,空闲时间不足,请选择其他日期"
}
return
params
},
...
...
@@ -1187,7 +1194,17 @@
if
(
this
.
dateIndex
===
0
)
{
let
h
=
Number
(
moment
().
format
(
"HH"
))
this
.
hourList
=
this
.
hourList
.
filter
(
item
=>
Number
(
item
)
>=
Number
(
h
));
}
}
this
.
checkedDateList
=
this
.
formatAllData
.
startTime
.
split
(
":"
).
map
((
item
,
index
)
=>
{
let
n
=
0
if
(
index
==
0
){
n
=
this
.
hourList
.
findIndex
(
val
=>
Number
(
val
)
==
Number
(
item
))
}
else
if
(
index
==
1
&&
Number
(
item
)
%
5
==
0
)
{
n
=
this
.
minuteList
.
findIndex
(
val
=>
Number
(
val
)
==
Number
(
item
))
}
return
n
})
this
.
$refs
.
popup
.
open
();
}
},
...
...
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