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
cailing
9 years ago
Commit
72aef625840721bcec08e7dccaf517ffab4a4a0a
1 parent
4e379816
取消订单再次购买
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
web-static/js/cart/cart.js
yohobuy/www.yohobuy.com/application/models/Home/Order.php
web-static/js/cart/cart.js
View file @
72aef62
...
...
@@ -137,7 +137,7 @@ function scrollToFirst(){
if
(
$selected
.
length
>
0
){
$selected
=
$selected
.
eq
(
0
);
}
top
=
$selected
.
offset
().
top
-
50
;
top
=
$selected
.
offset
().
top
-
36
;
$
(
'html,body'
).
scrollTop
(
top
);
return
false
;
}
...
...
yohobuy/www.yohobuy.com/application/models/Home/Order.php
View file @
72aef62
...
...
@@ -568,6 +568,10 @@ class OrderModel
$exchangeUrl
=
Helpers
::
url
(
'/home/returns/exchangeRequest'
,
array
(
'orderCode'
=>
$orderCode
));
//申请退货
$refundUrl
=
Helpers
::
url
(
'/home/returns/refundrequest'
,
array
(
'orderCode'
=>
$orderCode
));
//再次购买
if
(
$isCancel
==
'Y'
)
{
$operation
[]
=
array
(
'name'
=>
'再次购买'
,
'reBuy'
=>
true
);
}
//立即付款
if
(
$payStatus
==
'N'
&&
$paymentType
!=
2
&&
$isCancel
==
'N'
)
{
$operation
[]
=
array
(
'payNow'
=>
true
,
'href'
=>
$payUrl
);
...
...
@@ -600,10 +604,8 @@ class OrderModel
if
(
$status
>=
6
&&
$time
<
86400
*
$orderRefundLimitTime
&&
$attribute
!=
3
&&
$isCancel
==
'N'
)
{
$operation
[]
=
array
(
'href'
=>
$refundUrl
,
'name'
=>
'申请退货'
,
'optDis'
=>
$opRefundStatus
);
}
//再次购买
if
(
$isCancel
==
'Y'
)
{
$operation
[]
=
array
(
'name'
=>
'再次购买'
,
'reBuy'
=>
true
);
}
return
$operation
;
}
...
...
Please
register
or
login
to post a comment