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 @@
...
@@ -112,44 +112,27 @@
onGetOrderByAvailable
(
i
){
onGetOrderByAvailable
(
i
){
getOrderByAvailable
().
then
(
res
=>
{
getOrderByAvailable
().
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
){
if
(
res
.
data
.
code
===
200
){
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
length
===
1
){
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
length
){
this
.
orderInfo
=
res
.
data
.
data
[
0
];
let
arr
=
res
.
data
.
data
.
filter
(
item
=>
item
.
status
);
if
(
i
===
3
){
if
(
arr
.
length
&&
arr
.
length
==
1
){
if
(
this
.
orderInfo
.
status
==
1
){
this
.
orderInfo
=
arr
[
0
];
// 去续单
if
(
i
==
3
){
// 续单
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/order/order?
roomId=
${
this
.
orderInfo
.
roomId
}
&
orderNo=
${
this
.
orderInfo
.
orderNo
}
`
url
:
`/pages/order/order?orderNo=
${
this
.
orderInfo
.
orderNo
}
`
})
})
}
else
{
}
else
{
uni
.
showToast
({
// 开门
icon
:
"none"
,
title
:
"无使用中的订单,无法续单哦!"
})
}
}
else
{
// 去开门
this
.
onOpenDoor
()
this
.
onOpenDoor
()
}
}
}
else
if
(
arr
.
length
&&
arr
.
length
>
1
){
}
else
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
length
>
1
){
uni
.
switchTab
({
url
:
"/pages/orderRecord/orderRecord?index=2"
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
{
// 去开门
this
.
onOpenDoor
()
}
}
else
{
}
else
{
uni
.
switchTab
({
uni
.
showToast
({
url
:
"/pages/orderRecord/orderRecord"
icon
:
"none"
,
title
:
"暂无可用的订单,请先下单预约哦!"
})
})
}
}
}
else
{
}
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"
...
@@ -182,7 +182,10 @@ import NoLogin from "@/components/noLogin/noLogin"
listBlankImage
:
config
.
assetsPath
+
'/no_data_icon.png'
,
listBlankImage
:
config
.
assetsPath
+
'/no_data_icon.png'
,
};
};
},
},
onLoad
()
{
onLoad
(
option
)
{
if
(
option
.
index
){
this
.
statusIndex
=
option
.
index
}
// 隐藏原生的tabbar
// 隐藏原生的tabbar
uni
.
hideTabBar
();
uni
.
hideTabBar
();
},
},
...
...
pages/orderResult/orderResult.vue
View file @
5cae7c58
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
<view
class=
"part"
>
<view
class=
"part"
>
<button
class=
"cu-btn block round line-pink lg"
open-type=
"share"
>
分享好友
</button>
<button
class=
"cu-btn block round line-pink lg"
open-type=
"share"
>
分享好友
</button>
</view>
</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>
<button
class=
"cu-btn block round bg-mauve lg"
@
tap=
"onCheckLogin"
>
房间续单
</button>
</view>
</view>
</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