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
d508075d
Commit
d508075d
authored
Jan 16, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
badd3158
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
28 deletions
+28
-28
cleanManage.vue
pages/cleanManage/cleanManage.vue
+1
-1
cleanOrderInfo.vue
pages/cleanOrderInfo/cleanOrderInfo.vue
+1
-1
order.vue
pages/order/order.vue
+26
-26
No files found.
pages/cleanManage/cleanManage.vue
View file @
d508075d
...
@@ -218,7 +218,7 @@ import moment from "@/common/moment";
...
@@ -218,7 +218,7 @@ import moment from "@/common/moment";
})
})
},
},
onNavSearch
(
val
){
onNavSearch
(
val
){
if
(
val
.
recordsStatus
==
0
){
if
(
val
.
recordsStatus
==
0
||
val
.
recordsStatus
==
1
){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/cleanOrderInfo/cleanOrderInfo?id="
+
val
.
recordsId
url
:
"/pages/cleanOrderInfo/cleanOrderInfo?id="
+
val
.
recordsId
})
})
...
...
pages/cleanOrderInfo/cleanOrderInfo.vue
View file @
d508075d
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
uni
.
chooseImage
({
uni
.
chooseImage
({
count
:
4
,
//默认9
count
:
4
,
//默认9
sizeType
:
[
'original'
,
'compressed'
],
//可以指定是原图还是压缩图,默认二者都有
sizeType
:
[
'original'
,
'compressed'
],
//可以指定是原图还是压缩图,默认二者都有
sourceType
:
[
'
album'
],
//从相册选择
sourceType
:
[
'
camera'
],
//仅拍照
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
console
.
log
(
res
,
"文件"
)
console
.
log
(
res
,
"文件"
)
// if (this.imgList.length != 0) {
// if (this.imgList.length != 0) {
...
...
pages/order/order.vue
View file @
d508075d
...
@@ -476,18 +476,21 @@
...
@@ -476,18 +476,21 @@
endHours
:
48
,
endHours
:
48
,
content
:
''
,
content
:
''
,
toDayDate
:
''
,
// 今天日期
toDayDate
:
''
,
// 今天日期
};
};
},
},
filters
:{
filters
:{
resetStartTime
(
val
){
resetStartTime
(
val
){
let
time
=
null
;
let
hour
=
val
.
split
(
':'
).
map
((
n
,
k
)
=>
{
let
hour
=
val
.
split
(
':'
)
let
t
=
Number
(
n
)
if
(
hour
>=
24
){
if
(
k
==
0
){
time
=
`
${
hour
-
24
}
:00`
if
(
n
>=
24
){
}
else
{
t
=
n
>=
24
?
n
-
24
:
n
time
=
val
}
}
return
time
;
}
return
t
>=
10
?
t
:
`0
${
t
}
`
}).
join
(
":"
)
return
hour
;
}
}
},
},
watch
:{
watch
:{
...
@@ -537,7 +540,8 @@
...
@@ -537,7 +540,8 @@
if
(
this
.
dateIndex
===
0
){
if
(
this
.
dateIndex
===
0
){
let
h
=
new
Date
().
getHours
()
let
h
=
new
Date
().
getHours
()
this
.
hourList
=
this
.
hourList
.
filter
(
item
=>
Number
(
item
)
>=
h
).
map
(
item
=>
{
this
.
hourList
=
this
.
hourList
.
filter
(
item
=>
Number
(
item
)
>=
h
).
map
(
item
=>
{
return
item
>=
10
?
item
:
`0
${
item
}
`
let
i
=
Number
(
item
)
return
i
>=
10
?
i
:
`0
${
i
}
`
}
)
}
)
}
else
{
}
else
{
this
.
hourList
=
[
"00"
,
"01"
,
"02"
,
"03"
,
"04"
,
"05"
,
"06"
,
"07"
,
"08"
,
"09"
,
"10"
,
"11"
,
"12"
,
"13"
,
"14"
,
"15"
,
this
.
hourList
=
[
"00"
,
"01"
,
"02"
,
"03"
,
"04"
,
"05"
,
"06"
,
"07"
,
"08"
,
"09"
,
"10"
,
"11"
,
"12"
,
"13"
,
"14"
,
"15"
,
...
@@ -712,6 +716,7 @@
...
@@ -712,6 +716,7 @@
this
.
setStartTime
.
duration
+=
1
;
this
.
setStartTime
.
duration
+=
1
;
}
}
if
(
index
>=
this
.
dateIntervalList
.
length
-
1
){
if
(
index
>=
this
.
dateIntervalList
.
length
-
1
){
console
.
log
(
this
.
addM
,
"是否加一分钟"
)
if
(
!
this
.
addM
&&
this
.
dateIntervalList
[
0
].
status
){
if
(
!
this
.
addM
&&
this
.
dateIntervalList
[
0
].
status
){
console
.
log
(
this
.
startTime
,
909090
)
console
.
log
(
this
.
startTime
,
909090
)
this
.
addM
=
true
this
.
addM
=
true
...
@@ -952,6 +957,7 @@
...
@@ -952,6 +957,7 @@
if
(
this
.
index
===
i
||
!
this
.
packageMode
.
length
)
return
;
if
(
this
.
index
===
i
||
!
this
.
packageMode
.
length
)
return
;
this
.
index
=
i
this
.
index
=
i
this
.
modeIndex
=
0
;
this
.
modeIndex
=
0
;
this
.
addM
=
false
;
this
.
distanceIndex
=
this
.
orderType
==
2
?
1
:
0
;
this
.
distanceIndex
=
this
.
orderType
==
2
?
1
:
0
;
this
.
setStartTime
=
{
this
.
setStartTime
=
{
status
:
false
,
status
:
false
,
...
@@ -966,7 +972,7 @@
...
@@ -966,7 +972,7 @@
// this.days =1
// this.days =1
// }
// }
this
.
days
=
1
this
.
days
=
1
this
.
checkedDateList
=
[
0
,
0
]
//
this.checkedDateList= [0,0]
// this.onSetEndTime();
// this.onSetEndTime();
this
.
onGetSortDistance
();
this
.
onGetSortDistance
();
},
},
...
@@ -1164,11 +1170,16 @@
...
@@ -1164,11 +1170,16 @@
},
},
onOrderConfirm
()
{
onOrderConfirm
()
{
let
nowDate
=
moment
().
format
(
"HHmm"
)
let
nowDate
=
moment
().
format
(
"MMDD"
)
let
setDate
=
moment
(
this
.
dateObj
.
startDate
).
format
(
"HHmm"
);
let
nowTime
=
moment
().
format
(
"HHmm"
)
let
setDate
=
moment
(
this
.
dateObj
.
startDate
).
format
(
"MMDD"
);
let
setTime
=
moment
(
this
.
dateObj
.
startDate
).
format
(
"HHmm"
);
// 如果当前时间大于开始时间,则不允许下单
// 如果当前时间大于开始时间,则不允许下单
if
(
nowDate
>
setDat
e
){
if
(
this
.
orderType
==
1
&&
nowDate
==
setDate
&&
nowTime
>
setTim
e
){
uni
.
showToast
({
uni
.
showToast
({
icon
:
"none"
,
icon
:
"none"
,
title
:
"当前时间晚于预约开始时间,请重新选择预约时间"
title
:
"当前时间晚于预约开始时间,请重新选择预约时间"
...
@@ -1365,7 +1376,7 @@
...
@@ -1365,7 +1376,7 @@
this
.
dateIndex
+=
1
;
this
.
dateIndex
+=
1
;
}
}
}
}
if
(
val
.
status
==
1
)
{
if
(
val
.
status
==
1
||
val
.
status
==
2
)
{
let
mTime
=
Number
(
moment
(
val
.
endHoldTime
).
format
(
"mm"
))
let
mTime
=
Number
(
moment
(
val
.
endHoldTime
).
format
(
"mm"
))
if
(
mTime
>=
59
)
{
if
(
mTime
>=
59
)
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -1375,7 +1386,7 @@
...
@@ -1375,7 +1386,7 @@
return
;
return
;
}
else
{
}
else
{
this
.
startTime
=
`
${
time
>=
10
?
time
:
'0'
+
time
}
:
${
mTime
>=
10
?
mTime
:
'0'
+
mTime
}
`
;
this
.
startTime
=
`
${
time
>=
10
?
time
:
'0'
+
time
}
:
${
mTime
>=
10
?
mTime
:
'0'
+
mTime
}
`
;
if
(
time
>
0
){
if
(
time
>
=
0
){
// 开始时间加一分钟
// 开始时间加一分钟
let
arr
=
this
.
startTime
.
split
(
":"
);
let
arr
=
this
.
startTime
.
split
(
":"
);
let
m
=
Number
(
arr
[
1
])
+
1
let
m
=
Number
(
arr
[
1
])
+
1
...
@@ -1391,25 +1402,14 @@
...
@@ -1391,25 +1402,14 @@
}).
join
(
":"
)
}).
join
(
":"
)
}
}
}
else
{
}
else
{
let
mTime
=
Number
(
moment
(
val
.
endHoldTime
).
format
(
"mm"
))
this
.
startTime
=
`
${
time
>=
10
?
time
:
'0'
+
time
}
:00`
;
this
.
startTime
=
`
${
time
>=
10
?
time
:
'0'
+
time
}
:00`
;
if
(
time
>
0
&&
this
.
dateIntervalList
[
time
-
1
].
status
==
1
&&
mTime
>=
59
){
// 开始时间加一分钟
let
arr
=
this
.
startTime
.
split
(
":"
);
let
m
=
Number
(
arr
[
1
])
+
1
let
h
=
Number
(
arr
[
0
])
this
.
startTime
=
`
${
h
>=
10
?
h
:
'0'
+
h
}
:
${
m
>=
10
?
m
:
'0'
+
m
}
`
}
this
.
endTime
=
this
.
startTime
.
split
(
":"
).
map
((
item
,
k
)
=>
{
this
.
endTime
=
this
.
startTime
.
split
(
":"
).
map
((
item
,
k
)
=>
{
let
n
=
Number
(
item
);
let
n
=
Number
(
item
);
if
(
k
==
0
){
if
(
k
==
0
){
n
=
n
+
this
.
duration
>=
24
?
n
+
this
.
duration
-
24
:
n
+
this
.
duration
n
=
n
+
this
.
duration
>=
24
?
n
+
this
.
duration
-
24
:
n
+
this
.
duration
}
}
return
n
>=
10
?
n
:
`0
${
n
}
`
return
n
>=
10
?
n
:
`0
${
n
}
`
}).
join
(
":"
)
}).
join
(
":"
)
}
}
this
.
dateObj
=
this
.
onSetDateTime
(
this
.
startTime
,
this
.
endTime
);
this
.
dateObj
=
this
.
onSetDateTime
(
this
.
startTime
,
this
.
endTime
);
this
.
onGetUseCoupon
();
this
.
onGetUseCoupon
();
...
...
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