国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

小型企業(yè)站前臺模塊

Original 2019-06-17 16:17:32 261
abstract:<?phpnamespace app\index\controller;use think\Controller;use think\facade\Request;use app\index\model\Product;use app\index\model\Slide;use app\index\model\Newsl;use app\index\model\System;use app\

<?php

namespace app\index\controller;


use think\Controller;

use think\facade\Request;

use app\index\model\Product;

use app\index\model\Slide;

use app\index\model\Newsl;

use app\index\model\System;

use app\index\model\Product as Db;



class Index extends Controller

{

    public function index()

    {

    //輪播圖

    $lunbo = Slide::order('slide_id')->limit(4)->all();

    //查詢頭牌

    $toupan = Product::order('product_id')->limit(4)->all();


    //最新資訊

    $zixun  = Newsl::order('news_id')->limit(2)->all();


    //新上花魁

    $huakui = Product::order('product_id')->limit(1)->all();

    $this->assign('toupan',$toupan);

    $this->assign('huakui',$huakui);

    $this->assign('zixun',$zixun);

    $this->assign('lunbo',$lunbo);

   

       return $this->fetch();

    }

    public function about()

    {


       $gyu = System::all();

       $this->assign('gyu',$gyu);

       return $this->fetch();

    }

    public function connew()

    {


    $data = Request::param();



    $news_id = $data['news_id'];


    $news = Newsl::where('news_id',$news_id)->find();


    //查詢熱門新聞一條

    $newsrm = Newsl::order('news_id','desc')->find();

   

    $this->assign('newsrm',$newsrm);


    $this->assign('news',$news);

   

       return $this->fetch();

    }

    public function conpro()

    {

       return $this->fetch();

    }

    public function news()

    {

    //查詢新聞熱點兩條

    $newsrmx = Newsl::order('news_id')->limit(2)->all();


    //查詢熱門新聞一條

    $newsrm = Newsl::order('news_id','desc')->limit(1)->all();


    //查詢最新發(fā)布

    $newszx = Newsl::order('news_id','desc')->limit(4)->all();


    $this->assign('newsrmx',$newsrmx);

    $this->assign('newsrm',$newsrm);

    $this->assign('newszx',$newszx);

       return $this->fetch();

    }

    public function product()

    {

       $product = Db::order('product_id')->limit(3)->all();

       $this->assign('product',$product);

       return $this->fetch();

    }

    public function hello($name = 'ThinkPHP5')

    {

        return 'hello,' . $name;

    }

}

[]1NVBVRS_I[D27GFW59JGO.png

Release Notes

Popular Entries