Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
b66914ba4fdefaa4723a0d67b2c7dee43fd9c697
1 parent
1b2d7573
order list show qrcode logic
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
template/m.yohobuy.com/partials/me/order/order.phtml
yohobuy/m.yohobuy.com/application/models/Home/Order.php
template/m.yohobuy.com/partials/me/order/order.phtml
View file @
b66914b
...
...
@@ -56,7 +56,7 @@
{{/if}}
{{#if qrcode}}
<div class="order-opt">
<a class="locHref" href="{{
codeUrl
}}">
<a class="locHref" href="{{
qrcode
}}">
<span class="btn check-logistics">查看二维码</span>
</a>
</div>
...
...
yohobuy/m.yohobuy.com/application/models/Home/Order.php
View file @
b66914b
...
...
@@ -306,14 +306,29 @@ class OrderModel
break
;
case
4
:
case
5
:
//已发货状态,给查看物流URL
//已发货状态,给查看物流
或二维码
URL
$result
[
'unreceived'
]
=
true
;
self
::
assignExpressInfo
(
$showLogistics
,
$order
,
$result
);
//门票
if
(
isset
(
$order
[
'virtual_type'
])
&&
$order
[
'virtual_type'
]
===
3
)
{
$result
[
'qrcode'
]
=
Helpers
::
url
(
'/QRcode/'
.
$order
[
'order_code'
]);
}
//非门票
else
{
self
::
assignExpressInfo
(
$showLogistics
,
$order
,
$result
);
}
break
;
case
6
:
$result
[
'completed'
]
=
true
;
// 已成功订单,给查看物流URL
self
::
assignExpressInfo
(
$showLogistics
,
$order
,
$result
);
// 已成功订单,给查看物流或二维码URL
//门票
if
(
isset
(
$order
[
'virtual_type'
])
&&
$order
[
'virtual_type'
]
===
3
)
{
$result
[
'qrcode'
]
=
Helpers
::
url
(
'/QRcode/'
.
$order
[
'order_code'
]);
}
//非门票
else
{
self
::
assignExpressInfo
(
$showLogistics
,
$order
,
$result
);
}
break
;
default
:
break
;
...
...
Please
register
or
login
to post a comment