Authored by hf

modify cart chose-panel use tpl render front to end

framework @ 75bbc3b0
1 -Subproject commit e9d066dd88a8e7e37103021c427a205a5cfcdcec 1 +Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2
@@ -65,6 +65,6 @@ @@ -65,6 +65,6 @@
65 <div class="btn-wrap"> 65 <div class="btn-wrap">
66 <button id="chose-btn-sure" class="btn btn-sure">确定</button> 66 <button id="chose-btn-sure" class="btn btn-sure">确定</button>
67 </div> 67 </div>
68 -</div>  
69 </div> 68 </div>
70 - {{/cartInfo}}  
  69 +</div>
  70 +{{/cartInfo}}
@@ -192,15 +192,15 @@ class IndexController extends AbstractAction @@ -192,15 +192,15 @@ class IndexController extends AbstractAction
192 $this->echoJson($result); 192 $this->echoJson($result);
193 } 193 }
194 194
195 - /*  
196 - * 获取购物车加价购商品数据模板  
197 - */  
198 - public function giftinfoTplAction()  
199 - {  
200 - if ($this->isAjax()) {  
201 - echo file_get_contents($this->_view->getScriptPath() . '/../partials/cart/chose-panel.phtml');  
202 - }  
203 - } 195 +// /*
  196 +// * 获取购物车加价购商品数据模板
  197 +// */
  198 +// public function giftinfoTplAction()
  199 +// {
  200 +// if ($this->isAjax()) {
  201 +// echo file_get_contents($this->_view->getScriptPath() . '/../partials/cart/chose-panel.phtml');
  202 +// }
  203 +// }
204 204
205 /* 205 /*
206 * 获取购物车加价购商品数据 206 * 获取购物车加价购商品数据
@@ -215,7 +215,7 @@ class IndexController extends AbstractAction @@ -215,7 +215,7 @@ class IndexController extends AbstractAction
215 $result = CartModel::giftProductData($skn, $promotionId); 215 $result = CartModel::giftProductData($skn, $promotionId);
216 } 216 }
217 217
218 - $this->echoJson($result); 218 + $this->_view->display('gift-info', $result);
219 } 219 }
220 220
221 /** 221 /**