...
|
...
|
@@ -8,7 +8,7 @@ |
|
|
*/
|
|
|
|
|
|
use Action\AbstractAction;
|
|
|
use LibModels\Wap\Shop\IntroData;
|
|
|
use LibModels\Wap\Shop\ShopData;
|
|
|
|
|
|
class IndexController extends AbstractAction
|
|
|
{
|
...
|
...
|
@@ -39,7 +39,7 @@ class IndexController extends AbstractAction |
|
|
$result = array();
|
|
|
// 假数据
|
|
|
$result = $this->getCategoryContent();
|
|
|
$result2 = IntroData::getShopIntro(356);
|
|
|
$result2 = ShopData::getShopIntro(356);
|
|
|
|
|
|
return $this->_view->display('category', array(
|
|
|
'content' => $result,
|
...
|
...
|
@@ -53,15 +53,18 @@ class IndexController extends AbstractAction |
|
|
*/
|
|
|
public function introAction()
|
|
|
{
|
|
|
$requestData = filter_input_array(INPUT_GET, array(
|
|
|
'shopId' => FILTER_DEFAULT,
|
|
|
));
|
|
|
if (empty($requestData['shopId'])) {
|
|
|
$this->go(SITE_MAIN);
|
|
|
}
|
|
|
$result = array();
|
|
|
// 假数据
|
|
|
$result = $this->getIntroContent();
|
|
|
// $requestData = filter_input_array(INPUT_GET, array(
|
|
|
// 'shopId' => FILTER_DEFAULT,
|
|
|
// ));
|
|
|
// if (empty($requestData['shopId'])) {
|
|
|
// $this->go(SITE_MAIN);
|
|
|
// }
|
|
|
$resource = ShopData::getShopIntro($requestData['shopId']);
|
|
|
if($resource['code'] === 200){
|
|
|
$result = $resource['data'];
|
|
|
}
|
|
|
return $this->_view->display('intro', array(
|
|
|
'content' => $result,
|
|
|
));
|
...
|
...
|
|