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
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
ca5646ec0dd0465bd3e18f33094ae65063549fa8
2 parents
e7137e58
5c34bfac
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
static/sass/home/_side-nav.scss
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
static/sass/home/_side-nav.scss
View file @
ca5646e
...
...
@@ -7,7 +7,7 @@
left
:
0
;
right
:
100rem
/
$pxConvertRem
;
width
:
540rem
/
$pxConvertRem
;
z-index
:
1
;
z-index
:
4
;
overflow
:
hidden
;
@include
transition
(
all
.3s
);
...
...
@@ -188,4 +188,4 @@
display
:
block
;
@include
transform
(
translateX
(
0
));
@include
transition
(
transform
0
.3s
);
}
\ No newline at end of file
}
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
ca5646e
...
...
@@ -324,6 +324,12 @@ class CartModel
$pay
=
CartData
::
cartPay
(
$uid
,
$cartType
);
// 商品为空返回
if
(
!
$pay
||
(
isset
(
$pay
[
'data'
][
'goods_list'
])
&&
empty
(
$pay
[
'data'
][
'goods_list'
])))
{
$result
[
'cartUrl'
]
=
Helpers
::
url
(
'/cart/index/index'
);
return
$result
;
}
if
(
$pay
&&
isset
(
$pay
[
'code'
])
&&
$pay
[
'code'
]
===
200
)
{
$payReturn
=
$pay
[
'data'
];
$address
=
array
();
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
ca5646e
...
...
@@ -283,22 +283,17 @@ class IndexController extends AbstractAction
$orderInfo
=
json_decode
(
$cookieData
,
true
);
$cartType
=
$orderInfo
[
'cartType'
];
}
$cartKey
=
'commonCart'
;
if
(
$cartType
===
'advance'
)
{
$cartKey
=
'preSellCart'
;
}
$shoppingKey
=
Helpers
::
getShoppingKeyByCookie
();
$uid
=
$this
->
getUid
(
true
);
$cartGoods
=
CartModel
::
getCartData
(
$uid
,
$shoppingKey
);
if
(
isset
(
$cartGoods
[
'isEmptyCart'
])
||
empty
(
$cartGoods
[
$cartKey
]))
{
$this
->
go
(
Helpers
::
url
(
'/cart/index/index'
));
$order
=
CartModel
::
cartPay
(
$uid
,
$cartType
,
$orderInfo
);
if
(
isset
(
$order
[
'cartUrl'
]))
{
$this
->
go
(
$order
[
'cartUrl'
]);
}
$data
=
array
(
'orderEnsurePage'
=>
true
,
'isOrdinaryCart'
=>
(
$cartType
!==
'advance'
),
'orderEnsure'
=>
CartModel
::
cartPay
(
$uid
,
$cartType
,
$orderInfo
)
'orderEnsure'
=>
$order
);
$this
->
_view
->
display
(
'order-ensure'
,
$data
);
...
...
Please
register
or
login
to post a comment