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
eb05cafd
Commit
eb05cafd
authored
Jan 25, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开门和续单快捷入口功能优化
parent
e4e896dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
toolBox.vue
components/toolBox/toolBox.vue
+25
-0
No files found.
components/toolBox/toolBox.vue
View file @
eb05cafd
...
@@ -108,10 +108,18 @@
...
@@ -108,10 +108,18 @@
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
length
===
1
){
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
length
===
1
){
this
.
orderInfo
=
res
.
data
.
data
[
0
];
this
.
orderInfo
=
res
.
data
.
data
[
0
];
if
(
i
===
1
){
if
(
i
===
1
){
if
(
this
.
orderInfo
.
status
==
1
){
// 去续单
// 去续单
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/order/order?roomId=
${
this
.
orderInfo
.
roomId
}
&orderNo=
${
this
.
orderInfo
.
orderNo
}
`
url
:
`/pages/order/order?roomId=
${
this
.
orderInfo
.
roomId
}
&orderNo=
${
this
.
orderInfo
.
orderNo
}
`
})
})
}
else
{
uni
.
showToast
({
icon
:
"none"
,
title
:
"无使用中的订单,无法预单哦!"
})
}
}
else
{
}
else
{
// 去开门
// 去开门
...
@@ -119,9 +127,26 @@
...
@@ -119,9 +127,26 @@
}
}
}
else
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
length
>
1
){
}
else
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
length
>
1
){
let
list
=
res
.
data
.
data
.
filter
(
item
=>
item
.
status
==
1
)
if
(
list
.
length
===
1
){
this
.
orderInfo
=
list
[
0
];
if
(
i
===
1
){
// 去续单
uni
.
navigateTo
({
url
:
`/pages/order/order?roomId=
${
this
.
orderInfo
.
roomId
}
&orderNo=
${
this
.
orderInfo
.
orderNo
}
`
})
}
else
{
// 去开门
this
.
onOpenDoor
()
}
}
else
{
uni
.
switchTab
({
uni
.
switchTab
({
url
:
"/pages/orderRecord/orderRecord"
url
:
"/pages/orderRecord/orderRecord"
})
})
}
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
icon
:
"none"
,
icon
:
"none"
,
...
...
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