Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
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
hooloo
mp
user
Commits
034dcbb5
Commit
034dcbb5
authored
Jun 26, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复订单详情等待时间获取 订单详情tabar遮挡问题
parent
2a8be8f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
orderSubPackage/pages/orderInfo/index.vue
+9
-2
request/order/index.js
+9
-0
No files found.
orderSubPackage/pages/orderInfo/index.vue
View file @
034dcbb5
...
...
@@ -10,7 +10,7 @@
<view
class=
"tips"
>
<view
v-if=
"orderInfo.state == 7"
>
为保持口感,请尽快引用哦~
</view>
<view
v-if=
"orderInfo.state == 4"
>
订单已制作完成,请尽快取餐~
</view>
<view
v-if=
"orderInfo.state == 2 || orderInfo.state == 3"
>
请您耐心等候,预计
<text
class=
"time"
>
3
</text>
分钟后可取
</view>
<view
v-if=
"orderInfo.state == 2 || orderInfo.state == 3"
>
请您耐心等候,预计
<text
class=
"time"
>
{{
waitTime
}}
</text>
分钟后可取
</view>
</view>
<div
class=
"btns"
>
<a
type=
"primary"
@
click=
"cancelOrder"
v-if=
"orderInfo.state == 1"
class=
"btn_cancel"
>
取消订单
</a>
...
...
@@ -141,7 +141,12 @@ export default {
// return
const
{
data
=
{}}
=
await
Order
.
getOrderDetail
({
orderId
:
oId
})
this
.
orderInfo
=
data
?.
data
const
getTime
=
[
'2'
,
'3'
].
indexOf
(
this
.
orderInfo
.
state
)
>=
0
const
isBuild
=
[
'4'
,
'5'
].
indexOf
(
this
.
orderInfo
.
state
)
>=
0
;
if
(
getTime
){
const
{
data
=
{}}
=
await
Order
.
getOrderWaiteTime
({
orderId
:
oId
})
this
.
waitTime
=
data
?.
data
}
if
(
isBuild
)
{
new
QRCode
(
'myQrcode'
,
{
text
:
this
.
orderInfo
.
pickCode
,
...
...
@@ -161,7 +166,8 @@ export default {
orderInfo
:
{},
ewmImg
:
''
,
Utils
,
isBuild
:
true
isBuild
:
true
,
waitTime
:
0
}
},
methods
:
{
...
...
@@ -320,6 +326,7 @@ export default {
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
z-index
:
9999
;
.tabTitle{
font-size
:
26
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
...
...
request/order/index.js
View file @
034dcbb5
...
...
@@ -114,5 +114,14 @@ export default {
// uni.showToast({ title: '服务器错误', icon: 'none' })
console
.
log
(
'服务器错误'
);
});
},
getOrderWaiteTime
(
params
)
{
return
uni
.
$u
.
http
.
get
(
`/app/getWaitTineByOrderId?orderId=
${
params
.
orderId
}
`
)
.
then
((
res
)
=>
res
)
.
catch
((
err
)
=>
{
// uni.showToast({ title: '服务器错误', icon: 'none' })
console
.
log
(
'服务器错误'
);
});
}
};
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