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
f091c4b9aa993e1ef53b9a6400f834aa6384a4a1
1 parent
280dbb83
order tips
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
yohobuy/www.yohobuy.com/application/models/Home/Order.php
yohobuy/www.yohobuy.com/application/models/Home/Order.php
View file @
f091c4b
...
...
@@ -83,7 +83,7 @@ class OrderModel
$orders
[
$orderK
][
'fregit'
]
=
$orderV
[
'shipping_cost'
];
//邮费
}
//操作
$orders
[
$orderK
][
'operation'
]
=
self
::
getOperateInfo
(
$orderV
[
'attribute'
],
$orderV
[
'is_cancel'
],
$orderV
[
'status'
],
$orderV
[
'payment_status'
],
$orderV
[
'update_time'
],
$orderV
[
'order_type'
],
$orderV
[
'refund_status'
],
$orderV
[
'payment_type'
],
$orderV
[
'order_code'
],
$opRefundStatus
);
$orders
[
$orderK
][
'operation'
]
=
self
::
getOperateInfo
(
$orderV
[
'attribute'
],
$orderV
[
'is_cancel'
],
$orderV
[
'status'
],
$orderV
[
'payment_status'
],
$orderV
[
'update_time'
],
$orderV
[
'order_type'
],
$orderV
[
'refund_status'
],
$orderV
[
'payment_type'
],
$orderV
[
'order_code'
],
$opRefundStatus
,
$orderV
[
'use_limit_code'
]
);
if
(
$orderV
[
'attribute'
]
*
1
===
3
)
{
//包含虚拟商品,订单列表不显示物流属性
...
...
@@ -571,9 +571,10 @@ class OrderModel
* @param type $paymentType 付款类型
* @param type $orderCode 订单号
* @param type $opRefundStatus 退换操作是否灰化 true 灰化 false 可用
* @param type $useLimitCode 使用限购码 N(默认), Y
* @return string
*/
protected
static
function
getOperateInfo
(
$attribute
,
$isCancel
,
$status
,
$payStatus
,
$updateTime
,
$orderType
,
$refundStatus
,
$paymentType
,
$orderCode
,
$opRefundStatus
)
protected
static
function
getOperateInfo
(
$attribute
,
$isCancel
,
$status
,
$payStatus
,
$updateTime
,
$orderType
,
$refundStatus
,
$paymentType
,
$orderCode
,
$opRefundStatus
=
false
,
$useLimitCode
=
'N'
)
{
//查看订单
$orderDetailUrl
=
Helpers
::
url
(
'/home/orders/detail'
,
array
(
'orderCode'
=>
$orderCode
));
...
...
@@ -590,8 +591,8 @@ class OrderModel
$exchangeUrl
=
Helpers
::
url
(
'/home/returns/exchangeRequest'
,
array
(
'orderCode'
=>
$orderCode
));
//申请退货
$refundUrl
=
Helpers
::
url
(
'/home/returns/refundrequest'
,
array
(
'orderCode'
=>
$orderCode
));
//再次购买
if
(
$isCancel
==
'Y'
)
{
//再次购买 use_limit_code
if
(
$isCancel
==
'Y'
&&
$useLimitCode
!==
'Y'
)
{
$operation
[]
=
array
(
'name'
=>
'再次购买'
,
'reBuy'
=>
true
);
}
//立即付款
...
...
@@ -627,6 +628,10 @@ class OrderModel
$operation
[]
=
array
(
'href'
=>
$refundUrl
,
'name'
=>
'申请退货'
,
'optDis'
=>
$opRefundStatus
);
}
// 预售商品提示app操作
if
(
$attribute
==
9
)
{
$operation
=
array
(
'name'
=>
'定金预售商品只能在APP端购买'
);
}
return
$operation
;
}
...
...
Please
register
or
login
to post a comment