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
088206f1d4ef13e75ed85d45e8dab9d085212179
1 parent
4b9fde15
delete assu, order status
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
yohobuy/www.yohobuy.com/application/models/Home/Order.php
yohobuy/www.yohobuy.com/application/models/Home/User.php
yohobuy/www.yohobuy.com/application/models/Home/Order.php
View file @
088206f
...
...
@@ -36,7 +36,7 @@ class OrderModel
if
(
$orderV
[
'is_cancel'
]
==
'Y'
||
$orderV
[
'status'
]
===
6
)
{
$orders
[
$orderK
][
'canDelete'
]
=
true
;
//删除订单
}
$statusInfo
=
self
::
getOrderStatus
(
$orderV
[
'is_cancel'
],
$orderV
[
'status'
],
$orderV
[
'payment_type'
],
$orderV
[
'payment_status'
]);
$statusInfo
=
self
::
getOrderStatus
(
$orderV
[
'is_cancel'
],
$orderV
[
'status'
],
$orderV
[
'payment_type'
],
$orderV
[
'payment_status'
]
,
$orderV
[
'status_str'
]
);
//订单状态
if
(
$statusInfo
[
'cancel'
])
{
$orders
[
$orderK
][
'cancel'
]
=
$statusInfo
[
'cancel'
];
...
...
@@ -507,9 +507,10 @@ class OrderModel
* @param type $status
* @param type $payType
* @param type $payStatus
* @param type $statusStr
* @return string
*/
protected
static
function
getOrderStatus
(
$isCancel
,
$status
,
$payType
,
$payStatus
)
protected
static
function
getOrderStatus
(
$isCancel
,
$status
,
$payType
,
$payStatus
,
$statusStr
=
''
)
{
//初始化:未取消,待付款
$ret
=
array
(
'cancel'
=>
FALSE
,
'keyName'
=>
'noPay'
,
'statusStr'
=>
'待付款'
);
...
...
@@ -556,6 +557,9 @@ class OrderModel
break
;
}
}
if
(
$statusStr
)
{
$ret
[
'statusStr'
]
=
$statusStr
;
}
return
$ret
;
}
...
...
@@ -630,7 +634,7 @@ class OrderModel
// 预售商品提示app操作
if
(
$attribute
==
9
)
{
$operation
=
array
(
'name'
=>
'定金预售商品只能在APP端
购买
'
);
$operation
=
array
(
'name'
=>
'定金预售商品只能在APP端
操作
'
);
}
return
$operation
;
}
...
...
yohobuy/www.yohobuy.com/application/models/Home/User.php
View file @
088206f
...
...
@@ -95,10 +95,10 @@ class UserModel
'name'
=>
'我的评论'
,
'href'
=>
Helpers
::
url
(
'/home/comment'
)
),
array
(
'name'
=>
'我的投诉'
,
'href'
=>
Helpers
::
url
(
'/home/complaints'
)
),
// array(
// 'name' => '我的投诉',
// 'href' => Helpers::url('/home/complaints')
// ),
array
(
'name'
=>
'我的信息'
,
'count'
=>
self
::
unredTotal
(
$uid
),
//获取未读消息数量
...
...
Please
register
or
login
to post a comment