Browse Source

pc goods

master
ZLW-PC\Administrator 7 years ago
parent
commit
7fa1fa048a
  1. 23
      app/Http/Controllers/Home/IndexController.php
  2. 276
      app/Http/Controllers/Home/IndexController企业.php
  3. 183
      public/css/style.css
  4. 104
      public/css/style企业bootstrap.css
  5. BIN
      public/images/ibg.png
  6. BIN
      public/images/icon.gif
  7. 2
      resources/views/home/common/footer.blade.php
  8. 77
      resources/views/home/common/header.blade.php
  9. 137
      resources/views/home/index/goods.blade.php
  10. 232
      resources/views/home/index/index.blade.php
  11. 20
      resources/views/home企业/404.blade.php
  12. 1
      resources/views/home企业/common/footer.blade.php
  13. 36
      resources/views/home企业/common/header.blade.php
  14. 0
      resources/views/home企业/index/category.blade.php
  15. 0
      resources/views/home企业/index/category2.blade.php
  16. 0
      resources/views/home企业/index/detail.blade.php
  17. 25
      resources/views/home企业/index/goods.blade.php
  18. 23
      resources/views/home企业/index/goodscat.blade.php
  19. 117
      resources/views/home企业/index/index.blade.php
  20. 0
      resources/views/home企业/index/login.blade.php
  21. 0
      resources/views/home企业/index/page.blade.php
  22. 0
      resources/views/home企业/index/search.blade.php
  23. 9
      resources/views/home企业/index/sitemap.blade.php
  24. 0
      resources/views/home企业/index/tag.blade.php
  25. 0
      resources/views/home企业/index/tag2.blade.php
  26. 0
      resources/views/home企业/index/tag3.blade.php
  27. 0
      resources/views/home企业/index/tags.blade.php
  28. 0
      resources/views/home企业/index/test.blade.php
  29. 4
      routes/web.php

23
app/Http/Controllers/Home/IndexController.php

