public function index(){
//查询轮播图
$slide = new SlideModel();
$slides = $slide->select()->toArray();
$this->view->slides = $slides;
//查询头牌
$product = new ProductModel();
$products = $product->where('sort','1')->select()->toArray();
$this->view->products = $products;
//查询线上花魁
$NewProduct = $product->where('sort','2')->limit(1)->select()->toArray();
$this->view->NewProduct = $NewProduct;
//查询最新资讯
$new = new NewsModel();
$news = $new->limit(4)->select()->toArray();
$this->view->news=$news;
//渲染首页模板
return $this->fetch();
}