Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
99a11690825dcfb79834ba4f9a8591959cf688ef
1 parent
93271746
order status string
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
template/www.yohobuy.com/partials/home/order-block.phtml
yohobuy/www.yohobuy.com/application/models/Home/Order.php
template/www.yohobuy.com/partials/home/order-block.phtml
View file @
99a1169
...
...
@@ -81,16 +81,16 @@
</div>
<div class="order-status">
{{#if noPay}}
<span class="no-pay">
等待付款
</span>
<span class="no-pay">
{{statusStr}}
</span>
{{/if}}
{{#if paid}}
<span class="paid">
待发货
</span>
<span class="paid">
{{statusStr}}
</span>
{{/if}}
{{#if shipped}}
<span class="shipped">
待收货
{{statusStr}}
{{#if virtualGoods}}
<!--虚拟商品-->
{{else}}
...
...
@@ -112,15 +112,15 @@
{{/if}}
{{#if complete}}
<span class="complete">
待发货
</span>
<span class="complete">
{{statusStr}}
</span>
{{/if}}
{{#if cancel}}
<span class="cancel">
已取消
</span>
<span class="cancel">
{{statusStr}}
</span>
{{/if}}
{{#if reback}}
<span class="reback">
交易完成
</span>
<span class="reback">
{{statusStr}}
</span>
{{/if}}
</div>
<div class="operation">
...
...
yohobuy/www.yohobuy.com/application/models/Home/Order.php
View file @
99a1169
...
...
@@ -50,6 +50,7 @@ class OrderModel
}
}
}
$orders
[
$orderK
][
'statusStr'
]
=
$statusInfo
[
'statusStr'
];
//订单商品相关信息
$opRefundStatus
=
true
;
//订单不可操作退换货
if
(
isset
(
$orderV
[
'order_goods'
])
&&
$orderV
[
'order_goods'
])
{
...
...
@@ -166,7 +167,7 @@ class OrderModel
$orderDetail
=
$orderInfo
[
'data'
];
$detail
[
'orderNum'
]
=
$orderDetail
[
'order_code'
];
//订单状态
$statusInfo
=
self
::
getOrderStatus
(
$orderDetail
[
'is_cancel'
],
$orderDetail
[
'status'
],
$orderDetail
[
'payment_type'
],
$orderDetail
[
'payment_status'
]);
$statusInfo
=
self
::
getOrderStatus
(
$orderDetail
[
'is_cancel'
],
$orderDetail
[
'status'
],
$orderDetail
[
'payment_type'
],
$orderDetail
[
'payment_status'
]
,
$orderDetail
[
'status_str'
]
);
$detail
[
'statusStr'
]
=
$statusInfo
[
'statusStr'
];
//订单是否已完成
$detail
[
'complete'
]
=
false
;
...
...
Please
register
or
login
to post a comment