Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
12b61e26aa8400cb03d7b7d5680bb0e9f28bbc5c
1 parent
7a7fe887
fixes bug to product detail page recom reference
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
template/m.yohobuy.com/actions/cart/index/gift-tpl.phtml
template/m.yohobuy.com/partials/product/recommend-content.phtml
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
template/m.yohobuy.com/actions/cart/index/gift-tpl.phtml
0 → 100644
View file @
12b61e2
{
{>
cart/chose-panel
}
}
...
...
template/m.yohobuy.com/partials/product/recommend-content.phtml
View file @
12b61e2
...
...
@@ -5,8 +5,8 @@
<a class="swiper-slide" href="{{url}}">
<img class="swiper-lazy img-box" data-src="{{thumb}}">
<div class="price">
<span class="sale-price {{^price}}no-price{{/price}}">¥{{salePrice}}</span>
{{#price}}<span class="old-price">¥{{.}}</span>{{/price}}
<span class="sale-price {{^price}}no-price{{/price}}">¥{{salePrice}}</span>
{{#price}}<span class="old-price">¥{{.}}</span>{{/price}}
</div>
<div class="swiper-lazy-preloader"></div>
</a>
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
12b61e2
...
...
@@ -49,6 +49,7 @@ class IndexController extends AbstractAction
// 渲染模板
$this
->
_view
->
display
(
'index'
,
$data
);
}
/*
* 异步获取购物车数据
*/
...
...
@@ -80,7 +81,7 @@ class IndexController extends AbstractAction
if
(
$this
->
isAjax
())
{
$productId
=
$this
->
post
(
'id'
,
0
);
$uid
=
$this
->
getUid
(
true
);
$shoppingKey
=
$this
->
getSession
(
'shoppingKey'
);
$shoppingKey
=
Helpers
::
getShoppingKeyByCookie
(
);
$result
=
CartModel
::
selectGoods
(
$uid
,
$productId
,
$shoppingKey
);
}
...
...
@@ -101,7 +102,7 @@ class IndexController extends AbstractAction
if
(
$this
->
isAjax
())
{
$productId
=
$this
->
post
(
'id'
,
0
);
$uid
=
$this
->
getUid
(
true
);
$shoppingKey
=
$this
->
getSession
(
'shoppingKey'
);
$shoppingKey
=
Helpers
::
getShoppingKeyByCookie
(
);
$result
=
CartModel
::
removeFromCart
(
$uid
,
$productId
,
$shoppingKey
);
}
...
...
@@ -196,7 +197,7 @@ class IndexController extends AbstractAction
public
function
giftinfoTplAction
()
{
if
(
$this
->
isAjax
())
{
echo
file_get_contents
(
$this
->
_view
->
getScriptPath
()
.
'/../partials/cart/chose-panel.phtm
l'
);
$this
->
_view
->
display
(
'gift-tp
l'
);
}
}
...
...
@@ -228,7 +229,7 @@ class IndexController extends AbstractAction
$result
=
array
();
if
(
$this
->
isAjax
())
{
$shoppingKey
=
$this
->
getSession
(
'shoppingKey'
);
$shoppingKey
=
Helpers
::
getShoppingKeyByCookie
(
);
$uid
=
$this
->
getUid
(
true
);
$sku
=
$this
->
post
(
'sku'
,
0
);
...
...
@@ -252,7 +253,7 @@ class IndexController extends AbstractAction
$result
=
array
();
if
(
$this
->
isAjax
())
{
$shoppingKey
=
$this
->
getSession
(
'shoppingKey'
);
$shoppingKey
=
Helpers
::
getShoppingKeyByCookie
(
);
$uid
=
$this
->
getUid
(
true
);
$params
=
array
();
...
...
Please
register
or
login
to post a comment