Authored by 郭成尧

title可以设置

... ... @@ -22,12 +22,9 @@ class CouponController extends AbstractAction
*/
public function floorAction()
{
if (!$this->isApp()) {
$this->setNavHeader('领券中心', true, SITE_MAIN);
}
$receiveData = filter_input_array(INPUT_GET, array(
'code' => FILTER_DEFAULT
'code' => FILTER_DEFAULT,
'title' => FILTER_DEFAULT,
));
$result = array();
$uid = '';
... ... @@ -39,17 +36,17 @@ class CouponController extends AbstractAction
$resource = CouponData::getCouponRousource($receiveData['code'], $uid);
if (isset($resource['code']) && $resource['code'] === 200) {
$result = CouponFloorProcess::getContent($resource['data']);
}else{
$this->_view->display('index', array(
'content' => array(
'noData' => true,
),
'floorPage' => true
));
} else {
$result['noData'] = true;
}
// 分享
$shareData = CouponFloorProcess::getShare($receiveData['code'], '领券中心');
$result[count($result)] = $shareData;
if (!$this->isApp()) {
$this->setNavHeader($receiveData['title'], true, SITE_MAIN);
} else {
$this->setTitle($receiveData['title']);
}
$this->_view->display('index', array(
'content' => $result,
'floorPage' => true
... ...