Authored by hf

modify cart chose-panel use tpl render front to end

framework @ 75bbc3b0
Subproject commit e9d066dd88a8e7e37103021c427a205a5cfcdcec
Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2
... ...
{{> cart/chose-panel}}
\ No newline at end of file
... ...
... ... @@ -65,6 +65,6 @@
<div class="btn-wrap">
<button id="chose-btn-sure" class="btn btn-sure">确定</button>
</div>
</div>
</div>
{{/cartInfo}}
\ No newline at end of file
</div>
{{/cartInfo}}
\ No newline at end of file
... ...
... ... @@ -192,15 +192,15 @@ class IndexController extends AbstractAction
$this->echoJson($result);
}
/*
* 获取购物车加价购商品数据模板
*/
public function giftinfoTplAction()
{
if ($this->isAjax()) {
echo file_get_contents($this->_view->getScriptPath() . '/../partials/cart/chose-panel.phtml');
}
}
// /*
// * 获取购物车加价购商品数据模板
// */
// public function giftinfoTplAction()
// {
// if ($this->isAjax()) {
// echo file_get_contents($this->_view->getScriptPath() . '/../partials/cart/chose-panel.phtml');
// }
// }
/*
* 获取购物车加价购商品数据
... ... @@ -215,7 +215,7 @@ class IndexController extends AbstractAction
$result = CartModel::giftProductData($skn, $promotionId);
}
$this->echoJson($result);
$this->_view->display('gift-info', $result);
}
/**
... ...