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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
2 deletions
+31
-2
order.vue
pages/order/order.vue
+1
-1
orderResult.vue
pages/orderResult/orderResult.vue
+30
-1
No files found.
pages/order/order.vue
View file @
760bfb9b
...
...
@@ -1534,7 +1534,7 @@
return
;
}
else
{
let
startDateTime
=
""
;
if
(
!
this
.
addM
&&
t
!=
0
){
if
(
!
this
.
addM
&&
(
t
!=
0
||
(
t
==
0
&&
this
.
dateIntervalList
[
0
].
status
==
1
))
){
this
.
addM
=
true
startDateTime
=
moment
(
startDate
).
add
(
1
,
"m"
).
format
(
"YYYY-MM-DD"
);
this
.
startTime
=
moment
(
startDate
).
add
(
1
,
"m"
).
format
(
"HH:mm"
);
...
...
pages/orderResult/orderResult.vue
View file @
760bfb9b
...
...
@@ -36,7 +36,7 @@
<view
class=
"flex-1 flex-col"
>
<view
class=
"info"
>
<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
class=
"info"
>
<text
class=
"text-title text-bold"
>
{{
orderInfo
.
orderType
==
1
?
'下单'
:
'续单'
}}
时间:
</text>
...
...
@@ -133,6 +133,7 @@
</
template
>
<
script
>
import
{
login
}
from
"@/api/index.js"
;
import
{
getDictItem
}
from
"@/utils/tools.js"
import
fNavbar
from
'@/components/module/f-navbar/f-navbar'
;
import
{
getOrderInfoByNo
,
orderRefund
,
openDoor
,
noLoginOpenDoor
,
noLoginGetOrderInfo
}
from
"@/api/order.js"
...
...
@@ -205,6 +206,7 @@
},
onLoading
(){
getOrderInfoByNo
(
this
.
orderNo
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
orderInfo
=
{
...
res
.
data
.
data
,
roomImages
:
res
.
data
.
data
.
roomImages
.
split
(
','
),
...
...
@@ -214,6 +216,33 @@
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
)
}
})
}
})
},
onGetOrderInfo
(){
...
...
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