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
Rock Zhang
9 years ago
Commit
12d10b4dca96795e63aad1f4d63434b3756a8706
1 parent
e3ee1e6a
修复模板加价购和赠品模板请求接口返回的bug,需要返回模板的html代码,不能渲染
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
template/m.yohobuy.com/actions/cart/index/gift-tpl.phtml
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
template/m.yohobuy.com/actions/cart/index/gift-tpl.phtml
deleted
100644 → 0
View file @
e3ee1e6
{
{>
cart/chose-panel
}
}
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
12d10b4
...
...
@@ -193,11 +193,12 @@ class IndexController extends AbstractAction
/*
* 获取购物车加价购商品数据模板
* 需要返回模板的html代码,不能渲染
*/
public
function
giftinfoTplAction
()
{
if
(
$this
->
isAjax
())
{
$this
->
_view
->
display
(
'gift-tp
l'
);
echo
file_get_contents
(
$this
->
_view
->
getScriptPath
()
.
'/../partials/cart/chose-panel.phtm
l'
);
}
}
...
...
@@ -208,11 +209,11 @@ class IndexController extends AbstractAction
{
$result
=
array
();
//
if ($this->isAjax()) {
if
(
$this
->
isAjax
())
{
$skn
=
$this
->
get
(
'skn'
,
null
);
$promotionId
=
$this
->
get
(
'promotionId'
,
null
);
$result
=
CartModel
::
giftProductData
(
$skn
,
$promotionId
);
//
}
}
if
(
empty
(
$result
))
{
echo
' '
;
...
...
Please
register
or
login
to post a comment