...
|
...
|
@@ -15,20 +15,12 @@ use think\Db; |
|
|
class IndexController extends HomeBaseController
|
|
|
{
|
|
|
|
|
|
public function _initialize(){
|
|
|
|
|
|
parent::_initialize();
|
|
|
$data = Db::name('slide_item') -> where('slide_id',3) -> find();
|
|
|
$this -> assign('logo',$data);
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
//首页显示
|
|
|
public function index()
|
|
|
{
|
|
|
|
|
|
|
|
|
$data = Db::name('slide_item') -> where('slide_id',3) -> find();
|
|
|
$this -> assign('logo',$data);
|
|
|
$lunbo = Db::name('slide_item') -> where('slide_id',4) -> select();
|
|
|
$this -> assign('lunbo',$lunbo);
|
|
|
return $this->fetch(':index');
|
...
|
...
|
|