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
5cae7c58
Commit
5cae7c58
authored
May 13, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
10559ee4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
34 deletions
+20
-34
toolBox.vue
components/toolBox/toolBox.vue
+15
-32
order.vue
pages/order/order.vue
+0
-0
orderRecord.vue
pages/orderRecord/orderRecord.vue
+4
-1
orderResult.vue
pages/orderResult/orderResult.vue
+1
-1
No files found.
components/toolBox/toolBox.vue
View file @
5cae7c58
...
...
@@ -112,44 +112,27 @@
onGetOrderByAvailable
(
i
){
getOrderByAvailable
().
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
){
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
length
===
1
){
this
.
orderInfo
=
res
.
data
.
data
[
0
];
if
(
i
===
3
){
if
(
this
.
orderInfo
.
status
==
1
){
// 去续单
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
length
){
let
arr
=
res
.
data
.
data
.
filter
(
item
=>
item
.
status
);
if
(
arr
.
length
&&
arr
.
length
==
1
){
this
.
orderInfo
=
arr
[
0
];
if
(
i
==
3
){
// 续单
uni
.
navigateTo
({
url
:
`/pages/order/order?
roomId=
${
this
.
orderInfo
.
roomId
}
&
orderNo=
${
this
.
orderInfo
.
orderNo
}
`
url
:
`/pages/order/order?orderNo=
${
this
.
orderInfo
.
orderNo
}
`
})
}
else
{
uni
.
showToast
({
icon
:
"none"
,
title
:
"无使用中的订单,无法续单哦!"
})
}
}
else
{
// 去开门
}
else
{
// 开门
this
.
onOpenDoor
()
}
}
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
===
3
){
// 去续单
uni
.
navigateTo
({
url
:
`/pages/order/order?roomId=
${
this
.
orderInfo
.
roomId
}
&orderNo=
${
this
.
orderInfo
.
orderNo
}
`
}
else
if
(
arr
.
length
&&
arr
.
length
>
1
){
uni
.
switchTab
({
url
:
"/pages/orderRecord/orderRecord?index=2"
})
}
else
{
// 去开门
this
.
onOpenDoor
()
}
}
else
{
uni
.
switchTab
({
url
:
"/pages/orderRecord/orderRecord"
uni
.
showToast
({
icon
:
"none"
,
title
:
"暂无可用的订单,请先下单预约哦!"
})
}
}
else
{
...
...
pages/order/order.vue
View file @
5cae7c58
This diff is collapsed.
Click to expand it.
pages/orderRecord/orderRecord.vue
View file @
5cae7c58
...
...
@@ -182,7 +182,10 @@ import NoLogin from "@/components/noLogin/noLogin"
listBlankImage
:
config
.
assetsPath
+
'/no_data_icon.png'
,
};
},
onLoad
()
{
onLoad
(
option
)
{
if
(
option
.
index
){
this
.
statusIndex
=
option
.
index
}
// 隐藏原生的tabbar
uni
.
hideTabBar
();
},
...
...
pages/orderResult/orderResult.vue
View file @
5cae7c58
...
...
@@ -101,7 +101,7 @@
<view
class=
"part"
>
<button
class=
"cu-btn block round line-pink lg"
open-type=
"share"
>
分享好友
</button>
</view>
<view
v-if=
"
continStatus || orderInfo.status ==1
"
class=
"part"
>
<view
v-if=
"
continStatus || orderInfo.status ==1
"
class=
"part"
>
<button
class=
"cu-btn block round bg-mauve lg"
@
tap=
"onCheckLogin"
>
房间续单
</button>
</view>
</view>
...
...
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