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
760bfb9b
Commit
760bfb9b
authored
Jan 23, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
077d4999
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
10 deletions
+39
-10
order.vue
pages/order/order.vue
+1
-1
orderResult.vue
pages/orderResult/orderResult.vue
+38
-9
No files found.
pages/order/order.vue
View file @
760bfb9b
...
@@ -1534,7 +1534,7 @@
...
@@ -1534,7 +1534,7 @@
return
;
return
;
}
else
{
}
else
{
let
startDateTime
=
""
;
let
startDateTime
=
""
;
if
(
!
this
.
addM
&&
t
!=
0
){
if
(
!
this
.
addM
&&
(
t
!=
0
||
(
t
==
0
&&
this
.
dateIntervalList
[
0
].
status
==
1
))
){
this
.
addM
=
true
this
.
addM
=
true
startDateTime
=
moment
(
startDate
).
add
(
1
,
"m"
).
format
(
"YYYY-MM-DD"
);
startDateTime
=
moment
(
startDate
).
add
(
1
,
"m"
).
format
(
"YYYY-MM-DD"
);
this
.
startTime
=
moment
(
startDate
).
add
(
1
,
"m"
).
format
(
"HH:mm"
);
this
.
startTime
=
moment
(
startDate
).
add
(
1
,
"m"
).
format
(
"HH:mm"
);
...
...
pages/orderResult/orderResult.vue
View file @
760bfb9b
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<view
class=
"flex-1 flex-col"
>
<view
class=
"flex-1 flex-col"
>
<view
class=
"info"
>
<view
class=
"info"
>
<text
class=
"text-title text-bold"
>
预约包间:
</text>
<text
class=
"text-title text-bold"
>
预约包间:
</text>
<text
class=
"text-title "
>
{{
orderInfo
.
roomName
||
'-'
}}{{
orderInfo
.
roomType
?
'【'
+
roomTypeEnum
[
orderInfo
.
roomType
]
+
'】'
:
''
}}
</text>
<text
class=
"text-title "
>
{{
orderInfo
.
roomName
||
'-'
}}{{
orderInfo
.
roomType
Name
?
'【'
+
orderInfo
.
roomTypeName
+
'】'
:
''
}}
</text>
</view>
</view>
<view
class=
"info"
>
<view
class=
"info"
>
<text
class=
"text-title text-bold"
>
{{
orderInfo
.
orderType
==
1
?
'下单'
:
'续单'
}}
时间:
</text>
<text
class=
"text-title text-bold"
>
{{
orderInfo
.
orderType
==
1
?
'下单'
:
'续单'
}}
时间:
</text>
...
@@ -133,6 +133,7 @@
...
@@ -133,6 +133,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
login
}
from
"@/api/index.js"
;
import
{
getDictItem
}
from
"@/utils/tools.js"
import
{
getDictItem
}
from
"@/utils/tools.js"
import
fNavbar
from
'@/components/module/f-navbar/f-navbar'
;
import
fNavbar
from
'@/components/module/f-navbar/f-navbar'
;
import
{
getOrderInfoByNo
,
orderRefund
,
openDoor
,
noLoginOpenDoor
,
noLoginGetOrderInfo
}
from
"@/api/order.js"
import
{
getOrderInfoByNo
,
orderRefund
,
openDoor
,
noLoginOpenDoor
,
noLoginGetOrderInfo
}
from
"@/api/order.js"
...
@@ -205,14 +206,42 @@
...
@@ -205,14 +206,42 @@
},
},
onLoading
(){
onLoading
(){
getOrderInfoByNo
(
this
.
orderNo
).
then
(
res
=>
{
getOrderInfoByNo
(
this
.
orderNo
).
then
(
res
=>
{
this
.
orderInfo
=
{
if
(
res
.
data
.
code
==
200
){
...
res
.
data
.
data
,
this
.
orderInfo
=
{
roomImages
:
res
.
data
.
data
.
roomImages
.
split
(
','
),
...
res
.
data
.
data
,
startDate
:
res
.
data
.
data
.
startDate
?
res
.
data
.
data
.
startDate
.
split
(
" "
)[
0
]
:
res
.
data
.
data
.
preStartDate
.
split
(
" "
)[
0
],
roomImages
:
res
.
data
.
data
.
roomImages
.
split
(
','
),
startTime
:
res
.
data
.
data
.
startDate
?
res
.
data
.
data
.
startDate
.
split
(
" "
)[
1
]
:
res
.
data
.
data
.
preStartDate
.
split
(
" "
)[
1
],
startDate
:
res
.
data
.
data
.
startDate
?
res
.
data
.
data
.
startDate
.
split
(
" "
)[
0
]
:
res
.
data
.
data
.
preStartDate
.
split
(
" "
)[
0
],
endDate
:
res
.
data
.
data
.
endDate
?
res
.
data
.
data
.
endDate
.
split
(
" "
)[
0
]
:
res
.
data
.
data
.
preEndDate
.
split
(
" "
)[
0
],
startTime
:
res
.
data
.
data
.
startDate
?
res
.
data
.
data
.
startDate
.
split
(
" "
)[
1
]
:
res
.
data
.
data
.
preStartDate
.
split
(
" "
)[
1
],
endTime
:
res
.
data
.
data
.
endDate
?
res
.
data
.
data
.
endDate
.
split
(
" "
)[
1
]
:
res
.
data
.
data
.
preEndDate
.
split
(
" "
)[
1
],
endDate
:
res
.
data
.
data
.
endDate
?
res
.
data
.
data
.
endDate
.
split
(
" "
)[
0
]
:
res
.
data
.
data
.
preEndDate
.
split
(
" "
)[
0
],
payTime
:
res
.
data
.
data
.
payTime
?
moment
(
res
.
data
.
data
.
payTime
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
:
''
endTime
:
res
.
data
.
data
.
endDate
?
res
.
data
.
data
.
endDate
.
split
(
" "
)[
1
]
:
res
.
data
.
data
.
preEndDate
.
split
(
" "
)[
1
],
payTime
:
res
.
data
.
data
.
payTime
?
moment
(
res
.
data
.
data
.
payTime
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
:
''
}
}
else
if
(
res
.
data
.
code
==
401
){
this
.
onLogin
();
}
})
},
onLogin
(){
let
that
=
this
;
wx
.
login
({
success
:
(
res
)
=>
{
login
(
res
.
code
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
data
.
type
===
"login"
)
{
uni
.
setStorageSync
(
'tokenHeaders'
,
"Authori-zation"
)
uni
.
setStorage
({
key
:
uni
.
getStorageSync
(
'tokenHeaders'
),
data
:
res
.
data
.
data
.
token
});
that
.
onLoading
();
}
}
else
{
setTimeout
(()
=>
{
that
.
onLogin
();
},
1000
)
}
})
}
}
})
})
},
},
...
...
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