...
|
...
|
@@ -143,11 +143,11 @@ class IndexController extends AbstractAction |
|
|
$shoppingKey = Helpers::getShoppingKeyByCookie();
|
|
|
$uid = $this->getUid(true);
|
|
|
$cartType = $this->get('cartType', 'ordinary');
|
|
|
$data = array('shoppingCartPage' => true);
|
|
|
$data = array('giftPage' => true);
|
|
|
$data += CartModel::getCartData($uid, $shoppingKey, $cartType, true);
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('gift-advance-good', $data);
|
|
|
$this->_view->display('gift-advance', $data);
|
|
|
}
|
|
|
|
|
|
/*
|
...
|
...
|
@@ -161,11 +161,11 @@ class IndexController extends AbstractAction |
|
|
$shoppingKey = Helpers::getShoppingKeyByCookie();
|
|
|
$uid = $this->getUid(true);
|
|
|
$cartType = $this->get('cartType', 'ordinary');
|
|
|
$data = array('shoppingCartPage' => true);
|
|
|
$data = array('advanceBuyPage' => true);
|
|
|
$data += CartModel::getCartData($uid, $shoppingKey, $cartType, false, true);
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('gift-advance-good', $data);
|
|
|
$this->_view->display('gift-advance', $data);
|
|
|
}
|
|
|
|
|
|
/*
|
...
|
...
|
@@ -425,10 +425,10 @@ class IndexController extends AbstractAction |
|
|
$this->echoJson($result);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 加入购物车
|
|
|
*
|
|
|
*
|
|
|
* @param string productSku 商品的SKU
|
|
|
* @param int buyNumber 购买数量
|
|
|
* @param int promotionId 促销ID, 加价购有关
|
...
|
...
|
@@ -460,5 +460,5 @@ class IndexController extends AbstractAction |
|
|
|
|
|
$this->echoJson($result);
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|