@ -14,7 +14,14 @@ class IndexController extends CommonController
//首页
public function index()
{
return view('home.index.index');
//商品列表
$where['status'] = 0;
$data['goods_list'] = object_to_array(DB::table('goods')->where($where)->select('id','title','price','litpic','description','shipping_fee','market_price','goods_number','sale')->take(30)->orderBy('pubdate','desc')->get());
$data['goods_type_list'] = object_to_array(DB::table('goods_type')->where(['pid'=>0,'status'=>1])->select('id','name')->take(30)->orderBy('listorder','asc')->get());
$data['slide_list'] = object_to_array(DB::table('slide')->where(['group_id'=>0,'type'=>0,'is_show'=>0])->take(30)->orderBy('listorder','asc')->get());
$data['ztad_list'] = object_to_array(DB::table('slide')->where(['group_id'=>1,'type'=>0,'is_show'=>0])->take(30)->orderBy('listorder','asc')->get());
return view('home.index.index',$data);
}
//列表页
@ -184,7 +191,7 @@ class IndexController extends CommonController
}
//商品列表页
public function goodstype($cat, $page=0)
public function goodslist($cat, $page=0)
{
$pagenow = $page;
@ -224,24 +231,18 @@ class IndexController extends CommonController
{
if(empty($id) || !preg_match('/[0-9]+/',$id)){return redirect()->route('page404');}
$post = object_to_array(DB::table('goods')->where('id', $id)->first(), 1);if(empty($post)){return redirect()->route('page404');}$post['name'] = DB::table('goods_type')->where('id', $post['typeid'])->value('name');
$post = object_to_array(DB::table('goods')->where(['id'=>$id,'status'=>0])->first(), 1);if(empty($post)){return redirect()->route('page404');}$post['type_name'] = DB::table('goods_type')->where('id', $post['typeid'])->value('name');
if($post)
{
$cat = $post['typeid'];
$post['body'] = ReplaceKeyword($post['body']);
if(!empty($post['writer'])){$post['writertitle']=$post['title'].' '.$post['writer'];}
$data['post'] = $post;
$data['pre'] = get_article_prenext(array('aid'=>$post["id"],'typeid'=>$post["typeid"],'type'=>"pre"));
}
else
{
return redirect()->route('page404');
}
$post = object_to_array(DB::table('goods_type')->where('id', $cat)->first(), 1);
return view('home.index.'.$post['temparticle'], $data);
$data['tj_list'] = object_to_array(DB::table('goods')->where(['tuijian'=>1,'status'=>0])->get());
return view('home.index.goods', $data);
}
//sitemap页面

276
app/Http/Controllers/Home/IndexController企业.php

@ -0,0 +1,276 @@
<?php
namespace App\Http\Controllers\Home;
use App\Http\Controllers\Home\CommonController;
use Illuminate\Support\Facades\DB;
class IndexController extends CommonController
{
public function __construct()
{
parent::__construct();
}
//首页
public function index()
{
//商品列表
$where['status'] = 0;
$data['goods_list'] = object_to_array(DB::table('goods')->where($where)->select('id','title','price','litpic','description','shipping_fee','market_price','goods_number','sale')->take(30)->orderBy('pubdate','desc')->get());
$data['goods_type_list'] = object_to_array(DB::table('goods_type')->where(['pid'=>0,'status'=>1])->select('id','name')->take(30)->orderBy('listorder','asc')->get());
$data['slide_list'] = object_to_array(DB::table('slide')->where(['group_id'=>0,'type'=>0,'is_show'=>0])->take(30)->orderBy('listorder','asc')->get());
$data['ztad_list'] = object_to_array(DB::table('slide')->where(['group_id'=>1,'type'=>0,'is_show'=>0])->take(30)->orderBy('listorder','asc')->get());
return view('home.index.index',$data);
}
//列表页
public function category($cat, $page=0)
{
$pagenow = $page;
if(empty($cat) || !preg_match('/[0-9]+/',$cat)){return redirect()->route('page404');}
if(cache("catid$cat")){$post = cache("catid$cat");}else{$post = object_to_array(DB::table('arctype')->where('id', $cat)->first(), 1);if(empty($post)){return redirect()->route('page404');} cache(["catid$cat"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));}
$data['post'] = $post;
$subcat="";$sql="";
$post2 = object_to_array(DB::table('arctype')->select('id')->where('pid', $cat)->get());
if(!empty($post2)){foreach($post2 as $row){$subcat=$subcat."typeid=".$row["id"]." or ";}}
$subcat=$subcat."typeid=".$cat;
$sql=$subcat." or typeid2 in (".$cat.")";//echo $subcat2;exit;
$data['sql'] = $sql;
$counts = DB::table("article")->whereRaw($sql)->count();
if($counts>sysconfig('CMS_MAXARC')){$counts=sysconfig('CMS_MAXARC');dd($counts);}
$pagesize = sysconfig('CMS_PAGESIZE');$page=0;
if($counts % $pagesize){//取总数据量除以每页数的余数
$pages = intval($counts/$pagesize) + 1; //如果有余数,则页数等于总数据量除以每页数的结果取整再加一,如果没有余数,则页数等于总数据量除以每页数的结果
}else{$pages = $counts/$pagesize;}
if(!empty($pagenow)){if($pagenow==1 || $pagenow>$pages){return redirect()->route('page404');}$page = $pagenow-1;$nextpage=$pagenow+1;$previouspage=$pagenow-1;}else{$page = 0;$nextpage=2;$previouspage=0;}
$data['page'] = $page;
$data['pages'] = $pages;
$data['counts'] = $counts;
$start = $page*$pagesize;
$data['posts'] = arclist(array("sql"=>$sql, "limit"=>"$start,$pagesize")); //获取列表
$data['pagenav'] = get_listnav(array("counts"=>$counts,"pagesize"=>$pagesize,"pagenow"=>$page+1,"catid"=>$cat)); //获取分页列表
if($post['templist']=='category2'){if(!empty($pagenow)){return redirect()->route('page404');}}
return view('home.index.'.$post['templist'], $data);
}
//文章详情页
public function detail($id)
{
if(empty($id) || !preg_match('/[0-9]+/',$id)){return redirect()->route('page404');}
if(cache("detailid$id")){$post = cache("detailid$id");}else{$post = object_to_array(DB::table('article')->where('id', $id)->first(), 1);if(empty($post)){return redirect()->route('page404');}$post['name'] = DB::table('arctype')->where('id', $post['typeid'])->value('name');cache(["detailid$id"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));}
if($post)
{
$cat = $post['typeid'];
$post['body'] = ReplaceKeyword($post['body']);
if(!empty($post['writer'])){$post['writertitle']=$post['title'].' '.$post['writer'];}
$data['post'] = $post;
$data['pre'] = get_article_prenext(array('aid'=>$post["id"],'typeid'=>$post["typeid"],'type'=>"pre"));
}
else
{
return redirect()->route('page404');
}
if(cache("catid$cat")){$post=cache("catid$cat");}else{$post = object_to_array(DB::table('arctype')->where('id', $cat)->first(), 1);cache(["catid$cat"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));}
return view('home.index.'.$post['temparticle'], $data);
}
//标签详情页,共有3种显示方式,1正常列表,2列表显示文章,3显示描述
public function tag($tag, $page=0)
{
$pagenow = $page;
if(empty($tag) || !preg_match('/[0-9]+/',$tag)){return redirect()->route('page404');}
$post = object_to_array(DB::table('tagindex')->where('id',$tag)->first(), 1);
$data['post'] = $post;
$counts=DB::table("taglist")->where('tid',$tag)->count('aid');
if($counts>sysconfig('CMS_MAXARC')){$counts=sysconfig('CMS_MAXARC');}
$pagesize=sysconfig('CMS_PAGESIZE');$page=0;
if($counts % $pagesize){//取总数据量除以每页数的余数
$pages = intval($counts/$pagesize) + 1; //如果有余数,则页数等于总数据量除以每页数的结果取整再加一,如果没有余数,则页数等于总数据量除以每页数的结果
}else{$pages = $counts/$pagesize;}
if(!empty($pagenow)){if($pagenow==1 || $pagenow>$pages){return redirect()->route('page404');}$page = $pagenow-1;$nextpage=$pagenow+1;$previouspage=$pagenow-1;}else{$page = 0;$nextpage=2;$previouspage=0;}
$data['page'] = $page;
$data['pages'] = $pages;
$data['counts'] = $counts;
$start=$page*$pagesize;
$posts=object_to_array(DB::table("taglist")->where('tid',$tag)->orderBy('aid', 'desc')->skip($start)->take($pagesize)->get());
foreach($posts as $row)
{
$aid[] = $row["aid"];
}
$aid = isset($aid)?implode(',',$aid):"";
if($aid!="")
{
if($post['template']=='tag2')
{
$data['posts'] = arclist(array("sql"=>"id in ($aid)","orderby"=>['id', 'desc'],"row"=>"$pagesize","field"=>"title,body")); //获取列表
}
else
{
$data['posts'] = arclist(array("sql"=>"id in ($aid)","orderby"=>['id', 'desc'],"row"=>"$pagesize")); //获取列表
}
}
else
{
$data['posts'] = ''; //获取列表
}
$data['pagenav'] = get_listnav(array("counts"=>$counts,"pagesize"=>$pagesize,"pagenow"=>$page+1,"catid"=>$tag,"urltype"=>"tag")); //获取分页列表
if($post['template']=='tag2' || $post['template']=='tag3'){if(!empty($pagenow)){return redirect()->route('page404');}}
return view('home.index.'.$post['template'], $data);
}
//标签页
public function tags()
{
return view('home.index.tags');
}
//搜索页
public function search($keyword)
{
if(empty($keyword))
{
echo '请输入正确的关键词';exit;
}
if(strstr($keyword,"&")) exit;
$data['posts']= object_to_array(DB::table("article")->where("title", "like", "%$keyword%")->orderBy('id', 'desc')->take(30)->get());
$data['keyword']= $keyword;
return view('home.index.search', $data);
}
//单页面
public function page($id)
{
$data = [];
if(!empty($id) && preg_match('/[a-z0-9]+/',$id))
{
$map['filename']=$id;
if(cache("pageid$id")){$post=cache("pageid$id");}else{$post = object_to_array(DB::table('page')->where($map)->first(), 1);cache("pageid$id", $post, 2592000);cache(["pageid$id"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));}
if($post)
{
$data['post'] = $post;
}
else
{
return redirect()->route('page404');
}
}
else
{
return redirect()->route('page404');
}
$data['posts'] = object_to_array(DB::table('page')->orderBy(\DB::raw('rand()'))->take(5)->get());
return view('home.index.'.$post['template'], $data);
}
//商品列表页
public function goodstype($cat, $page=0)
{
$pagenow = $page;
if(empty($cat) || !preg_match('/[0-9]+/',$cat)){return redirect()->route('page404');}
$post = object_to_array(DB::table('goods_type')->where('id', $cat)->first(), 1);if(empty($post)){return redirect()->route('page404');}
$data['post'] = $post;
$subcat="";
$post2 = object_to_array(DB::table('goods_type')->select('id')->where('pid', $cat)->get());
if(!empty($post2)){foreach($post2 as $row){$subcat=$subcat."typeid=".$row["id"]." or ";}}
$subcat=$subcat."typeid=".$cat;
$data['sql'] = $subcat;
$counts = DB::table("goods")->whereRaw($subcat)->count();
if($counts>sysconfig('CMS_MAXARC')){$counts=sysconfig('CMS_MAXARC');dd($counts);}
$pagesize = sysconfig('CMS_PAGESIZE');$page=0;
if($counts % $pagesize){//取总数据量除以每页数的余数
$pages = intval($counts/$pagesize) + 1; //如果有余数,则页数等于总数据量除以每页数的结果取整再加一,如果没有余数,则页数等于总数据量除以每页数的结果
}else{$pages = $counts/$pagesize;}
if(!empty($pagenow)){if($pagenow==1 || $pagenow>$pages){return redirect()->route('page404');}$page = $pagenow-1;$nextpage=$pagenow+1;$previouspage=$pagenow-1;}else{$page = 0;$nextpage=2;$previouspage=0;}
$data['page'] = $page;
$data['pages'] = $pages;
$data['counts'] = $counts;
$start = $page*$pagesize;
$data['posts'] = arclist(array("table"=>"goods","sql"=>$subcat, "limit"=>"$start,$pagesize")); //获取列表
$data['pagenav'] = get_listnav(array("counts"=>$counts,"pagesize"=>$pagesize,"pagenow"=>$page+1,"catid"=>$cat,"urltype"=>"goods")); //获取分页列表
if($post['templist']=='category2'){if(!empty($pagenow)){return redirect()->route('page404');}}
return view('home.index.'.$post['templist'], $data);
}
//商品详情页
public function goods($id)
{
if(empty($id) || !preg_match('/[0-9]+/',$id)){return redirect()->route('page404');}
$post = object_to_array(DB::table('goods')->where('id', $id)->first(), 1);if(empty($post)){return redirect()->route('page404');}$post['name'] = DB::table('goods_type')->where('id', $post['typeid'])->value('name');
if($post)
{
$cat = $post['typeid'];
if(!empty($post['writer'])){$post['writertitle']=$post['title'].' '.$post['writer'];}
$data['post'] = $post;
$data['pre'] = get_article_prenext(array('aid'=>$post["id"],'typeid'=>$post["typeid"],'type'=>"pre"));
}
else
{
return redirect()->route('page404');
}
$post = object_to_array(DB::table('goods_type')->where('id', $cat)->first(), 1);
return view('home.index.goods', $data);
}
//sitemap页面
public function sitemap()
{
return view('home.index.sitemap');
}
//404页面
public function page404()
{
return view('home.404');
}
//测试页面
public function test()
{return view('home.index.test');
//return base_path('resources/org');
//$qrcode = new \SimpleSoftwareIO\QrCode\BaconQrCodeGenerator;
//return $qrcode->size(500)->generate('Make a qrcode without Laravel!');
//return '<img src="data:image/png;base64,'.base64_encode(\QrCode::format('png')->encoding('UTF-8')->size(200)->generate('http://www.72p.org/')).'">';
//set_exception_handler('myException');
//return uniqid();
//return \App\Common\Helper::formatPrice(1.2346);
}
}

183
public/css/style.css

@ -1,104 +1,83 @@
/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */
body {color: #5a5a5a;}
.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4;}
.bs-docs-featurette-title{margin-bottom:10px;font-size:30px;font-weight:400;color:#333;}
.half-rule{width:100px;margin:40px auto;}
.bs-docs-featurette{padding-top:40px;padding-bottom:40px;font-size:16px;line-height:1.5;color:#555;text-align:center;}
.projects-header{width:60%;text-align:center;margin:60px 0 10px;font-weight:200;margin-bottom:40px;display:block;margin-left:auto;margin-right:auto}
.projects-header h2{font-size:30px;letter-spacing:1px}
@media screen and (min-width:768px){
.projects-header h2{font-size:36px}
}
/* CUSTOMIZE THE NAVBAR
-------------------------------------------------- */
/* Special class on .container surrounding .navbar, used for positioning it into place. */
.navbar-wrapper {position: absolute;top: 0;right: 0;left: 0;z-index: 20;}
/* Flip around the padding for proper display in narrow viewports */
.navbar-wrapper > .container {padding-right: 0;padding-left: 0;}
.navbar-wrapper .navbar {padding-right: 15px;padding-left: 15px;}
.navbar-wrapper .navbar .container {width: auto;}
/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */
/* Carousel base class */
.carousel {height: 500px;margin-bottom: 60px;}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {z-index: 10;}
/* Declare heights because of positioning of img element */
.carousel .item {height: 500px;background-color: #777;}
.carousel-inner > .item > img {position: absolute;top: 0;left: 0;min-width: 100%;height: 500px;}
/* MARKETING CONTENT
-------------------------------------------------- */
/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {margin-bottom: 20px;text-align: center;}
.marketing h2 {font-weight: normal;}
.marketing .col-lg-4 p {margin-right: 10px;margin-left: 10px;}
/* Featurettes
------------------------- */
.featurette-divider {margin: 80px 0; /* Space out the Bootstrap <hr> more */}
/* Thin out the marketing headings */
.featurette-heading {font-weight: 300;line-height: 1;letter-spacing: -1px;}
/* RESPONSIVE CSS
-------------------------------------------------- */
@media (min-width: 768px) {
/* Navbar positioning foo */
.navbar-wrapper {margin-top: 20px;}
.navbar-wrapper .container {padding-right: 15px;padding-left: 15px;}
.navbar-wrapper .navbar {padding-right: 0;padding-left: 0;}
/* The navbar becomes detached from the top, so we round the corners */
.navbar-wrapper .navbar {border-radius: 4px;}
/* Bump up size of carousel content */
.carousel-caption p {margin-bottom: 20px;font-size: 21px;line-height: 1.4;}
.featurette-heading {font-size: 50px;}
.bs-docs-featurette-title{font-size:36px;}
.bs-docs-featurette .lead{max-width:80%;margin-right:auto;margin-left:auto;}
.lead{font-size:21px;}
.bs-docs-featurette{padding-top:80px;padding-bottom:80px;}
}
@media (min-width: 992px) {
.featurette-heading {margin-top: 120px;}
}
img:hover{filter:alpha(opacity=90);opacity:0.9;}
.cl{clear:both;}.fl,.mfl{float:left;}.fr,.mfr{float:right;}.m-auto{margin:0 auto;}
.list{padding:20px 0;border-bottom:1px solid #e5e5e5;}
.tit{display:block;font-weight:normal;font-size:24px;line-height:1.3;}
.list p{margin-top:10px;word-break:break-all;color:#999;font-size:14px;line-height:1.5;}.list p a{color:#e74c3c;}.list p:after{content:"..";}
.info{margin-top:8px;color:#bbb;font-size:12px;}.info a{color:#ea5a3d;margin-right:8px;}.info .fr{color:#444;}
.list .limg{width:169px;height:119px;float:left;margin-right:20px;}.list .limg img{width:169px;height:119px;vertical-align:top;}
body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,dd,form,input,textarea,select,button{margin:0;padding:0;}em,i{font-style:normal;}
li,ul{list-style:none;}ul{zoom:1;}img{border:none;border:0;margin:0;padding:0;vertical-align:top;}.cl{clear:both;}.fl,.mfl{float:left;}.fr,.mfr{float:right;}.m-auto{margin:0 auto;}
body{font-size:14px;color:#313131;font-family:arial,'Hiragino Sans GB',"Microsoft YaHei","Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,tahoma,simsun,sans-serif;}.yaheis a,.yahei{font-family:Microsoft YaHei,"Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,tahoma,simsun,sans-serif;}
a{color:#313131;text-decoration:none;}a:hover{text-decoration:none;color:#22ac38;}.clear{zoom:1;}.clear:after,.imglist2:after{content:"";display:block;clear:both;}
.mt10{margin-top:10px;}.mb10{margin-bottom:10px;}.zcs a,.zc{color:#c39;}.reds a,.red{color:#22ac38;}.blues a,.blue{color:#0078b6;}.grey,.greys a{color:#999;}.chs a:hover{color:#22ac38;}
.box{width:960px;margin-left:auto;margin-right:auto;overflow:hidden;}
.fr_740{width:740px;float:right;overflow:hidden;}.fl_210{width:210px;float:left;overflow:hidden;}
.m-sch{width:157px;height:24px;*margin-top:6px;}.m-sch .sch-txt{border:1px solid #dcdcdc;color:#dcdcdc;background-color:#fff;width:150px;height:22px;line-height:20px;padding-left:5px;}
#tad{width:960px;height:90px;margin:10px auto 0 auto;overflow:hidden;}#itad{width:960px;margin:10px auto 0 auto;overflow:hidden;height:90px;}
.notice{font-family:SimSun;color:#e53333;line-height:1.5;padding:6px 10px;background:#feffe6;border:1px solid #e6d8b9;font-size:12px;}
.pul{margin-right:-15px;font-family:"Microsoft Yahei";}.pul a:hover .title{text-decoration:underline;}
.pul li{background-color: #fff;float:left;overflow:hidden;margin-right:15px;margin-bottom:15px;border:1px solid #dcdcdc;}.pul li a:hover{text-decoration:none;}
.pul li img{width:308px;height:308px;display:block;margin-bottom:10px;}
.pul li .title{overflow:hidden;white-space:nowrap;width:293px;height:20px;margin:0 5px 2px 10px;font-weight:400;display: block;color: #333;font-size: 14px;line-height: 15px;}
.pul li .desc{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:288px;margin:0 10px 5px 10px;font-size: 12px;line-height: 16px;padding: 0;color: #999;height: 20px;}
.pul li .desc .price-point{display: inline-block;font-weight: 400;color: #e61414;}
.pul .item-prices{height: 50px;}.pul .red{background-color: #e61414;}.pul .green{background-color: #26a96d;}
.pul .item-info{width:233px;height:50px;overflow: hidden;padding-left:5px;}
.pul .item-link{background-color:#fff280;float:right;width:50px;height:43px;padding:7px 7px 0 7px;line-height:18px;overflow: hidden;text-align: center;font-size:14px;color: #e61414;}
.pul .price {margin-right: 8px;font-size: 0;color: #fff;float: left;font-family: Tahoma;}
.pul .price i {margin-right: 3px;display: inline-block;font-size: 22px;font-family: "Microsoft Yahei","Hiragino Sans GB",Arial;}
.pul .price em {display: inline-block;line-height: 50px;font-size:40px;font-weight: 400;letter-spacing: -2px;font-family: Helvetica Neue,Helvetica,Arial;}
.pul .dock {_float: left;overflow: hidden;margin-top: 4px;}
.pul .dock .dock-price {height: 18px;margin-bottom: 3px;overflow: hidden;}
.pul .dock .orig-price {position: static;text-align: left;display: inline-block;vertical-align: top;color: #fff;font-size: 12px;text-decoration: line-through;}
.pul .dock .benefit {font-size:12px;padding: 0 6px;-webkit-border-radius: 10px;-webkit-background-clip: padding-box;-moz-border-radius: 10px;-moz-background-clip: padding;border-radius: 10px;background-clip: padding-box;height: 17px;line-height: 17px;background: #ffb369;display: inline-block;_display: inline;overflow: hidden;margin-right: 2px;color: #FFF;}
.pul .dock .prompt {height: 20px;overflow:hidden;}
.pul .dock .sold-num {filter: none;display: inline-block;line-height: 20px;padding: 0 6px;background-color: rgba(0,0,0,.1);filter: progid:DXImageTransform.Microsoft.gradient(enabled='true', startColorstr='#19000000', endColorstr='#19000000');-webkit-border-radius: 3px;-webkit-background-clip: padding-box;-moz-border-radius: 3px;-moz-background-clip: padding;border-radius: 3px;background-clip: padding-box;color: #fff;font-size: 12px;}
.pul .dock .sold-num em {font-size: 14px;color: #fff;font-weight: 700;line-height: 17px;}
.page,.pages{text-align:center;padding:15px 0px;}.page a:hover{background:#FF5E52;color:#fff;}
.page a{display:inline-block;height:32px;line-height:32px;padding:0 45px;font-size:14px;color:#fff;background:#ea5a3d;margin-right:8px;border-radius:3px;box-shadow:1px 1px 2px #eee;}
.pages li a{color:#808080;}.pages li{display:inline-block;height:35px;line-height:35px;text-align:center;font-size:14px;color:#808080;background-color:#f4f4f4;padding-right:15px;padding-left:15px;margin-right:1px;}
.pages .thisclass{background-color:#ea5a3d;}.pages .thisclass a{color:#fff;}
.pages li:hover,.pages li:hover a{background-color:#ea5a3d;color:#fff;}
.content{margin-bottom:15px;font-size:16px;}
.content p{margin-bottom:0;}.content u{color:red;text-decoration:none;}
.content img{max-width:100%;height:auto;}
.content blockquote{padding:.6em 1em;border-left:.4em solid #cad4f2;background:#f0f0f0;}
.banner{text-align:center;padding-top:100px;color: #fff;background:url(../images/banner.jpg);}
.imgzsy{width:100%;/* height:14vw; */}
footer{margin-top:40px;}
footer p{text-align:center;}
.page a{display:inline-block;height:32px;line-height:32px;padding:0 45px;font-size:14px;color:#fff;background:#22ac38;margin-right:8px;border-radius:3px;box-shadow:1px 1px 2px #eee;}
.pages li{display:inline-block;height:35px;line-height:35px;text-align:center;font-size:14px;color:#808080;background-color:#fff;padding-right:15px;padding-left:15px;margin-right:1px;*display:inline;}
.pages li a{color:#808080;}.pages .thisclass{background-color:#e61414;color:#fff;}
.pages li:hover,.pages li:hover a{background-color:#e61414;color:#fff;}
.site-nav {font-size:12px;position: relative;z-index: 9000;min-width: 940px;height: 30px;line-height: 30px;background-color: #f5f5f5;border-bottom: solid 1px #eee;}
.site-nav .menu-left {float: left;height: 30px;line-height: 30px;}
.site-nav .mobile {float: left;position: relative;padding-right: 10px;margin-top: 8px;line-height: 15px;border-right: solid 1px #dcdcdc;}
.site-nav a {color: #666;text-decoration: none;}
.site-nav a:hover {color: #e61414;}
.site-nav .login-info {float: left;}
.site-nav .login-info a {display: block;float: left;height: 100%;margin-left: 10px;}
.site-nav .quick-menu {float: right;line-height: 30px;}
.site-nav .quick-menu li {position: relative;_width: 0;float: left;white-space: nowrap;margin: 0 9px;}
.site-nav .quick-menu li a {display: block;height: 100%;}
.ju-naver {position: relative;z-index: 8000;background-color: #fff;width: 100%;height: 80px;-webkit-box-shadow: 0 1px 3px rgba(0,0,0,.13);-moz-box-shadow: 0 1px 3px rgba(0,0,0,.13);box-shadow: 0 1px 3px rgba(0,0,0,.13);border-bottom: 1px solid #eee\9;}
.ju-naver .logo {position: relative;float: left;font-weight: 400;}
.ju-naver .ju-logo-show {visibility: visible;z-index: 2;}
.ju-naver .ju-logo img{width: 150px;height:80px;}
.ju-naver a {display: block;text-decoration: none;}
.ju-naver .nav-menu {float: right;margin-top: 28px;}
.ju-naver .nav-menu li {display: inline-block;position: relative;margin-right: 2px;}
.ju-naver .nav-menu a {color: #4A4A4A;font-size: 16px;position: relative;height: 26px;line-height: 26px;padding: 0 6px;-webkit-border-radius: 3px;-webkit-background-clip: padding-box;-moz-border-radius: 3px;-moz-background-clip: padding;border-radius: 3px;background-clip: padding-box;}
.ju-naver .nav-menu a:hover {background-color: #EDEDED;}
#slideBox{width:740px;height:347px;overflow:hidden;position:relative;}
#slideBox ul#show_pic{margin:0;padding:0;list-style:none;width:7400px;height:347px;position:absolute;}
#slideBox ul#show_pic li{float:left;margin:0;padding:0;height:347px;}
#slideBox ul#show_pic li img{display:block;}
#iconBall{position:absolute;bottom:0;right:0;}
#iconBall li{float:left;color:#7a7a7a;width:32px;height:28px;line-height:28px;cursor:pointer;text-align:center;font-size:14px;padding-top:4px;}
#iconBall li.active{background:url(../images/ibg.png) no-repeat;color:#fff;}
#slideText{width:740px;height:28px;background:rgba(0,0,0,0.7);color:#fff;position:absolute;left:0px;bottom:0px;*background:transparent;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#b2000000,endColorstr=#b2000000);}
#textBall{position:absolute;left:10px;bottom:5px;}
#textBall li{float:left;cursor:pointer;display:none;color:#fff;font-size:14px;}
#textBall li.active{display:block;}
#textBall li a{text-decoration:none;color:#fff;}
.hdp{margin-bottom:10px;font-size:12px;font-family:simsun,sans-serif;}
.hdp .fl{width:740px;overflow:hidden;}
.hdp .fr{width:215px;height:472px;overflow:hidden;}.hdp .fr a{margin-right:10px;}
.ttit{border-left:2px solid #f60;padding-left:8px;margin-right:8px;line-height:16px;margin-bottom:5px;}
.titem{padding-bottom:10px;border-bottom:1px dotted #e0e0e0;margin-bottom:10px;}
.iztad{height:120px;overflow:hidden;margin-top:5px;}
#footer{font-size:12px;text-align:center;margin-bottom:10px;margin-top:10px;color:#5D5D5D;}
.tm{overflow:hidden;position:fixed;left:1px;bottom:15px;z-index:999;_position:absolute;}

104
public/css/style企业bootstrap.css

@ -0,0 +1,104 @@
/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */
body {color: #5a5a5a;}
.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4;}
.bs-docs-featurette-title{margin-bottom:10px;font-size:30px;font-weight:400;color:#333;}
.half-rule{width:100px;margin:40px auto;}
.bs-docs-featurette{padding-top:40px;padding-bottom:40px;font-size:16px;line-height:1.5;color:#555;text-align:center;}
.projects-header{width:60%;text-align:center;margin:60px 0 10px;font-weight:200;margin-bottom:40px;display:block;margin-left:auto;margin-right:auto}
.projects-header h2{font-size:30px;letter-spacing:1px}
@media screen and (min-width:768px){
.projects-header h2{font-size:36px}
}
/* CUSTOMIZE THE NAVBAR
-------------------------------------------------- */
/* Special class on .container surrounding .navbar, used for positioning it into place. */
.navbar-wrapper {position: absolute;top: 0;right: 0;left: 0;z-index: 20;}
/* Flip around the padding for proper display in narrow viewports */
.navbar-wrapper > .container {padding-right: 0;padding-left: 0;}
.navbar-wrapper .navbar {padding-right: 15px;padding-left: 15px;}
.navbar-wrapper .navbar .container {width: auto;}
/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */
/* Carousel base class */
.carousel {height: 500px;margin-bottom: 60px;}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {z-index: 10;}
/* Declare heights because of positioning of img element */
.carousel .item {height: 500px;background-color: #777;}
.carousel-inner > .item > img {position: absolute;top: 0;left: 0;min-width: 100%;height: 500px;}
/* MARKETING CONTENT
-------------------------------------------------- */
/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {margin-bottom: 20px;text-align: center;}
.marketing h2 {font-weight: normal;}
.marketing .col-lg-4 p {margin-right: 10px;margin-left: 10px;}
/* Featurettes
------------------------- */
.featurette-divider {margin: 80px 0; /* Space out the Bootstrap <hr> more */}
/* Thin out the marketing headings */
.featurette-heading {font-weight: 300;line-height: 1;letter-spacing: -1px;}
/* RESPONSIVE CSS
-------------------------------------------------- */
@media (min-width: 768px) {
/* Navbar positioning foo */
.navbar-wrapper {margin-top: 20px;}
.navbar-wrapper .container {padding-right: 15px;padding-left: 15px;}
.navbar-wrapper .navbar {padding-right: 0;padding-left: 0;}
/* The navbar becomes detached from the top, so we round the corners */
.navbar-wrapper .navbar {border-radius: 4px;}
/* Bump up size of carousel content */
.carousel-caption p {margin-bottom: 20px;font-size: 21px;line-height: 1.4;}
.featurette-heading {font-size: 50px;}
.bs-docs-featurette-title{font-size:36px;}
.bs-docs-featurette .lead{max-width:80%;margin-right:auto;margin-left:auto;}
.lead{font-size:21px;}
.bs-docs-featurette{padding-top:80px;padding-bottom:80px;}
}
@media (min-width: 992px) {
.featurette-heading {margin-top: 120px;}
}
img:hover{filter:alpha(opacity=90);opacity:0.9;}
.cl{clear:both;}.fl,.mfl{float:left;}.fr,.mfr{float:right;}.m-auto{margin:0 auto;}
.list{padding:20px 0;border-bottom:1px solid #e5e5e5;}
.tit{display:block;font-weight:normal;font-size:24px;line-height:1.3;}
.list p{margin-top:10px;word-break:break-all;color:#999;font-size:14px;line-height:1.5;}.list p a{color:#e74c3c;}.list p:after{content:"..";}
.info{margin-top:8px;color:#bbb;font-size:12px;}.info a{color:#ea5a3d;margin-right:8px;}.info .fr{color:#444;}
.list .limg{width:169px;height:119px;float:left;margin-right:20px;}.list .limg img{width:169px;height:119px;vertical-align:top;}
.page,.pages{text-align:center;padding:15px 0px;}.page a:hover{background:#FF5E52;color:#fff;}
.page a{display:inline-block;height:32px;line-height:32px;padding:0 45px;font-size:14px;color:#fff;background:#ea5a3d;margin-right:8px;border-radius:3px;box-shadow:1px 1px 2px #eee;}
.pages li a{color:#808080;}.pages li{display:inline-block;height:35px;line-height:35px;text-align:center;font-size:14px;color:#808080;background-color:#f4f4f4;padding-right:15px;padding-left:15px;margin-right:1px;}
.pages .thisclass{background-color:#ea5a3d;}.pages .thisclass a{color:#fff;}
.pages li:hover,.pages li:hover a{background-color:#ea5a3d;color:#fff;}
.content{margin-bottom:15px;font-size:16px;}
.content p{margin-bottom:0;}.content u{color:red;text-decoration:none;}
.content img{max-width:100%;height:auto;}
.content blockquote{padding:.6em 1em;border-left:.4em solid #cad4f2;background:#f0f0f0;}
.banner{text-align:center;padding-top:100px;color: #fff;background:url(../images/banner.jpg);}
.imgzsy{width:100%;/* height:14vw; */}
footer{margin-top:40px;}
footer p{text-align:center;}

BIN
public/images/ibg.png

Binary file not shown.

After

Width: 30  |  Height: 32  |  Size: 214 B

BIN
public/images/icon.gif

Binary file not shown.

After

Width: 4  |  Height: 4  |  Size: 1.1 KiB

2
resources/views/home/common/footer.blade.php

@ -1 +1 @@
<footer><p><?php echo sysconfig('CMS_POWERBY'); ?></p></footer>
<div id="footer" class="box">&copy;丽杭汽车网 部分文章来源于网络,如果侵犯了您的权益,请<a href="http://www.bnbni.com/contact.html">联系我们</a><a target="_blank" href="http://www.bnbni.com/sitemap.xml">网站地图</a><div class="m-auto"><script>count_js();</script></div></div>

77
resources/views/home/common/header.blade.php

@ -1,36 +1,53 @@
<div class="navbar-wrapper">
<div class="container">
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php echo sysconfig('CMS_BASEHOST'); ?>">首页</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="<?php echo get_front_url(array('catid'=>4,'type'=>'list')); ?>">新闻动态</a></li>
<li><a href="<?php echo get_front_url(array('catid'=>2,'type'=>'list')); ?>">案例中心</a></li>
<li><a href="<?php echo get_front_url(array('pagename'=>'contact','type'=>'page')); ?>">联系我们</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">关于我们 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="<?php echo get_front_url(array('pagename'=>'about','type'=>'page')); ?>">公司简介</a></li>
<li><a href="<?php echo get_front_url(array('pagename'=>'culture','type'=>'page')); ?>">企业文化</a></li>
</ul>
<div id="site-nav" class="site-nav">
<div class="box">
<p class="menu-left">
<span class="mobile">
<a class="mobileLink" href="//ju.taobao.com/tool/downApp.htm" target="_blank">
手机聚划算
<img class="qr" data-src="//img.alicdn.com/tfs/TB1gkp9PpXXXXauaFXXXXXXXXXX-302-376.png">
</a>
</span>
<span class="login-info"><a class="user-nick" href="//i.taobao.com/my_taobao.htm" target="_top">缘中仙2008</a> <a target="_top" href="//login.taobao.com/member/logout.jhtml?f=top&amp;out=true&amp;redirectURL=https%3A%2F%2Fdetail.ju.taobao.com%2Fhome.htm%3Fspm%3D608.2291429.102212b.2.18df210XU8Vrg%26id%3D10000064961473%26item_id%3D523987525652" id="J_Logout">退出</a></span>
</p>
<ul class="quick-menu">
<li>
<a href="//trade.ju.taobao.com/trade/my_ju.htm" target="_blank">我的聚划算</a>
</li>
<li class="cart">
<a href="//cart.taobao.com/my_cart.htm" target="_blank">购物车</a>
</li>
<li>
<a href="//freeway.ju.taobao.com/front/sellerHome.htm" target="_blank">商户中心</a>
</li>
<li>
<a href="//o.ju.taobao.com/tg/hpcenter/index.htm?reqType=index" target="_blank">帮助</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="ju-naver">
<div class="box">
<h1 class="logo mouseleave"><a target="_top" class="ju-logo ju-logo-show" href="//ju.taobao.com/" title="聚划算"><img src="https://img.alicdn.com/tfs/TB1gFOyJVXXXXXLXpXXXXXXXXXX-150-118.png"></a></h1>
<ul id="J_NavMenu" class="nav-menu">
<li class="menu-home"><a target="_top" class="menu-link" href="<?php echo route('home'); ?>">首页</a></li>
<li class="menu-brands">
<a target="_top" class="menu-link" href="//ju.taobao.com/tg/brand.htm">品牌团</a>
</li>
<li class="menu-fcdp">
<a target="_top" class="menu-link" href="//ju.taobao.com/jusp/nv/fcdppc/tp.htm">非常大牌</a>
</li>
<li class="menu-jump">
<a target="_top" class="menu-link" href="//ju.taobao.com/jusp/other/mingpin/tp.htm">聚名品</a>
</li>
<li class="menu-qqjx">
<a target="_top" class="menu-link" href="//ju.taobao.com/jusp/sp/global/tp.htm">全球精选</a>
</li>
<li class="menu-liangfan">
<a target="_top" class="menu-link" href="//ju.taobao.com/jusp/other/juliangfan/tp.htm">量贩团</a>
</li>
<li class="menu-travel">
<a target="_top" class="menu-link" href="//ju.taobao.com/jusp/shh/trip/tp.htm">旅游团</a>
</li>
</ul>
</div>
</div>
<div class="jumbotron banner"><div class="container">
<h1>全球最大的中文搜索引擎</h1>
<p>中国最具价值的品牌之一,英国《金融时报》将百度列为“中国十大世界级品牌”,成为这个榜单中最年轻的一家公司,也是唯一一家互联网公司。</p>
<p><a class="btn btn-success btn-lg" href="<?php echo get_front_url(array('pagename'=>'about','type'=>'page')); ?>" role="button">阅读更多...</a></p>
</div></div>

137
resources/views/home/index/goods.blade.php

@ -1,25 +1,118 @@
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $post["title"]; ?>_<?php echo sysconfig('CMS_WEBNAME'); ?></title>
<link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="/css/style.css"><script src="/js/jquery.min.js"></script><script src="/js/bootstrap.min.js"></script></head><body>
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title><?php echo $post["title"]; ?>_<?php echo sysconfig('CMS_WEBNAME'); ?></title><meta name="keywords" content="{dede:field.keywords/}" /><meta name="description" content="{dede:field.description function='html2text(@me)'/}" /><link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/css/style.css"><script type="text/javascript" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/ad.js"></script></head><body>
@include('home.common.header')
<div class="container"><div class="row row-offcanvas row-offcanvas-right"><div class="col-xs-12 col-sm-9">
<div class="bread"><a href=""><?php echo sysconfig('CMS_INDEXNAME'); ?></a> > <?php echo get_cat_path($post["typeid"],'goods_type','productlist'); ?></div>
<h1 class="page-header"><?php echo $post["title"]; ?></h1>
<div class="content"><?php echo $post["body"]; ?>
<div class="dinfo"><span class="addtime"><?php echo date("Y-m-d",$post["pubdate"]); ?></span>
<br><br>下一篇:<?php if($pre){ ?><a href="<?php echo get_front_url(array("id"=>$pre['id'],"catid"=>$pre["typeid"],"type"=>'goodsdetail')); ?>"><?php echo $pre["title"]; ?></a><?php }else{echo '没有了';} ?><div class="cl"></div></div>
</div>
</div><!--/.col-xs-12.col-sm-9-->
<div class="col-xs-12 col-sm-3 sidebar-offcanvas" id="sidebar">
<div class="panel panel-info">
<div class="panel-heading"><strong>商品详情</strong></div>
<ul class="list-group">
<?php if($post["litpic"]){ ?><li class="list-group-item"><img src="<?php echo $post["litpic"]; ?>" width=100% height=auto></li><?php } ?>
<li class="list-group-item"><span class="badge "> <?php echo $post["price"]; ?></span>商品价格</li>
<li class="list-group-item"><span class="badge"><del> <?php echo $post["market_price"]; ?></del></span>原价</li>
<li class="list-group-item"><span class="badge"><?php echo $post["sale"]; ?></span>销量</li>
<style>
.detail-main {margin-top:15px;padding: 10px;position: relative;color: #626262;background: #fff;}
.detail-main .header {height: 28px;line-height: 28px;padding-bottom:8px;border-bottom: 1px dashed #ececec;font-size: 16px;}
.detail-main .header .crumbs {float: left;vertical-align: middle;margin-right: 15px;_display: inline;}
.detail-main .header .crumbs a {color: #686868;}
.detail-main .header .crumbs li {display: inline;}
.detail-main .header .crumbs .arrow {width: 0;height: 0;display: inline-block;zoom: 1;border-style: solid;border-width: 4px;border-color: transparent transparent transparent #686868;position: relative;top: -1px;margin: 0 4px 0 8px;}
.detail-main .header .crumbs .arrow small {position: absolute;top: -4px;left: -5px;width: 0;height: 0;display: inline-block;zoom: 1;border-style: solid;border-width: 4px;border-color: transparent transparent transparent #fff;}
.detail-main .header .bookMark {float: right;margin-right: 10px;_display: inline;font-size: 14px;color: #626262;}
.detail-main .header .bookMark span {font-family: ju-font;font-size: 18px;margin-left:5px;}
.detail-main .header .bookMark span{display: inline-block;border-top:6px solid transparent;border-left:8px solid #666;border-bottom:6px solid transparent;width: 0;height: 0;}
.detail-main .main-pic {margin-top: 10px;float: left;width: 360px;_overflow: hidden;}
.normal-pic-wrapper .normal-pic {position: relative;display: table-cell;text-align: center;width: 360px;}
.normal-pic .item-pic-wrap {position: relative;}
.normal-pic-wrapper .item-pic-wrap .pic {background-size: cover;background-position: center center;background-repeat: no-repeat;height: 360px;width: 360px;}
.detail-main .main-box {float: right;width: 560px;_width: 545px;margin-right: 5px;_display: inline;}
.detail-main .main-box .title {margin:8px 0;color: #3C3C3C;font-size: 18px;line-height: 28px;overflow: hidden;text-align: justify;}
.detail-main .main-box .description {color: #aaa;font-size: 14px;line-height: 20px;word-break: break-all;margin-bottom:10px;}
.price_bg {color: #6c6c6c;padding:15px;background-color:#FFF2E8;}
.details_join a {text-align: center;padding:10px 40px;font-size: 16px;color: #fff;border-radius: 2px;background: #e61414;float:left;}
</style>
<div style="background-color:#f3f3f3;padding-bottom:10px;">
<div class="box">
<div class="detail-main clearfix">
<div class="header clearfix">
<ul class="crumbs">
<li><a href="https://ju.taobao.com/tg/today_items.htm">今日团购</a></li>
<span class="arrow"><small></small></span>
<li><a href="https://ju.taobao.com/tg/today_items.htm?stype=default&amp;page=1&amp;type=0">商品团</a></li>
<span class="arrow"><small></small></span>
<li><a href="<?php echo route('home_goodslist',array('id'=>$post['id'])); ?>"><?php echo $post['type_name']; ?></a></li>
</ul>
</div></div><!--/.sidebar-offcanvas--></div><!--/row--></div><!-- /.container -->
<a class="bookMark" href="">查看更多同类商品<span></span></a>
</div>
<div class="clearfix">
<div class="main-pic">
<div class="normal-pic-wrapper clearfix" data-spm="ne">
<div class="normal-pic ">
<a href="https://detail.tmall.com/item.htm?id=523987525652&amp;tracelog=jubuybigpic" target="_blank" class="piclink">
<div class="item-pic-wrap">
<div class="J_zoom pic " style="background-image: url(<?php echo $post['litpic']; ?>);"></div>
</div>
</a>
</div>
</div>
</div>
<div class="main-box J_mainBox avil">
<h2 class="title"><?php echo $post['title']; ?></h2>
<div class="description"><?php echo $post['description']; ?></div>
<div class="price_bg">
价格: <b class="price" style="margin-left:10px;margin-right:10px;font-size:28px;font-style:normal;color:#f40;"><?php echo $post["price"]; ?></b> 邮费:0.00
</div>
<div class="stock_bg" style="margin-top:10px;margin-bottom:30px;">
&nbsp;&nbsp;库存: <?php echo $post['goods_number']; ?>
</div>
<div class="details_join"><a href="javascript:asas();">立即抢购</a></div>
</div>
<div class="cl"></div></div>
</div>
</div>
</div>
<style>
.widget-box {border: 1px solid #d9d9d9;background: #fff;position: relative;margin-bottom: 10px;}
.widget-box .tit.none {border: none;}
.widget-box .tit {padding: 0 15px;height: 50px;line-height: 50px;border-bottom: 1px solid #d9d9d9;font-size: 14px;color: #000;background: #f9f9f9;overflow: hidden;}
.widget-box .con {padding: 6px 10px;}
.detail-detail{border: 1px solid #d9d9d9;background: #fff;}
.detail-detail .detail-con{padding:10px 5px;overflow: hidden;}
.detail-detail .dd-header{height: 50px;line-height: 50px;border-bottom: 1px solid #d7d7d7;}
.detail-detail .dd-header span{margin-right: -1px;background: #51b2d6;color: #fff;font-weight: 700;float: left;height: 50px;font-size: 14px;padding: 0 30px;text-align: center;}
.recom-list .tab-pannel {width: 210px;height: 220px;}
.recom-list .tab-pannel a {position: relative;border: 1px solid #d7d7d7;margin-bottom: 10px;display: block;width: 208px;height: 208px;color: #454545;}
.recom-list .tab-pannel img {width: 208px;height: 208px;}
.recom-list .tab-pannel .look-price {height: 32px;text-align: center;font-size: 12px;position: absolute;bottom: 0;left: 0;width: 100%;padding: 2px 0;line-height: 16px;color: #fff;background-color: rgba(0,0,0,.65);filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a6000000', endColorstr='#a6000000', GradientType=0);}
.recom-list .tab-pannel .look-price p {margin: 0 10px;height: 16px;overflow: hidden;}
</style>
<div style="background-color:#f3f3f3;">
<div class="box">
<div class="fl_210">
<div class="widget-box">
<div class="tit">客服中心</div>
<div class="con">
<b>工作时间</b><br>&nbsp;&nbsp;周一至周五:9:00-21:00<br>&nbsp;&nbsp;周六至周日:0:00-24:00
</div>
</div>
<div class="widget-box">
<div class="tit none">
你可能还喜欢
</div>
</div>
<div class="recom-list"><ul><?php if($tj_list){foreach($tj_list as $k=>$v){ ?>
<li class="tab-pannel" style="float: none; overflow: hidden; height: 222px; display: block;"><a target="_blank" href="<?php echo route('home_goods',array('id'=>$v['id'])); ?>"><img src="<?php echo $v['litpic']; ?>" alt="<?php echo $v["title"]; ?>"><div class="look-price"><div>¥<?php echo $v["price"]; ?></div><p><?php echo $v["title"]; ?></p></div></a></li>
<?php }} ?></ul></div>
</div>
<div class="fr_740">
<div class="detail-detail">
<div class="dd-header">
<span>宝贝详情</span>
</div>
<div class="detail-con">
<?php echo $post['body']; ?>
</div>
</div></div>
<div class="cl"></div>
</div></div>
@include('home.common.footer')</body></html>

232
resources/views/home/index/index.blade.php

@ -1,117 +1,139 @@
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"><link href="<?php echo sysconfig('CMS_BASEHOST'); ?>/favicon.ico" type="image/x-icon" rel="shortcut icon">
<title><?php echo sysconfig('CMS_WEBNAME'); ?></title>
<link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/css/bootstrap.min.css"><link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/css/style.css"><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/jquery.min.js"></script><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/bootstrap.min.js"></script><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/ad.js"></script></head><body>
<title><?php echo sysconfig('CMS_WEBNAME'); ?></title><meta name="keywords" content="{dede:field.keywords/}" /><meta name="description" content="{dede:field.description function='html2text(@me)'/}" /><link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/css/style.css"></head><body>
@include('home.common.header')
<div class="container marketing">
<div class="row">
<div class="col-lg-4">
<img class="img-circle" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/1.jpg" alt="Generic placeholder image" width="140" height="140">
<h2>网页搜索</h2>
<p>作为全球最大的中文搜索引擎公司,百度一直致力于让网民更便捷地获取信息,</p>
<p><a class="btn btn-default" href="<?php echo get_front_url(array("id"=>1,"type"=>'content')); ?>" role="button">更多详情 &raquo;</a></p>
</div><!-- /.col-lg-4 -->
<div class="col-lg-4">
<img class="img-circle" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/3.jpg" alt="Generic placeholder image" width="140" height="140">
<h2>社区产品</h2>
<p>信息获取的最快捷方式是人与人直接交流,为了让那些对同一个话题感兴趣的人们聚集在一起。</p>
<p><a class="btn btn-default" href="<?php echo get_front_url(array("id"=>2,"type"=>'content')); ?>" role="button">更多详情 &raquo;</a></p>
</div><!-- /.col-lg-4 -->
<div class="col-lg-4">
<img class="img-circle" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/4.jpg" alt="Generic placeholder image" width="140" height="140">
<h2>电子商务</h2>
<p>基于百度独有的搜索技术和强大社区资源,百度有啊突破性实现了网络交易和网络社区的无缝结合。</p>
<p><a class="btn btn-default" href="<?php echo get_front_url(array("id"=>3,"type"=>'content')); ?>" role="button">更多详情 &raquo;</a></p>
</div><!-- /.col-lg-4 -->
</div><!-- /.row -->
<!-- START THE FEATURETTES -->
<hr class="featurette-divider">
<style>
.main-theme .item{width: 33.3%;width: 33.3% !important;height:120px;float: left;overflow: hidden;-webkit-transition: width .3s ease;-moz-transition: width .3s ease;-o-transition: width .3s ease;transition: width .3s ease;}
.main-theme .item img{width:100%;height:100%;}
</style>
<div class="box hdp" style="margin-top:5px;"><div class="fl"><div id="slideBox"><ul style="left: 0px;" id="show_pic">
<?php if($slide_list){foreach($slide_list as $k=>$v){ ?><li><a href="<?php echo $v['url']; ?>" target="_blank"><img width="740px" height="347px" alt="<?php echo $v['title']; ?>" src="<?php echo $v['pic']; ?>"></a></li><?php }} ?></ul><div id="slideText"></div><ul id="iconBall"><?php if($slide_list){$i=1;foreach($slide_list as $k=>$v){ ?><li><?php echo $i;$i=$i+1; ?></li><?php }} ?></ul>
<ul id="textBall"><?php if($slide_list){foreach($slide_list as $k=>$v){ ?><li><a href="javascript:void(0)"><?php echo $v['title']; ?></a></li><?php }} ?></ul></div>
<div class="row featurette">
<div class="col-md-7">
<h2 class="featurette-heading"> <span class="text-muted">主营业务</span></h2>
<p class="lead">作为全球最大的中文搜索引擎公司,百度一直致力于让网民更便捷地获取信息,找到所求。用户通过百度主页,可以瞬间找到相关的搜索结果,
这些结果来自于百度超过百亿的中文网页数据库。</p>
</div>
<div class="col-md-5">
<img class="featurette-image img-responsive center-block" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/applead.png" alt="Generic placeholder image">
</div>
</div>
<div class="iztad"><div class="main-theme">
<?php if($ztad_list){foreach($ztad_list as $k=>$v){ ?><a class="item on" target="_blank" href="<?php echo $v['url']; ?>"><img class="img" src="<?php echo $v['pic']; ?>"></a><?php }} ?>
</div></div></div>
<div class="fr"><img src="images/3.jpg"></div></div>
<hr class="featurette-divider">
<style>
.cat-menu-h {padding:8px 0;margin-bottom:10px;background-color: #fff;border-bottom: 1px dotted #ccc;border-top: 1px dotted #ccc;}
.cat-menu-h ul {font-size: 14px;}
.cat-menu-h ul li {float: left;}
.cat-menu-h ul a {display: block;padding: 2px 10px;text-align: center;color: #666;white-space: nowrap;}
.cat-menu-h ul a:hover {background-color: #e61414;color: #fff;}
.cat-menu-h ul a.forecast:hover {background-color: #26a96d;color: #fff;}
.cat-menu-h ul a.forecast {color: #26a96d;}
</style>
<div class="box">
<div class="cat-menu-h">
<ul class="clearfix">
<?php if($goods_type_list){foreach($goods_type_list as $k=>$v){ ?>
<li><a href="<?php echo route('home_goodslist',array('id'=>$v['id'])); ?>"><?php echo $v['name']; ?></a></li><?php }} ?>
<li><a class="forecast" target="_blank" href="//ju.taobao.com/tg/forecast.htm"> [明日预告] </a></li>
</ul>
<div class="row featurette">
<div class="col-md-7 col-md-push-5">
<h2 class="featurette-heading">人才理念 <span class="text-muted"></span></h2>
<p class="lead">对于一个人才,我们更多注重的是,你能不能够创造,为自身创造价值,给用户带来更好的体验,这是百度所关心的,所看重的。——李彦宏</p>
</div>
<div class="col-md-5 col-md-pull-7">
<img class="featurette-image img-responsive center-block" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/applead.png" alt="Generic placeholder image">
</div>
<form method="get" target="_blank" class="m-sch fr" name="formsearch" action="/plus/search.php"><input class="sch-txt" name="q" type="text" value="搜索 按Enter键" onfocus="if(value=='搜索 按Enter键') {value=''}" onblur="if(value=='') {value='搜索 按Enter键'}"></form>
<div class="cl"></div></div>
</div>
<hr class="featurette-divider">
<div style="background-color:#f6f6f6;padding:15px 0;">
<div class="box">
<ul class="pul">
<?php if($goods_list){foreach($goods_list as $k=>$v){ ?>
<li><a href="<?php echo route('home_goods',array('id'=>$v['id'])); ?>" target="_blank"><img src="<?php echo $v['litpic']; ?>" alt="<?php echo $v['title']; ?>">
<p class="title"><?php echo $v['title']; ?></p>
<p class="desc"><span class="price-point"><i></i>库存(<?php echo $v['goods_number']; ?>)</span> <?php echo $v['title']; ?>撒个地方官发个话说得好电话公司电话</p>
<div class="item-prices red"><div class="item-link">立即<br>抢购</div><div class="item-info"><div class="price"><i>¥</i><em class="J_actPrice"><span class="yen"><?php echo $v['price']; ?></span></em></div>
<div class="dock"><div class="dock-price"><del class="orig-price">¥<?php echo $v['market_price']; ?></del> <span class="benefit">退货赔运费</span></div><div class="prompt"><div class="sold-num"><em><?php echo $v['sale']; ?></em> 件已付款</div></div></div>
</div></div>
</a></li>
<?php }} ?>
</ul></div>
<div class="row featurette">
<div class="col-md-7">
<h2 class="featurette-heading">联系我们 <span class="text-muted"></span></h2>
<p class="lead">地址:北京市海淀区上地十街10号百度大厦,邮编:100085,总机:(+86 10) 5992 8888</p>
</div>
<div class="col-md-5">
<img class="featurette-image img-responsive center-block" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/applead.png" alt="Generic placeholder image">
</div>
</div>
<div class="pages"><ul><li>共100页</li><li class="thisclass">1</li><li><a href="http://www.bnbni.com/jtbz/">2</a></li><li><a href="http://www.bnbni.com/gaizhuang/">3</a></li><li><a href="http://www.bnbni.com/car/fours/">4</a></li><li><a href="http://www.bnbni.com/car/jiaxiao/">5</a></li><li><a href="http://www.bnbni.com/qiche/list_1_2.html">下一页</a></li></ul><div class="cl"></div></div><div id="lad3"><script>ljs3();</script></div>
<hr class="featurette-divider">
</div><!-- box end -->@include('home.common.footer')
<script>//图片幻灯
var glide =new function(){
function $id(id){return document.getElementById(id);};
this.layerGlide=function(auto,oEventCont,oTxtCont,oSlider,sSingleSize,second,fSpeed,point){
var oSubLi = $id(oEventCont).getElementsByTagName('li');
var oTxtLi = $id(oTxtCont).getElementsByTagName('li');
var interval,timeout,oslideRange;
var time=1;
var speed = fSpeed
var sum = oSubLi.length;
var a=0;
var delay=second * 1000;
var setValLeft=function(s){
return function(){
oslideRange = Math.abs(parseInt($id(oSlider).style[point]));
$id(oSlider).style[point] =-Math.floor(oslideRange+(parseInt(s*sSingleSize) - oslideRange)*speed) +'px';
if(oslideRange==[(sSingleSize * s)]){
clearInterval(interval);
a=s;
}
}
};
var setValRight=function(s){
return function(){
oslideRange = Math.abs(parseInt($id(oSlider).style[point]));
$id(oSlider).style[point] =-Math.ceil(oslideRange+(parseInt(s*sSingleSize) - oslideRange)*speed) +'px';
if(oslideRange==[(sSingleSize * s)]){
clearInterval(interval);
a=s;
}
}
}
<div class="row">
<?php $posts=arclist(array("row"=>3,"tuijian"=>1,"typeid"=>4));foreach($posts as $row){ ?>
<div class="col-lg-4">
<h2><?php echo $row['title']; ?></h2>
<p><?php echo mb_strcut($row['description'],0,150,'UTF-8'); ?></p>
<p><a class="btn btn-primary" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>" role="button">View details &raquo;</a></p>
</div><?php } ?>
</div>
<div class="bs-docs-featurette">
<div class="container">
<h2 class="bs-docs-featurette-title">案例中心 / Case Show</h2>
<p class="lead">我们在这里展示了许多精美的案例,欢迎欣赏。</p>
<hr class="half-rule">
function autoGlide(){
for(var c=0;c<sum;c++){oSubLi[c].className='';oTxtLi[c].className='';};
clearTimeout(interval);
if(a==(parseInt(sum)-1)){
for(var c=0;c<sum;c++){oSubLi[c].className='';oTxtLi[c].className='';};
a=0;
oSubLi[a].className="active";
oTxtLi[a].className = "active";
interval = setInterval(setValLeft(a),time);
timeout = setTimeout(autoGlide,delay);
}else{
a++;
oSubLi[a].className="active";
oTxtLi[a].className = "active";
interval = setInterval(setValRight(a),time);
timeout = setTimeout(autoGlide,delay);
}
}
<div class="row">
<?php $posts=arclist(array("row"=>4,"tuijian"=>1,"typeid"=>2,"expression"=>[["litpic","<>","''"]]));foreach($posts as $row){ ?>
<div class="col-xs-6 col-sm-3" style="margin-bottom:15px;">
<a href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>">
<img src="<?php echo $row['litpic']; ?>" alt="<?php echo $row['title']; ?>" class="imgzsy">
</a>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- <div class="searchbox row" style="text-align:center;padding-bottom:50px;">
<form class="form-inline" method="get" action="/search" role="form">
<div class="form-group">
<input type="text" class="form-control" id="keyword" name="keyword" placeholder="请输入关键词...">
</div>
<button type="submit" class="btn btn-success">搜索一下</button>
</form>
</div> -->
if(auto){timeout = setTimeout(autoGlide,delay);};
for(var i=0;i<sum;i++){
oSubLi[i].onmouseover = (function(i){
return function(){
for(var c=0;c<sum;c++){oSubLi[c].className='';oTxtLi[c].className='';};
clearTimeout(timeout);
clearInterval(interval);
oSubLi[i].className = "active";
oTxtLi[i].className = "active";
if(Math.abs(parseInt($id(oSlider).style[point]))>[(sSingleSize * i)]){
interval = setInterval(setValLeft(i),time);
this.onmouseout=function(){if(auto){timeout = setTimeout(autoGlide,delay);};};
}else if(Math.abs(parseInt($id(oSlider).style[point]))<[(sSingleSize * i)]){
interval = setInterval(setValRight(i),time);
this.onmouseout=function(){if(auto){timeout = setTimeout(autoGlide,delay);};};
}
}
})(i)
}
}
}
<div class="row">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;友情链接:
<?php $posts=arclist(array("table"=>"friendlink","row"=>5));foreach($posts as $row){ ?>
<a href="<?php echo $row['url']; ?>"><?php echo $row['webname']; ?></a>&nbsp;
<?php } ?></div>
</div><!-- /.container -->
<script>
$(function(){
$(".imgzsy").height(function(){return $(this).width()*2/3;});
});
</script>
@include('home.common.footer')</body></html>
//调用语句
glide.layerGlide(
true, //设置是否自动滚动
'iconBall', //对应索引按钮
'textBall', //标题内容文本
'show_pic', //焦点图片容器
740, //设置滚动图片位移像素
2, //设置滚动时间2秒
0.1, //设置过渡滚动速度
'left' //设置滚动方向“向左”
);</script></body></html>

20
resources/views/home企业/404.blade.php

@ -0,0 +1,20 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>您访问的页面不存在或已被删除!</title>
<style type="text/css">
*{padding:0;margin:0;}
body{background:#fff;font-family:'微软雅黑';color:#333;font-size:16px;}
.system-message{padding:24px 48px;margin:5% auto 0 auto;width:600px;}
.system-message h1{font-size:100px;font-weight:normal;line-height:120px;margin-bottom:12px;}
.system-message .jump{padding-top:10px}
.system-message .jump a{color:#333;}
.system-message .success,.system-message .error{line-height:1.8em;font-size:36px}
.system-message .detail{font-size:14px;line-height:20px;margin-top:12px;}
</style>
</head><body>
<div class="system-message">
<h1>:(</h1>
<p class="error">您访问的页面不存在或已被删除!</p>
<p class="detail"><a href="<?php echo route('home');?>">返回首页</a></p>
</div>
</body></html>

1
resources/views/home企业/common/footer.blade.php

@ -0,0 +1 @@
<footer><p><?php echo sysconfig('CMS_POWERBY'); ?></p></footer>

36
resources/views/home企业/common/header.blade.php

@ -0,0 +1,36 @@
<div class="navbar-wrapper">
<div class="container">
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php echo sysconfig('CMS_BASEHOST'); ?>">首页</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="<?php echo get_front_url(array('catid'=>4,'type'=>'list')); ?>">新闻动态</a></li>
<li><a href="<?php echo get_front_url(array('catid'=>2,'type'=>'list')); ?>">案例中心</a></li>
<li><a href="<?php echo get_front_url(array('pagename'=>'contact','type'=>'page')); ?>">联系我们</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">关于我们 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="<?php echo get_front_url(array('pagename'=>'about','type'=>'page')); ?>">公司简介</a></li>
<li><a href="<?php echo get_front_url(array('pagename'=>'culture','type'=>'page')); ?>">企业文化</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</div>
</div>
<div class="jumbotron banner"><div class="container">
<h1>全球最大的中文搜索引擎</h1>
<p>中国最具价值的品牌之一,英国《金融时报》将百度列为“中国十大世界级品牌”,成为这个榜单中最年轻的一家公司,也是唯一一家互联网公司。</p>
<p><a class="btn btn-success btn-lg" href="<?php echo get_front_url(array('pagename'=>'about','type'=>'page')); ?>" role="button">阅读更多...</a></p>
</div></div>

0
resources/views/home/index/category.blade.php → resources/views/home企业/index/category.blade.php

0
resources/views/home/index/category2.blade.php → resources/views/home企业/index/category2.blade.php

0
resources/views/home/index/detail.blade.php → resources/views/home企业/index/detail.blade.php

25
resources/views/home企业/index/goods.blade.php

@ -0,0 +1,25 @@
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $post["title"]; ?>_<?php echo sysconfig('CMS_WEBNAME'); ?></title>
<link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="/css/style.css"><script src="/js/jquery.min.js"></script><script src="/js/bootstrap.min.js"></script></head><body>
@include('home.common.header')
<div class="container"><div class="row row-offcanvas row-offcanvas-right"><div class="col-xs-12 col-sm-9">
<div class="bread"><a href=""><?php echo sysconfig('CMS_INDEXNAME'); ?></a> > <?php echo get_cat_path($post["typeid"],'goods_type','productlist'); ?></div>
<h1 class="page-header"><?php echo $post["title"]; ?></h1>
<div class="content"><?php echo $post["body"]; ?>
<div class="dinfo"><span class="addtime"><?php echo date("Y-m-d",$post["pubdate"]); ?></span>
<br><br>下一篇:<?php if($pre){ ?><a href="<?php echo get_front_url(array("id"=>$pre['id'],"catid"=>$pre["typeid"],"type"=>'goodsdetail')); ?>"><?php echo $pre["title"]; ?></a><?php }else{echo '没有了';} ?><div class="cl"></div></div>
</div>
</div><!--/.col-xs-12.col-sm-9-->
<div class="col-xs-12 col-sm-3 sidebar-offcanvas" id="sidebar">
<div class="panel panel-info">
<div class="panel-heading"><strong>商品详情</strong></div>
<ul class="list-group">
<?php if($post["litpic"]){ ?><li class="list-group-item"><img src="<?php echo $post["litpic"]; ?>" width=100% height=auto></li><?php } ?>
<li class="list-group-item"><span class="badge "> <?php echo $post["price"]; ?></span>商品价格</li>
<li class="list-group-item"><span class="badge"><del> <?php echo $post["market_price"]; ?></del></span>原价</li>
<li class="list-group-item"><span class="badge"><?php echo $post["sale"]; ?></span>销量</li>
</ul>
</div></div><!--/.sidebar-offcanvas--></div><!--/row--></div><!-- /.container -->
@include('home.common.footer')</body></html>

23
resources/views/home企业/index/goodscat.blade.php

@ -0,0 +1,23 @@
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php if(empty($post["seotitle"])){echo $post["name"];}else{echo $post["seotitle"];} ?></title>
<link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="/css/style.css"><script src="/js/jquery.min.js"></script><script src="/js/bootstrap.min.js"></script><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/ad.js"></script></head><body>
@include('home.common.header')
<div class="container"><div class="row">
<div class="bread"><a href="<?php echo sysconfig('CMS_BASEHOST'); ?>"><?php echo sysconfig('CMS_INDEXNAME'); ?></a> > <?php echo $post["name"]; ?></div>
<?php if($posts){foreach($posts as $row){ ?>
<div class="col-xs-6 col-sm-3" style="margin-top:20px;margin-bottom:10px;">
<a href="<?php echo get_front_url(array("id"=>$row['id'],"type"=>'productdetail')); ?>" target="_blank">
<img src="<?php echo $row['litpic']; ?>" alt="<?php echo $row['title']; ?>" class="imgzsy">
<p style="padding-top:10px;"><?php echo $row['title']; ?></p>
</a></div><?php }} ?>
<br class="cl">
<div class="pages"><ul><?php echo $pagenav; ?></ul><div class="cl"></div></div>
</div></div><!-- /.container -->
<script>
$(function(){
$(".imgzsy").height(function(){return $(this).width()*2/3;});
});
</script>
@include('home.common.footer')</body></html>

117
resources/views/home企业/index/index.blade.php

@ -0,0 +1,117 @@
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"><link href="<?php echo sysconfig('CMS_BASEHOST'); ?>/favicon.ico" type="image/x-icon" rel="shortcut icon">
<title><?php echo sysconfig('CMS_WEBNAME'); ?></title>
<link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/css/bootstrap.min.css"><link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/css/style.css"><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/jquery.min.js"></script><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/bootstrap.min.js"></script><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/ad.js"></script></head><body>
@include('home.common.header')
<div class="container marketing">
<div class="row">
<div class="col-lg-4">
<img class="img-circle" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/1.jpg" alt="Generic placeholder image" width="140" height="140">
<h2>网页搜索</h2>
<p>作为全球最大的中文搜索引擎公司,百度一直致力于让网民更便捷地获取信息,</p>
<p><a class="btn btn-default" href="<?php echo get_front_url(array("id"=>1,"type"=>'content')); ?>" role="button">更多详情 &raquo;</a></p>
</div><!-- /.col-lg-4 -->
<div class="col-lg-4">
<img class="img-circle" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/3.jpg" alt="Generic placeholder image" width="140" height="140">
<h2>社区产品</h2>
<p>信息获取的最快捷方式是人与人直接交流,为了让那些对同一个话题感兴趣的人们聚集在一起。</p>
<p><a class="btn btn-default" href="<?php echo get_front_url(array("id"=>2,"type"=>'content')); ?>" role="button">更多详情 &raquo;</a></p>
</div><!-- /.col-lg-4 -->
<div class="col-lg-4">
<img class="img-circle" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/4.jpg" alt="Generic placeholder image" width="140" height="140">
<h2>电子商务</h2>
<p>基于百度独有的搜索技术和强大社区资源,百度有啊突破性实现了网络交易和网络社区的无缝结合。</p>
<p><a class="btn btn-default" href="<?php echo get_front_url(array("id"=>3,"type"=>'content')); ?>" role="button">更多详情 &raquo;</a></p>
</div><!-- /.col-lg-4 -->
</div><!-- /.row -->
<!-- START THE FEATURETTES -->
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-md-7">
<h2 class="featurette-heading"> <span class="text-muted">主营业务</span></h2>
<p class="lead">作为全球最大的中文搜索引擎公司,百度一直致力于让网民更便捷地获取信息,找到所求。用户通过百度主页,可以瞬间找到相关的搜索结果,
这些结果来自于百度超过百亿的中文网页数据库。</p>
</div>
<div class="col-md-5">
<img class="featurette-image img-responsive center-block" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/applead.png" alt="Generic placeholder image">
</div>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-md-7 col-md-push-5">
<h2 class="featurette-heading">人才理念 <span class="text-muted"></span></h2>
<p class="lead">对于一个人才,我们更多注重的是,你能不能够创造,为自身创造价值,给用户带来更好的体验,这是百度所关心的,所看重的。——李彦宏</p>
</div>
<div class="col-md-5 col-md-pull-7">
<img class="featurette-image img-responsive center-block" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/applead.png" alt="Generic placeholder image">
</div>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-md-7">
<h2 class="featurette-heading">联系我们 <span class="text-muted"></span></h2>
<p class="lead">地址:北京市海淀区上地十街10号百度大厦,邮编:100085,总机:(+86 10) 5992 8888</p>
</div>
<div class="col-md-5">
<img class="featurette-image img-responsive center-block" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/applead.png" alt="Generic placeholder image">
</div>
</div>
<hr class="featurette-divider">
<div class="row">
<?php $posts=arclist(array("row"=>3,"tuijian"=>1,"typeid"=>4));foreach($posts as $row){ ?>
<div class="col-lg-4">
<h2><?php echo $row['title']; ?></h2>
<p><?php echo mb_strcut($row['description'],0,150,'UTF-8'); ?></p>
<p><a class="btn btn-primary" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>" role="button">View details &raquo;</a></p>
</div><?php } ?>
</div>
<div class="bs-docs-featurette">
<div class="container">
<h2 class="bs-docs-featurette-title">案例中心 / Case Show</h2>
<p class="lead">我们在这里展示了许多精美的案例,欢迎欣赏。</p>
<hr class="half-rule">
<div class="row">
<?php $posts=arclist(array("row"=>4,"tuijian"=>1,"typeid"=>2,"expression"=>[["litpic","<>","''"]]));foreach($posts as $row){ ?>
<div class="col-xs-6 col-sm-3" style="margin-bottom:15px;">
<a href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>">
<img src="<?php echo $row['litpic']; ?>" alt="<?php echo $row['title']; ?>" class="imgzsy">
</a>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- <div class="searchbox row" style="text-align:center;padding-bottom:50px;">
<form class="form-inline" method="get" action="/search" role="form">
<div class="form-group">
<input type="text" class="form-control" id="keyword" name="keyword" placeholder="请输入关键词...">
</div>
<button type="submit" class="btn btn-success">搜索一下</button>
</form>
</div> -->
<div class="row">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;友情链接:
<?php $posts=arclist(array("table"=>"friendlink","row"=>5));foreach($posts as $row){ ?>
<a href="<?php echo $row['url']; ?>"><?php echo $row['webname']; ?></a>&nbsp;
<?php } ?></div>
</div><!-- /.container -->
<script>
$(function(){
$(".imgzsy").height(function(){return $(this).width()*2/3;});
});
</script>
@include('home.common.footer')</body></html>

0
resources/views/home/index/login.blade.php → resources/views/home企业/index/login.blade.php

0
resources/views/home/index/page.blade.php → resources/views/home企业/index/page.blade.php

0
resources/views/home/index/search.blade.php → resources/views/home企业/index/search.blade.php

9
resources/views/home企业/index/sitemap.blade.php

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc><?php echo sysconfig('CMS_BASEHOST'); ?>/</loc><changefreq>daily</changefreq><priority>1.0</priority></url>
<url><loc><?php echo sysconfig('CMS_BASEHOST'); ?>/contact.html</loc></url>
<?php $posts=arclist(array("row"=>300));foreach($posts as $row){ ?><url><loc><?php echo sysconfig('CMS_BASEHOST'); ?><?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?></loc><lastmod><?php echo date("Y-m-d",$row['pubdate']); ?></lastmod><changefreq>monthly</changefreq></url><?php } ?>
<?php $posts=arclist(array("row"=>100,"orderby"=>'rand()'));foreach($posts as $row){ ?><url><loc><?php echo sysconfig('CMS_BASEHOST'); ?><?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?></loc><lastmod><?php echo date("Y-m-d",$row['pubdate']); ?></lastmod><changefreq>monthly</changefreq></url><?php } ?>
<?php $posts=dataList("arctype");foreach($posts as $row){ ?><url><loc><?php echo sysconfig('CMS_BASEHOST'); ?><?php echo get_front_url(array("catid"=>$row['id'],"type"=>'list')); ?></loc></url><?php } ?>
</urlset>

0
resources/views/home/index/tag.blade.php → resources/views/home企业/index/tag.blade.php

0
resources/views/home/index/tag2.blade.php → resources/views/home企业/index/tag2.blade.php

0
resources/views/home/index/tag3.blade.php → resources/views/home企业/index/tag3.blade.php

0
resources/views/home/index/tags.blade.php → resources/views/home企业/index/tags.blade.php

0
resources/views/home/index/test.blade.php → resources/views/home企业/index/test.blade.php

4
routes/web.php

@ -22,7 +22,6 @@ Route::group(['domain' => env('APP_SUBDOMAIN'), 'namespace' => 'Wap'], function
Route::get('/tag{tag}', 'IndexController@tag')->name('wap_tag'); //标签页
Route::get('/page/{id}', 'IndexController@page')->name('wap_singlepage'); //单页
Route::get('/goods/{id}', 'IndexController@goods')->name('wap_goods'); //商品详情页
Route::get('/goodstype{cat}/{page}', 'IndexController@goodstype'); //产品分类页,分页
Route::get('/goodstype{cat}', 'IndexController@goodstype')->name('wap_goodstype'); //产品分类页
Route::get('/sitemap.xml', 'IndexController@sitemap')->name('wap_sitemap'); //sitemap
});
@ -41,8 +40,7 @@ Route::group(['namespace' => 'Home'], function () {
Route::get('/tag{tag}', 'IndexController@tag')->name('home_tag'); //标签页
Route::get('/page/{id}', 'IndexController@page')->name('home_singlepage'); //单页
Route::get('/goods/{id}', 'IndexController@goods')->name('home_goods'); //商品详情页
Route::get('/goodstype{cat}/{page}', 'IndexController@goodstype'); //产品分类页,分页
Route::get('/goodstype{cat}', 'IndexController@goodstype')->name('home_goodstype'); //产品分类页
Route::get('/goodslist', 'IndexController@goodslist')->name('home_goodslist'); //产品分类页
Route::get('/sitemap.xml', 'IndexController@sitemap')->name('home_sitemap');//sitemap
Route::get('/test', 'IndexController@test')->name('home_test'); //测试

Loading…
Cancel
Save