|
@@ -19,8 +19,8 @@ class Appindex extends Api
|
|
|
*/
|
|
|
public function getIndexOne()
|
|
|
{
|
|
|
- $topUrl =$this->getTopUrl();
|
|
|
- $data['topUrl']=$topUrl;
|
|
|
+ /* $topUrl =$this->getTopUrl();
|
|
|
+ $data['topUrl']=$topUrl;*/
|
|
|
$banner =$this->getBanner('轮播图');
|
|
|
$data['banner']=$banner;
|
|
|
$category =$this->getBanner('分类');
|
|
@@ -41,9 +41,9 @@ class Appindex extends Api
|
|
|
}
|
|
|
return $new;
|
|
|
}
|
|
|
- public function getTopUrl()
|
|
|
+ public function getTopUrl($code)
|
|
|
{
|
|
|
- $block =$this->getBlock('顶部链接');
|
|
|
+ $block =$this->getBlock($code);
|
|
|
$new['title'] = $block['title'];
|
|
|
$new['name'] = $block['name'];
|
|
|
$new['link'] = $block['link'];
|