Authored by 郝肖肖

订单确认页面 统计代码

@@ -231,10 +231,19 @@ class IndexController extends WebAction @@ -231,10 +231,19 @@ class IndexController extends WebAction
231 if (empty($orderEnsure)) { 231 if (empty($orderEnsure)) {
232 $this->go(Helpers::url('/shopping/cart')); 232 $this->go(Helpers::url('/shopping/cart'));
233 } 233 }
234 - 234 +
  235 + $productListArr = array();
  236 + foreach ($orderEnsure['orderProducts'] as $orderProducts) {
  237 + $productListArr[] = $orderProducts['id'] . ',' . $orderProducts['productNum'];
  238 + }
  239 +
235 $this->_view->display('order-ensure', array( 240 $this->_view->display('order-ensure', array(
236 'orderEnsurePage' => true, 241 'orderEnsurePage' => true,
237 'orderEnsure' => $orderEnsure, 242 'orderEnsure' => $orderEnsure,
  243 + 'pinyou' => array(
  244 + 'money' => $orderEnsure['lastOrderAmount'],
  245 + 'productList' => implode(';', $productListArr)
  246 + )
238 )); 247 ));
239 } 248 }
240 249