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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
order.vue
pages/order/order.vue
+20
-3
No files found.
pages/order/order.vue
View file @
4f23052e
...
@@ -503,7 +503,8 @@
...
@@ -503,7 +503,8 @@
5
:
"星期五"
,
5
:
"星期五"
,
6
:
"星期六"
,
6
:
"星期六"
,
0
:
"星期日"
,
0
:
"星期日"
,
}
},
allDayUseStatus
:
false
,
// 当日无可预约时段,true 无法预约,false 可预约
};
};
},
},
filters
:
{
filters
:
{
...
@@ -547,7 +548,6 @@
...
@@ -547,7 +548,6 @@
}
}
},
},
methods
:
{
methods
:
{
// 日期切换
// 日期切换
onDateChange
(
k
)
{
onDateChange
(
k
)
{
if
(
this
.
dateIndex
===
k
||
this
.
orderType
==
2
)
return
;
if
(
this
.
dateIndex
===
k
||
this
.
orderType
==
2
)
return
;
...
@@ -556,11 +556,12 @@
...
@@ -556,11 +556,12 @@
this
.
modeIndex
=
0
;
this
.
modeIndex
=
0
;
this
.
modeIndex2
=
-
1
;
this
.
modeIndex2
=
-
1
;
}
}
this
.
allDayUseStatus
=
false
;
this
.
onGetSortDistance
()
this
.
onGetSortDistance
()
},
},
// 小时标签切换
// 小时标签切换
onChangePackage
(
index
){
onChangePackage
(
index
){
if
(
this
.
modeIndex
==
index
)
return
;
if
(
this
.
modeIndex
==
index
||
this
.
allDayUseStatus
)
return
;
let
startDateTime
=
this
.
orderType
==
2
?
this
.
orderInfo
.
endDate
:
''
let
startDateTime
=
this
.
orderType
==
2
?
this
.
orderInfo
.
endDate
:
''
...
@@ -911,6 +912,12 @@
...
@@ -911,6 +912,12 @@
endDateTime
:
tempEndDate
,
endDateTime
:
tempEndDate
,
useStatus
:
moment
(
tempEndDate
).
valueOf
()
-
moment
(
tempStartDate
).
valueOf
()
<
timeStampLong
useStatus
:
moment
(
tempEndDate
).
valueOf
()
-
moment
(
tempStartDate
).
valueOf
()
<
timeStampLong
}
}
if
(
this
.
modeIndex
==
0
&&
params
.
useStatus
){
// 当前日期,全天可用状态 true 不可用,false 还有可用时段;
this
.
allDayUseStatus
=
true
;
this
.
tipErrMsg
=
"当前日期,空闲时间不足,请选择其他日期"
}
return
params
return
params
},
},
...
@@ -1188,6 +1195,16 @@
...
@@ -1188,6 +1195,16 @@
let
h
=
Number
(
moment
().
format
(
"HH"
))
let
h
=
Number
(
moment
().
format
(
"HH"
))
this
.
hourList
=
this
.
hourList
.
filter
(
item
=>
Number
(
item
)
>=
Number
(
h
));
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
();
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