diff --git a/app/Common/function.php b/app/Common/function.php
index 13f9610..26e2afe 100644
--- a/app/Common/function.php
+++ b/app/Common/function.php
@@ -95,6 +95,16 @@ function get_front_url($param='')
//tags页面
$url .= '/s'.$param['searchid'];
}
+ else if($param['type'] == 'productlist')
+ {
+ //商品列表页
+ $url .= '/product'.$param['catid'];
+ }
+ else if($param['type'] == 'productdetail')
+ {
+ //商品内容页
+ $url .= '/goods/'.$param['id'];
+ }
return $url;
}
@@ -103,7 +113,7 @@ function get_front_url($param='')
function get_wap_front_url(array $param)
{
$url = '';
-
+
if($param['type'] == 'list')
{
//列表页
@@ -129,7 +139,17 @@ function get_wap_front_url(array $param)
//tags页面
$url .= '/s'.$param['searchid'];
}
-
+ else if($param['type'] == 'productlist')
+ {
+ //商品列表页
+ $url .= '/product'.$param['catid'];
+ }
+ else if($param['type'] == 'productdetail')
+ {
+ //商品内容页
+ $url .= '/goods/'.$param['id'];
+ }
+
return $url;
}
@@ -240,11 +260,12 @@ function arclist(array $param)
*/
function tagslist($param="")
{
+ $tagindex = \DB::table("tagindex");
$orderby=$limit="";
- if(isset($param['limit'])){$limit=$param['limit'];}else{if(isset($param['row'])){$limit=$param['row'];}}
- if(isset($param['orderby'])){$orderby=$param['orderby'];}else{$orderby='id desc';}
+ if(isset($param['row'])){$tagindex = $tagindex->take($param['row']);}
+ if(isset($param['orderby'])){if($param['orderby']=='rand()'){$tagindex = $tagindex->orderBy(\DB::Raw('rand()'));}else{$tagindex = $tagindex->orderBy($param['orderby'][0],$param['orderby'][1]);}}else{$tagindex = $tagindex->orderBy('id','desc');}
- return \DB::table("tagindex")->get();
+ return object_to_array($tagindex->get());
}
/**
@@ -676,17 +697,17 @@ function category_tree($list,$pid=0)
}
//递归获取面包屑导航
-function get_cat_path($cat)
+function get_cat_path($cat,$table='arctype',$type='list')
{
global $temp;
- $row = db("arctype")->field('typename,reid,id')->where("id=$cat")->find();
+ $row = \DB::table($table)->select('name','pid','id')->where('id',$cat)->first();
- $temp = ''.$row["typename"]." > ".$temp;
+ $temp = '$row->id,"type"=>$type)).'">'.$row->name." > ".$temp;
- if($row["reid"]<>0)
+ if($row->pid<>0)
{
- get_cat_path($row["reid"]);
+ get_cat_path($row->pid);
}
return $temp;
@@ -698,19 +719,19 @@ function taglist($id,$tagid=0)
$tags="";
if($tagid!=0)
{
- $Taglist = db("taglist")->where("aid=$id and tid<>$tagid")->select();
+ $Taglist = \DB::table("taglist")->where('aid',$id)->where('tid', '<>', $tagid)->get();
}
else
{
- $Taglist = db("taglist")->where("aid=$id")->select();
+ $Taglist = \DB::table("taglist")->where('aid',$id)->get();
}
foreach($Taglist as $row)
{
- if($tags==""){$tags='id='.$row['tid'];}else{$tags=$tags.' or id='.$row['tid'];}
+ if($tags==""){$tags='id='.$row->tid;}else{$tags=$tags.' or id='.$row->tid;}
}
- if($tags!=""){return db("tagindex")->where($tags)->select();}
+ if($tags!=""){return object_to_array(\DB::table("tagindex")->whereRaw(\DB::raw($tags))->get());}
}
//读取动态配置
diff --git a/app/Http/Controllers/Api/IndexController.php b/app/Http/Controllers/Api/IndexController.php
index 6e99f95..be3e849 100644
--- a/app/Http/Controllers/Api/IndexController.php
+++ b/app/Http/Controllers/Api/IndexController.php
@@ -67,7 +67,8 @@ class IndexController extends CommonController
foreach($list as $key=>$row)
{
- $list[$key]["url"] = get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content'));
+ $list[$key]["url"] = get_front_url(array("id"=>$row['id'],"type"=>'content'));
+ $list[$key]["pubdate"] = date("Y-m-d", $list[$key]["pubdate"]);
}
$res["data"] = $list;
diff --git a/app/Http/Controllers/Home/IndexController.php b/app/Http/Controllers/Home/IndexController.php
index a9e61a1..29d6fcd 100644
--- a/app/Http/Controllers/Home/IndexController.php
+++ b/app/Http/Controllers/Home/IndexController.php
@@ -22,9 +22,9 @@ class IndexController extends CommonController
{
$pagenow = $page;
- if(empty($cat) || !preg_match('/[0-9]+/',$cat)){error_jump('您访问的页面不存在或已被删除!', route('page404'));}
+ 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)){error_jump('您访问的页面不存在或已被删除!', route('page404'));} cache(["catid$cat"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));}
+ 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="";
@@ -40,7 +40,7 @@ class IndexController extends CommonController
if($counts % $pagesize){//取总数据量除以每页数的余数
$pages = intval($counts/$pagesize) + 1; //如果有余数,则页数等于总数据量除以每页数的结果取整再加一,如果没有余数,则页数等于总数据量除以每页数的结果
}else{$pages = $counts/$pagesize;}
- if(!empty($pagenow)){if($pagenow==1 || $pagenow>$pages){error_jump('您访问的页面不存在或已被删除!', route('page404'));}$page = $pagenow-1;$nextpage=$pagenow+1;$previouspage=$pagenow-1;}else{$page = 0;$nextpage=2;$previouspage=0;}
+ 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;
@@ -49,7 +49,7 @@ class IndexController extends CommonController
$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)){error_jump('您访问的页面不存在或已被删除!', route('page404'));}}
+ if($post['templist']=='category2'){if(!empty($pagenow)){return redirect()->route('page404');}}
return view('home.index.'.$post['templist'], $data);
}
@@ -57,9 +57,9 @@ class IndexController extends CommonController
//文章详情页
public function detail($id)
{
- if(empty($id) || !preg_match('/[0-9]+/',$id)){error_jump('您访问的页面不存在或已被删除!', route('page404'));}
+ 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)){error_jump('您访问的页面不存在或已被删除!', route('page404'));}$post['name'] = DB::table('arctype')->where('id', $post['typeid'])->value('name');cache(["detailid$id"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));}
+ 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'];
@@ -71,7 +71,7 @@ class IndexController extends CommonController
}
else
{
- error_jump('您访问的页面不存在或已被删除!', route('page404'));
+ 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));}
@@ -80,28 +80,28 @@ class IndexController extends CommonController
}
//标签详情页,共有3种显示方式,1正常列表,2列表显示文章,3显示描述
- public function tag($tag, $page)
+ public function tag($tag, $page=0)
{
$pagenow = $page;
- if(empty($tag) || !preg_match('/[0-9]+/',$tag)){error_jump('您访问的页面不存在或已被删除!', route('page404'));}
+ if(empty($tag) || !preg_match('/[0-9]+/',$tag)){return redirect()->route('page404');}
- if(cache("tagid$tag")){$post=cache("tagid$tag");}else{$post = DB::table('tagindex')->where("id=$tag")->first();cache("tagid$tag",$post,2592000);}
- $this->assign('post',$post);
+ $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>CMS_MAXARC){$counts=CMS_MAXARC;}
- $pagesize=CMS_PAGESIZE;$page=0;
+ $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){header("HTTP/1.0 404 Not Found");error_jump('您访问的页面不存在或已被删除!', route('page404'));}$page = $pagenow-1;$nextpage=$pagenow+1;$previouspage=$pagenow-1;}else{$page = 0;$nextpage=2;$previouspage=0;}
- $this->assign('page',$page);
- $this->assign('pages',$pages);
- $this->assign('counts',$counts);
+ 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=DB::table("taglist")->where("tid=$tag")->order('aid desc')->limit("$start,$pagesize")->select();
+ $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"];
@@ -112,23 +112,23 @@ class IndexController extends CommonController
{
if($post['template']=='tag2')
{
- $this->assign('posts',arclist(array("sql"=>"id in ($aid)","orderby"=>"id desc","limit"=>"$pagesize","field"=>"title,body"))); //获取列表
+ $data['posts'] = arclist(array("sql"=>"id in ($aid)","orderby"=>['id', 'desc'],"row"=>"$pagesize","field"=>"title,body")); //获取列表
}
else
{
- $this->assign('posts',arclist(array("sql"=>"id in ($aid)","orderby"=>"id desc","limit"=>"$pagesize"))); //获取列表
+ $data['posts'] = arclist(array("sql"=>"id in ($aid)","orderby"=>['id', 'desc'],"row"=>"$pagesize")); //获取列表
}
}
else
{
- $this->assign('posts',""); //获取列表
+ $data['posts'] = ''; //获取列表
}
- $this->assign('pagenav',get_listnav(array("counts"=>$counts,"pagesize"=>$pagesize,"pagenow"=>$page+1,"catid"=>$tag,"urltype"=>"tag"))); //获取分页列表
+ $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');}}
- if($post['template']=='tag2' || $post['template']=='tag3'){if(!empty($pagenow)){error_jump('您访问的页面不存在或已被删除!', route('page404'));}}
- return $this->fetch($post['template']);
- return view('home.index.index');
+ return view('home.index.'.$post['template'], $data);
}
//标签页
@@ -138,24 +138,19 @@ class IndexController extends CommonController
}
//搜索页
- public function search()
+ public function search($keyword)
{
- if(!empty($_GET["keyword"]))
+ if(empty($keyword))
{
- $keyword = $_GET["keyword"]; //搜索的关键词
- if(strstr($keyword,"&")) exit;
-
- $map['title'] = array('LIKE',"%$keyword%");
-
- $this->assign('posts',DB::table("article")->field('body',true)->where($map)->order('id desc')->limit(30)->select());
- $this->assign('keyword',$keyword);
- }
- else
- {
- $this->error('请输入正确的关键词', '/' , 3);exit;
+ echo '请输入正确的关键词';exit;
}
- return view('home.index.search');
+ 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);
}
//单页面
@@ -174,15 +169,17 @@ class IndexController extends CommonController
}
else
{
- error_jump('您访问的页面不存在或已被删除!', route('page404'));
+ return redirect()->route('page404');
}
}
else
{
- error_jump('您访问的页面不存在或已被删除!', route('page404'));
+ 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);
}
@@ -191,12 +188,12 @@ class IndexController extends CommonController
{
$pagenow = $page;
- if(empty($cat) || !preg_match('/[0-9]+/',$cat)){error_jump('您访问的页面不存在或已被删除!', route('page404'));}
+ if(empty($cat) || !preg_match('/[0-9]+/',$cat)){return redirect()->route('page404');}
- $post = object_to_array(DB::table('product_type')->where('id', $cat)->first(), 1);if(empty($post)){error_jump('您访问的页面不存在或已被删除!', route('page404'));}
+ $post = object_to_array(DB::table('product_type')->where('id', $cat)->first(), 1);if(empty($post)){return redirect()->route('page404');}
$data['post'] = $post;
- $subcat="";$sql="";
+ $subcat="";
$post2 = object_to_array(DB::table('product_type')->select('id')->where('pid', $cat)->get());
if(!empty($post2)){foreach($post2 as $row){$subcat=$subcat."typeid=".$row["id"]." or ";}}
$subcat=$subcat."typeid=".$cat;
@@ -208,15 +205,16 @@ class IndexController extends CommonController
if($counts % $pagesize){//取总数据量除以每页数的余数
$pages = intval($counts/$pagesize) + 1; //如果有余数,则页数等于总数据量除以每页数的结果取整再加一,如果没有余数,则页数等于总数据量除以每页数的结果
}else{$pages = $counts/$pagesize;}
- if(!empty($pagenow)){if($pagenow==1 || $pagenow>$pages){error_jump('您访问的页面不存在或已被删除!', route('page404'));}$page = $pagenow-1;$nextpage=$pagenow+1;$previouspage=$pagenow-1;}else{$page = 0;$nextpage=2;$previouspage=0;}
+ 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'] = DB::table('article')->whereRaw($subcat)->paginate($pagesize); //获取列表
-
- if($post['templist']=='category2'){if(!empty($pagenow)){error_jump('您访问的页面不存在或已被删除!', route('page404'));}}
+ $data['posts'] = arclist(array("table"=>"product","sql"=>$subcat, "limit"=>"$start,$pagesize")); //获取列表
+ $data['pagenav'] = get_listnav(array("counts"=>$counts,"pagesize"=>$pagesize,"pagenow"=>$page+1,"catid"=>$cat,"urltype"=>"product")); //获取分页列表
+
+ if($post['templist']=='category2'){if(!empty($pagenow)){return redirect()->route('page404');}}
return view('home.index.'.$post['templist'], $data);
}
@@ -224,9 +222,9 @@ class IndexController extends CommonController
//商品详情页
public function product($id)
{
- if(empty($id) || !preg_match('/[0-9]+/',$id)){error_jump('您访问的页面不存在或已被删除!', route('page404'));}
+ if(empty($id) || !preg_match('/[0-9]+/',$id)){return redirect()->route('page404');}
- $post = object_to_array(DB::table('product')->where('id', $id)->first(), 1);if(empty($post)){error_jump('您访问的页面不存在或已被删除!', route('page404'));}$post['name'] = DB::table('arctype')->where('id', $post['typeid'])->value('name');
+ $post = object_to_array(DB::table('product')->where('id', $id)->first(), 1);if(empty($post)){return redirect()->route('page404');}$post['name'] = DB::table('product_type')->where('id', $post['typeid'])->value('name');
if($post)
{
$cat = $post['typeid'];
@@ -238,14 +236,14 @@ class IndexController extends CommonController
}
else
{
- error_jump('您访问的页面不存在或已被删除!', route('page404'));
+ return redirect()->route('page404');
}
$post = object_to_array(DB::table('product_type')->where('id', $cat)->first(), 1);
return view('home.index.'.$post['temparticle'], $data);
}
-
+
//sitemap页面
public function sitemap()
{
@@ -263,4 +261,4 @@ class IndexController extends CommonController
{
return date("Y-m-d H:i:s",strtotime("2017-04"));
}
-}
+}
\ No newline at end of file
diff --git a/app/Http/Controllers/Wap/CommonController.php b/app/Http/Controllers/Wap/CommonController.php
new file mode 100644
index 0000000..31a690b
--- /dev/null
+++ b/app/Http/Controllers/Wap/CommonController.php
@@ -0,0 +1,12 @@
+middleware('guest')->except('logout');
+ parent::__construct();
+ }
+
+ //首页
+ public function index()
+ {
+ return view('wap.index.index');
}
- public function index()
+ //列表页
+ public function category($cat, $page=0)
{
- dd('wap/index');
+ $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('wap.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('wap.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('wap.index.'.$post['template'], $data);
+ }
+
+ //标签页
+ public function tags()
+ {
+ return view('wap.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('wap.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('wap.index.'.$post['template'], $data);
+ }
+
+ //商品列表页
+ public function productcat($cat, $page=0)
+ {
+ $pagenow = $page;
+
+ if(empty($cat) || !preg_match('/[0-9]+/',$cat)){return redirect()->route('page404');}
+
+ $post = object_to_array(DB::table('product_type')->where('id', $cat)->first(), 1);if(empty($post)){return redirect()->route('page404');}
+ $data['post'] = $post;
+
+ $subcat="";
+ $post2 = object_to_array(DB::table('product_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("product")->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"=>"product","sql"=>$subcat, "limit"=>"$start,$pagesize")); //获取列表
+ $data['pagenav'] = get_listnav(array("counts"=>$counts,"pagesize"=>$pagesize,"pagenow"=>$page+1,"catid"=>$cat,"urltype"=>"product")); //获取分页列表
+
+ if($post['templist']=='category2'){if(!empty($pagenow)){return redirect()->route('page404');}}
+
+ return view('wap.index.'.$post['templist'], $data);
+ }
+
+ //商品详情页
+ public function product($id)
+ {
+ if(empty($id) || !preg_match('/[0-9]+/',$id)){return redirect()->route('page404');}
+
+ $post = object_to_array(DB::table('product')->where('id', $id)->first(), 1);if(empty($post)){return redirect()->route('page404');}$post['name'] = DB::table('product_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('product_type')->where('id', $cat)->first(), 1);
+
+ return view('wap.index.'.$post['temparticle'], $data);
+ }
+
+ //sitemap页面
+ public function sitemap()
+ {
+ return view('wap.index.sitemap');
+ }
+
+ //404页面
+ public function page404()
+ {
+ return view('home.404');
+ }
+
+ //测试页面
+ public function test()
+ {
+ return date("Y-m-d H:i:s",strtotime("2017-04"));
+ }
+}
\ No newline at end of file
diff --git a/public/css/style.css b/public/css/style.css
index da98153..6d1f392 100644
--- a/public/css/style.css
+++ b/public/css/style.css
@@ -1,231 +1,104 @@
-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:middle;}.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:underline;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;}
-img:hover{filter:alpha(opacity=90);opacity:0.9;}
+/* 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
+-------------------------------------------------- */
-.box{width:960px;margin-left:auto;margin-right:auto;overflow:hidden;}
-.fl_640{width:640px;float:left;overflow:hidden;}.fr_300{width:300px;float:right;overflow:hidden;}
+/* 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;}
-#header{width:100%;background-color:#22ac38;}
-#navlink{height:50px;line-height:50px;white-space:nowrap;overflow:hidden;}
-.webname{float:left;background:url(../images/logo.png) no-repeat left 7px;padding-left:90px;font-size:1.35em;margin-right:15px;color:#9f9f9f;text-indent:-999em;overflow:hidden;}
-.nav a{font-size:18px;float:left;display:block;padding:0 20px;color:#fff;}
-.nav a:hover{background-color:#179500;color:#fff;}
+/* 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;}
-.m-sch{width:185px;height:24px;*margin-top:6px;}.m-sch .sch-txt{border:0;background-color:#fff;width:180px;height:24px;line-height:23px;color:#898989;padding-left:5px;}
+/* CUSTOMIZE THE CAROUSEL
+-------------------------------------------------- */
-#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;}
+/* 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;}
-.imglist{margin-top:10px;margin-right:-8px;}.imglist li{margin-right:8px;position:relative;float:left;overflow:hidden;}.imglist img{display:block;height:115px;width:154px;}
-.imglist span,.imglist2 span{background:#000;filter:alpha(opacity=60);opacity:0.6;bottom:0;color:#fff;font-size:14px;height:28px;line-height:28px;text-align:center;width:100%;position:absolute;overflow:hidden;white-space:nowrap;}
-.imglist2{margin-right:-20px;}.imglist2 li{margin-right:20px;position:relative;float:left;overflow:hidden;}.imglist2 img{display:block;height:105px;width:140px;}
+/* 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;}
-.list{padding:28px 15px 30px 15px;border-bottom:1px solid #ebebeb;}.list:hover{border-color:#f8f8f8;background-color:#f8f8f8;}.list:hover .tit a{color:#22ac38;}
-.tit{display:block;font-weight:700;font-size:22px;line-height:1.5;color:#333;padding-bottom:6px;}
-.list p{word-break:break-all;color:#777;font-size:16px;line-height:26px;}.list p a{color:#f60;}
-.info{margin-top:9px;color:#999;font-size:14px;}.info a{color:#22ac38;margin-right:8px;}.info .fr{color:#444;}.info .fl i{color:#f60;margin-right:8px;}
-.list .limg{width:169px;height:119px;float:left;margin-right:20px;}.list .limg img{width:169px;height:119px;vertical-align:top;}
+/* 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
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;}
-.side{margin-top:20px;}.stit{border-bottom:1px solid #e5e5e5;height:40px;margin-bottom:15px;}
-.stit h2,.stit h3,.stit .stith{float:left;height:20px;line-height:20px;border-left:5px solid #22ac38;padding-left:9px;font-size:20px;font-weight:normal;}
-.stit .more{float:right;font-size:12px;margin-top:3px;color:#22ac38;}.stith strong{font-weight:normal;}
-.uli{padding:0 0 20px 8px;margin-top:15px;}.uli li{line-height:28px;height:28px;}.stit + .uli{margin-top:0;}
-.uli li a{background:url('../images/icon.gif') 0 12px no-repeat;padding-left:12px;color:#2d64b3;word-break:normal;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
-
-.uli2{margin-top:-16px;padding-bottom:20px;}
-.suli{line-height:1.1;padding:14px 0;border-top:1px solid #e5e5e5;}
-.suli a{_width:290px;line-height:1.3;font-size:16px;}.sulii{font-size:14px;margin-top:8px;}.time{color:#f60;margin-right:8px;}
-.suli .limg{width:80px;height:60px;float:left;margin-right:10px;}.suli .limg img{width:80px;height:60px;border:none;}
-
-.cat-box{margin-top:10px;border:1px solid #ccd3e4;border-top:none;}
-.cat-box .cat-title{height:38px;line-height:38px;border-top:2px solid #22ac38;border-bottom:1px solid #ccd3e4;font-size:1.17em;background-color:#fafbfc;}.cat-box .cat-title b a,.cat-box .cat-title strong{margin:0 0 0 15px;color:#22ac38;}
-.cat-title .more{float:right;margin-right:10px;}
-.line-one-thumbnail{float:left;width:200px;height:145px;margin:0 15px 0 0;overflow:hidden;transition-duration:.3s;}.line-one-thumbnail a img{width:200px;height:145px;transition:transform .3s linear;}
-.cat-site{padding:15px 20px 18px 20px;}
-.cat-site .entry-title{font-weight:bold;font-size:16px;display:block;line-height:30px;margin:0 0 5px 0;width:95%;white-space:nowrap;word-wrap:normal;text-overflow:ellipsis;overflow:hidden;}
-.cat-des{border-bottom:1px solid #ccd3e4;padding-bottom:8px;margin-bottom:5px;}.cat-des p{color:#999;}
-.cat-list li{padding-left:20px;background:url(../images/icon5.png) no-repeat left center;line-height:32px;height:32px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:16px;*width:250px;}.cat-list li span{float:right;color:#999;}
-.line-small{margin-right:-10px;}.line-small .cat-box{width:313px;float:left;margin-right:10px;}.cat-main{color:#777;margin:0 0 5px 0;height:80px;overflow:hidden;}
-.line-small .thumbnail,.line-small .thumbnail img{width:120px;height:80px;}
-.thumbnail{float:left;width:200px;height:145px;margin:0 15px 5px 0;clear:both;overflow:hidden;transition-duration:.3s;}
-
-.uli3{padding-bottom:20px;}
-.uli3 li{padding:5px 0 0 20px;margin-bottom:15px;position:relative;}
-.uli3 li i{position:absolute;top:16px;left:0;background:#22ac38;width:5px;height:5px;}
-.uli3 li a{display:block;font-size:16px;line-height:1.7em;}
-
-.hot_ht a{display:inline-block;padding:8px 10px;font-size:14px;background:#f6f6f6;color:#808080;transition:all .1s;margin:0 4px 10px;border-radius:3px;box-shadow:1px 1px 2px #eee;}
-.hot_ht a:hover{background:#22ac38;color:#fff;box-shadow:1px 1px 1px #1da633;text-decoration:none;}
-.ws-tag a{display:inline-block;font-size:14px;color:#666;border:1px solid #ccc;padding:0 12px;margin-right:12px;margin-bottom:10px;height:30px;line-height:30px;border-radius:30px;cursor:pointer;}
-.ws-tag a:hover{color:#f60;border:1px solid #f60;}
+/* 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:#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:#f4f4f4;padding-right:15px;padding-left:15px;margin-right:1px;*display:inline;}
-.pages li a{color:#808080;}.pages .thisclass{background-color:#22ac38;color:#fff;}
-.pages li:hover,.pages li:hover a{background-color:#22ac38;color:#fff;}
-
-.bth{font-weight:normal;font-family:"Microsoft Yahei";}.bread{color:#ccc;}.bread a{color:#22ac38;}
-.arct{font-size:36px;color:#333;font-weight:600;margin-bottom:12px;}
-#ztinfo{margin-top:8px;border:1px solid #f1f1f1;height:96px;background:#f6f6f6;}#ztinfo h1{width:150px;height:96px;line-height:98px;font-size:22px;font-weight:normal;text-align:center;color:#fff;background-color:#22ac38;}
-#ztinfo p{width:460px;line-height:1.54;padding-top:9px;margin-right:10px;font-family:arial;font-size:13px;color:#808080;}#ztinfo p a{color:#22ac38;}
-.zinfo h1{margin-bottom:8px;}.zkws a:hover{background-color:#179500;color:#fff;}.zkws a{color:#fff;background-color:#22ac38;border-radius:3px;padding:5px 10px;margin:0 5px 5px 0;display:inline-block;font-size:14px;-webkit-transition:all .1s;-moz-transition:all .1s;transition:all .1s;}
-
-.tagb{overflow:hidden;padding:5px 0 10px;border:1px solid #E8E6E3;border-radius:3px;}
-.tagb dl{float:left;width:182px;padding:0 10px 0 20px;border-right:1px solid #E8E6E3;}
-.tagb dt{font-size:16px;color:#38245D;line-height:26px;}.tagb dt a{color:#22ac38;}
-.tagb dd{line-height:24px;padding-top:5px;}.tagb dd a{color:#666;display:inline-block;margin-right:10px;}
-
-.content{font:normal 18px/180% "Microsoft YaHei";color:#222;margin-bottom:15px;}
-.content p{/* margin-bottom:1.35em; */}.content u{color:#1570a6;text-decoration:none;}.content h2,.tagarct{font-size:22px;line-height:1.176;color:#22ac38;padding-top:15px;padding-bottom:10px;}.content strong,.content b{color:#22ac38;font-size:18px;}
-.content img{max-width:640px;width:expression(this.width > 640 ? "640px" :this.width);height:auto;}
+.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;}
-.dinfo,.timely{color:#aaa;font-size:12px;line-height:1.5;font-family:SimSun;margin:5px 0 8px;}.dinfo a,.timely #atime{color:#22ac38;}
-
-#slideBox{width:640px;height:347px;overflow:hidden;position:relative;}
-#slideBox ul#show_pic{margin:0;padding:0;list-style:none;width:6400px;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:640px;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:640px;overflow:hidden;}
-.hdp .fr{width:290px;overflow:hidden;padding:10px 10px 4px 10px;border:1px solid #e0e0e0;line-height:22px;color:#555;}.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;}
-.iad1{height:60px;overflow:hidden;margin-top:8px;}
-
-.rtags a{margin-right:10px;line-height:1.5;}
-.bqtag{border-bottom:1px #EAEAEA solid;padding:15px 0 20px;}.bqtag strong{color:#000;font:300 22px/36px 'Microsoft YaHei';}.bqtag a{margin-right:24px;font:14px/36px 'Tahoma';color:#333;display:inline-block;}
-
-.zmBox li{width:23px;height:23px;float:left;margin-bottom:5px;}
-.zmBox li a{width:100%;height:00%;display:block;text-align:center;color:#333;font:300 12px/22px 'Tahoma';}
-.nameBox{margin-top:25px;padding:0 6px;}
-.nameBox .name{padding:26px 0 32px;border-bottom:1px #EAEAEA solid;}
-.nameBox .name h3 a{width:36px;height:36px;color:#333;font:300 22px/36px 'Tahoma';background:#EAEAEA;display:block;text-align:center;text-decoration:none;}
-.nameBox .name ul{margin-top:24px;}
-.nameBox .name li{display:inline;display:inline-block;margin-right:24px;}
-.nameBox .name li a{font:14px/36px 'Tahoma';color:#333;display:inline-block;}
-
-#footer{text-align:center;margin-bottom:5px;margin-top:10px;color:#5D5D5D;}
-.tm{overflow:hidden;position:fixed;left:1px;bottom:15px;z-index:999;_position:absolute;}
-
-.labels a{padding:0 8px;border:1px solid #e5e5e5;color:#2393df;margin-right:5px;display:inline-block;height:20px;line-height:20px;}.labels a:hover{background-color:#2393df;color:#fff;border:1px solid #2393df;}
-#iadimg{height:280px;width:100%;display:block;}.zdes{margin-bottom:8px;}
-.uzlist{padding-left:5px;}.uzlist li{padding-left:30px;position:relative;line-height:38px;height:38px;overflow:hidden;}.side .uzlist{margin-top:-5px;}
-.uzlist li .num{position:absolute;left:0;width:20px;height:20px;text-align:center;line-height:20px;top:9px;font-size:16px;color:#22ac38;}
-.uzlist li .top3{background:#22ac38;color:#fff;}.uzlist li a{color:#333;font-size:16px;display:block;overflow:hidden;}
-.readmore a{display:block;height:42px;line-height:42px;text-align:center;background:#f4f4f4;font-size:18px;color:#333;}.readmore a:hover{background:#22ac38;color:#fff;}
-
-/*==========right images==========*/
-.hotPic{margin-top:15px;margin-right:-20px;}.hotPic img{display:block;height:105px;width:140px;}
-.hotPic li{margin-right:20px;margin-bottom:5px;float:left;overflow:hidden;width:140px;}
-.hotPic span{height:30px;line-height:28px;text-align:center;padding-left:5px;padding-right:5px;display:block;overflow:hidden;white-space:nowrap;}
-
-/*TAB标签*/
-.nTab{background:#22ac38;}
-.nTab .TabTitle{clear:both;height:30px;line-height:30px;overflow:hidden;font-size:14px;color:white;}
-.nTab .TabTitle ul{margin:0;padding:0;}
-.nTab .TabTitle li{float:left;width:84px;cursor:pointer;list-style-type:none;text-align:center;}
-.nTab .TabTitle .active{background:white;color:#22ac38;border-left:1px #ebebeb solid;border-top:1px #ebebeb solid;border-bottom:1px #fff solid;}
-.nTab .TabTitle .normal{background:border-top:1px #ebebeb solid;border-bottom:1px #ebebeb solid;}
-.nTab .TabContent{width:auto;background:#fff;margin:0px auto;padding:10px;border-right:1px #ebebeb solid;border-left:1px #ebebeb solid;padding:5px 5px;overflow:hidden;line-height:23px;}
-.TabContent ul{margin-left:8px;}
-.TabContent ul li{display:inline-block;width:205px;font-size:14px;}
-.TabContent ul p{font-weight:bolder;font-size:14px;margin-top:5px;}
-.none{display:none;}
-
-#hot{border-top-width:3px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:#1A5F97;border-right-color:#ebebeb;border-bottom-color:#ebebeb;border-left-color:#ebebeb;overflow:hidden;}
-#hot h2{font-size:18px;line-height:62px;background-color:#D7E7F7;background-image:url(../images/hot.png);background-repeat:no-repeat;background-position:10px center;height:62px;padding-left:70px;}
-#hot h2 a{color:#000000;}#hot dl{padding:15px;line-height:26px;font-size:16px;color:#777;}
-#hot dl .tags{margin-top:8px;text-decoration:none;line-height:25px;height:25px;overflow:hidden;color:#999999;}
-
-/* pic list */
-.tcol{font-size:12px;height:60px;line-height:60px;overflow:hidden;font-family:SimSun;}.tcol span.fl{color:#bbb;}
-.tcol .tith{font-weight:normal;color:#ddd;width:250px;}
-.tname{color:#cb44a2;font-size:26px;font-family:SimHei,"Microsoft YaHei";}
-.hname{color:#bbb;letter-spacing:1px;font-size:12px;}
-.tcol .more{font-family:"Microsoft Yahei";color:#666;}
-
-.pul{margin-right:-16px;font-family:SimSun;}
-.pul li{float:left;overflow:hidden;margin-right:16px; margin-bottom:15px;}
-.pul li a{color:#717171;font-size:12px;}
-.pul li a img{width:228px;height:152px;display:block;}
-.pul li a p{width:210px;height:30px;line-height:30px;overflow:hidden;padding:0 9px;}.pul li a:hover p{background-color:#f7f7f7;color:#c39;}
-.pul li span{padding:0 9px;color:#999;font-size:12px;}
-
-.pul2{margin-right:-16px;font-family:SimSun;}
-.pul2 li{float:left;margin-right:16px;margin-bottom:10px;overflow:hidden;}
-.pul2 li a{color:#717171;font-size:12px;font-family:SimSun;}
-.pul2 li a img{width:228px;height:152px;display:block;}
-.pul2 li a p{width:210px;height:43px;line-height:43px;text-align:center;overflow:hidden;background-color:#fff; color:#5d5d5d;padding:0 9px;}
-.pul2 li a:hover p{background-color:#f7f7f7;color:#c39;}
-
-.tagl{font-family:SimSun;font-size:12px;padding:10px 0px;height:25px;line-height:25px;color:#9F9F9F;width:960px;margin:0 auto;}.tagl span{float:right;}.tagl span b{color:#FF5B90;font-weight:normal;}
-.tagsl a{display:inline-block;height:25px;line-height:25px;padding:0px 10px;background-color:#F6F6F6;color:#9F9F9F;}.tagsl a:hover{background-color:#FF5B90;color:#fff;}
-
-.tas{color:#CCC;}
-.tas a{font-size:12px;font-family:SimSun;margin:0 5px; color:#666;padding:5px 10px;border-radius:3px;}.tas a:hover{background:#FF5B90;color:#FFF;}
-
-#selection{border:solid 1px #e1e1e1;padding-bottom:10px;padding-top:10px;clear:both;font-size:12px;color:gray;font-family:Arial,simsun,sans-serif,"宋体";}
-.secitem{clear:both;line-height:24px;overflow:hidden;padding-left:10px;padding-right:10px;}
-.secitem dt{float:left;width:60px;text-align:right;white-space:nowrap;}
-.secitem_brand{width:50px!important;text-align:right!important;}
-.secitem dd{overflow:hidden;display:block;zoom:1;}
-.secitem a{margin-right:10px;color:#25d;}.secitem a:hover{color:red;}
-.secitem span,.secitem a{display:inline-block;float:left;white-space:nowrap;}
-.secitem a.select{color:#333;font-weight:700;text-decoration:none;}
-
-.sbox{width:920px;margin:10px auto 0 auto;overflow:hidden;padding:15px 19px 19px 19px; border:1px solid #E8E8E8;font-family:SimSun;}
-.sbox h1{font-family:"Microsoft Yahei",simsun;font-size:25px;color:#5d5d5d;font-weight:normal;color:#f60;}
-.sbox div.fl{width:670px;overflow:hidden;}.sbox div.fr{width:250px;overflow:hidden;}
-.sinfo{height:30px;line-height:30px;padding-bottom:9px;color:#9f9f9f;font-size:12px;}#nowp{color:#FF5B90;}
-.position{width:960px;margin:10px auto 0 auto;color:#666;}
-
-.pbox{padding-top:20px;text-align:center;width:920px;padding-bottom:10px;border-top:1px solid #e8e8e8;}
-.pbox img{max-width:920px;width:expression(this.width > 920 ? "920px" :this.width);height:auto;}
-.ptext{line-height:22px;text-align:left;}.ptext p{margin-bottom:15px;}
-.stx{height:30px;line-height:30px;padding-top:9px;margin-top:10px;color:#9f9f9f;margin-bottom:-8px;border-top:1px solid #E8E8E8;font-size:12px;}
-.stx p.fl span a{display:inline-block;height:22px;line-height:22px;padding:0px 7px;margin-left:5px;background-color:#F6F6F6;color:#9F9F9F;border-radius:3px; font-size:12px;}
-.stx p.fl span a:hover{background-color:#FF5B90;color:#fff;}
-
-
-/*==========zishiying==========*/
-@media screen and (min-width:641px) and (max-width:960px){
-.box{width:640px;margin-left:auto;margin-right:auto;overflow:hidden;}
-.m-sch{width:105px;margin-right:5px;}.m-sch .sch-txt{width:100px;}
-.fl_640,#header,.fr_300{width:100%;}
-#tad,#itad,#footer,#SOHUCS,.nav,.tm,.imglist2,.box .hdp{display:none;}
-}
-@media screen and (max-width:640px){
-body{font-size:14px;font-family:'Microsoft YaHei',Hei,arial,sans-serif;overflow-x:hidden;}
-.box{width:100%;margin-left:auto;margin-right:auto;overflow:hidden;}
-.list{padding:20px 6px;border-bottom:1px solid #e5e5e5;}
-.tit{display:block;font-weight:normal;font-size:20px;line-height:1.2;}
-.list p{margin-top:10px;word-break:break-all;color:#777;font-size:14px;line-height:20px;}
-.info,.dinfo,.list p{font-family:'Microsoft YaHei',Hei,arial,sans-serif;}
-.list .limg{height:52px;width:84px;float:left;margin-right:20px;}.list .limg img{height:52px;width:84px;border:none;}
-.suli .limg{width:60px;height:40px;float:left;margin-right:10px;}.suli .limg img{width:60px;height:40px;border:none;}
-.imglist li,.imglist2 li,.hotPic li{margin-left:1%;margin-right:1%;width:48%;margin-bottom:6px;}.imglist img,.imglist2 img,.hotPic img{height:32vw;width:100%;}.imglist,.imglist2,.hotPic{margin-right:0;}
-
-.tagb{padding:5px 0 8px;}
-.tagb dl{width:100%;padding:0 10px 0 10px;border-right:none;}
-.m-sch{width:105px;margin-right:5px;}.m-sch .sch-txt{width:100px;}
-.arct{font-size:24px;font-weight:600;}
-.content img,#iadimg{width:100%;height:auto;}.line-small .cat-box{width:auto;float:none;margin-right:0px;margin-left:0px;}
-.lmdh,.side,.content,.bread,.arct,.bqtag,.tagb,.cat-box,.line-small,.zinfo,.timely{margin-left:6px;margin-right:6px;}
-.fl_640,#header,.fr_300{width:100%;}.mfl,.mfr{float:none;}
-#tad,#itad,#ztinfo p.fr,.nav,.tm,.notice,#SOHUCS,#ztinfo,.w120,.zstu,.ipage,.line-one-thumbnail,#footer,#akeyword,.box .hdp{display:none;}
-}
\ No newline at end of file
+.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;}
\ No newline at end of file
diff --git a/public/css/style博客.css b/public/css/style博客.css
new file mode 100644
index 0000000..da98153
--- /dev/null
+++ b/public/css/style博客.css
@@ -0,0 +1,231 @@
+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:middle;}.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:underline;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;}
+img:hover{filter:alpha(opacity=90);opacity:0.9;}
+
+.box{width:960px;margin-left:auto;margin-right:auto;overflow:hidden;}
+.fl_640{width:640px;float:left;overflow:hidden;}.fr_300{width:300px;float:right;overflow:hidden;}
+
+#header{width:100%;background-color:#22ac38;}
+#navlink{height:50px;line-height:50px;white-space:nowrap;overflow:hidden;}
+.webname{float:left;background:url(../images/logo.png) no-repeat left 7px;padding-left:90px;font-size:1.35em;margin-right:15px;color:#9f9f9f;text-indent:-999em;overflow:hidden;}
+.nav a{font-size:18px;float:left;display:block;padding:0 20px;color:#fff;}
+.nav a:hover{background-color:#179500;color:#fff;}
+
+.m-sch{width:185px;height:24px;*margin-top:6px;}.m-sch .sch-txt{border:0;background-color:#fff;width:180px;height:24px;line-height:23px;color:#898989;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;}
+
+.imglist{margin-top:10px;margin-right:-8px;}.imglist li{margin-right:8px;position:relative;float:left;overflow:hidden;}.imglist img{display:block;height:115px;width:154px;}
+.imglist span,.imglist2 span{background:#000;filter:alpha(opacity=60);opacity:0.6;bottom:0;color:#fff;font-size:14px;height:28px;line-height:28px;text-align:center;width:100%;position:absolute;overflow:hidden;white-space:nowrap;}
+.imglist2{margin-right:-20px;}.imglist2 li{margin-right:20px;position:relative;float:left;overflow:hidden;}.imglist2 img{display:block;height:105px;width:140px;}
+
+.list{padding:28px 15px 30px 15px;border-bottom:1px solid #ebebeb;}.list:hover{border-color:#f8f8f8;background-color:#f8f8f8;}.list:hover .tit a{color:#22ac38;}
+.tit{display:block;font-weight:700;font-size:22px;line-height:1.5;color:#333;padding-bottom:6px;}
+.list p{word-break:break-all;color:#777;font-size:16px;line-height:26px;}.list p a{color:#f60;}
+.info{margin-top:9px;color:#999;font-size:14px;}.info a{color:#22ac38;margin-right:8px;}.info .fr{color:#444;}.info .fl i{color:#f60;margin-right:8px;}
+.list .limg{width:169px;height:119px;float:left;margin-right:20px;}.list .limg img{width:169px;height:119px;vertical-align:top;}
+
+.side{margin-top:20px;}.stit{border-bottom:1px solid #e5e5e5;height:40px;margin-bottom:15px;}
+.stit h2,.stit h3,.stit .stith{float:left;height:20px;line-height:20px;border-left:5px solid #22ac38;padding-left:9px;font-size:20px;font-weight:normal;}
+.stit .more{float:right;font-size:12px;margin-top:3px;color:#22ac38;}.stith strong{font-weight:normal;}
+.uli{padding:0 0 20px 8px;margin-top:15px;}.uli li{line-height:28px;height:28px;}.stit + .uli{margin-top:0;}
+.uli li a{background:url('../images/icon.gif') 0 12px no-repeat;padding-left:12px;color:#2d64b3;word-break:normal;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
+
+.uli2{margin-top:-16px;padding-bottom:20px;}
+.suli{line-height:1.1;padding:14px 0;border-top:1px solid #e5e5e5;}
+.suli a{_width:290px;line-height:1.3;font-size:16px;}.sulii{font-size:14px;margin-top:8px;}.time{color:#f60;margin-right:8px;}
+.suli .limg{width:80px;height:60px;float:left;margin-right:10px;}.suli .limg img{width:80px;height:60px;border:none;}
+
+.cat-box{margin-top:10px;border:1px solid #ccd3e4;border-top:none;}
+.cat-box .cat-title{height:38px;line-height:38px;border-top:2px solid #22ac38;border-bottom:1px solid #ccd3e4;font-size:1.17em;background-color:#fafbfc;}.cat-box .cat-title b a,.cat-box .cat-title strong{margin:0 0 0 15px;color:#22ac38;}
+.cat-title .more{float:right;margin-right:10px;}
+.line-one-thumbnail{float:left;width:200px;height:145px;margin:0 15px 0 0;overflow:hidden;transition-duration:.3s;}.line-one-thumbnail a img{width:200px;height:145px;transition:transform .3s linear;}
+.cat-site{padding:15px 20px 18px 20px;}
+.cat-site .entry-title{font-weight:bold;font-size:16px;display:block;line-height:30px;margin:0 0 5px 0;width:95%;white-space:nowrap;word-wrap:normal;text-overflow:ellipsis;overflow:hidden;}
+.cat-des{border-bottom:1px solid #ccd3e4;padding-bottom:8px;margin-bottom:5px;}.cat-des p{color:#999;}
+.cat-list li{padding-left:20px;background:url(../images/icon5.png) no-repeat left center;line-height:32px;height:32px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:16px;*width:250px;}.cat-list li span{float:right;color:#999;}
+.line-small{margin-right:-10px;}.line-small .cat-box{width:313px;float:left;margin-right:10px;}.cat-main{color:#777;margin:0 0 5px 0;height:80px;overflow:hidden;}
+.line-small .thumbnail,.line-small .thumbnail img{width:120px;height:80px;}
+.thumbnail{float:left;width:200px;height:145px;margin:0 15px 5px 0;clear:both;overflow:hidden;transition-duration:.3s;}
+
+.uli3{padding-bottom:20px;}
+.uli3 li{padding:5px 0 0 20px;margin-bottom:15px;position:relative;}
+.uli3 li i{position:absolute;top:16px;left:0;background:#22ac38;width:5px;height:5px;}
+.uli3 li a{display:block;font-size:16px;line-height:1.7em;}
+
+.hot_ht a{display:inline-block;padding:8px 10px;font-size:14px;background:#f6f6f6;color:#808080;transition:all .1s;margin:0 4px 10px;border-radius:3px;box-shadow:1px 1px 2px #eee;}
+.hot_ht a:hover{background:#22ac38;color:#fff;box-shadow:1px 1px 1px #1da633;text-decoration:none;}
+.ws-tag a{display:inline-block;font-size:14px;color:#666;border:1px solid #ccc;padding:0 12px;margin-right:12px;margin-bottom:10px;height:30px;line-height:30px;border-radius:30px;cursor:pointer;}
+.ws-tag a:hover{color:#f60;border:1px solid #f60;}
+
+.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:#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:#f4f4f4;padding-right:15px;padding-left:15px;margin-right:1px;*display:inline;}
+.pages li a{color:#808080;}.pages .thisclass{background-color:#22ac38;color:#fff;}
+.pages li:hover,.pages li:hover a{background-color:#22ac38;color:#fff;}
+
+.bth{font-weight:normal;font-family:"Microsoft Yahei";}.bread{color:#ccc;}.bread a{color:#22ac38;}
+.arct{font-size:36px;color:#333;font-weight:600;margin-bottom:12px;}
+#ztinfo{margin-top:8px;border:1px solid #f1f1f1;height:96px;background:#f6f6f6;}#ztinfo h1{width:150px;height:96px;line-height:98px;font-size:22px;font-weight:normal;text-align:center;color:#fff;background-color:#22ac38;}
+#ztinfo p{width:460px;line-height:1.54;padding-top:9px;margin-right:10px;font-family:arial;font-size:13px;color:#808080;}#ztinfo p a{color:#22ac38;}
+.zinfo h1{margin-bottom:8px;}.zkws a:hover{background-color:#179500;color:#fff;}.zkws a{color:#fff;background-color:#22ac38;border-radius:3px;padding:5px 10px;margin:0 5px 5px 0;display:inline-block;font-size:14px;-webkit-transition:all .1s;-moz-transition:all .1s;transition:all .1s;}
+
+.tagb{overflow:hidden;padding:5px 0 10px;border:1px solid #E8E6E3;border-radius:3px;}
+.tagb dl{float:left;width:182px;padding:0 10px 0 20px;border-right:1px solid #E8E6E3;}
+.tagb dt{font-size:16px;color:#38245D;line-height:26px;}.tagb dt a{color:#22ac38;}
+.tagb dd{line-height:24px;padding-top:5px;}.tagb dd a{color:#666;display:inline-block;margin-right:10px;}
+
+.content{font:normal 18px/180% "Microsoft YaHei";color:#222;margin-bottom:15px;}
+.content p{/* margin-bottom:1.35em; */}.content u{color:#1570a6;text-decoration:none;}.content h2,.tagarct{font-size:22px;line-height:1.176;color:#22ac38;padding-top:15px;padding-bottom:10px;}.content strong,.content b{color:#22ac38;font-size:18px;}
+.content img{max-width:640px;width:expression(this.width > 640 ? "640px" :this.width);height:auto;}
+.content blockquote{padding:.6em 1em;border-left:.4em solid #cad4f2;background:#f0f0f0;}
+.dinfo,.timely{color:#aaa;font-size:12px;line-height:1.5;font-family:SimSun;margin:5px 0 8px;}.dinfo a,.timely #atime{color:#22ac38;}
+
+#slideBox{width:640px;height:347px;overflow:hidden;position:relative;}
+#slideBox ul#show_pic{margin:0;padding:0;list-style:none;width:6400px;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:640px;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:640px;overflow:hidden;}
+.hdp .fr{width:290px;overflow:hidden;padding:10px 10px 4px 10px;border:1px solid #e0e0e0;line-height:22px;color:#555;}.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;}
+.iad1{height:60px;overflow:hidden;margin-top:8px;}
+
+.rtags a{margin-right:10px;line-height:1.5;}
+.bqtag{border-bottom:1px #EAEAEA solid;padding:15px 0 20px;}.bqtag strong{color:#000;font:300 22px/36px 'Microsoft YaHei';}.bqtag a{margin-right:24px;font:14px/36px 'Tahoma';color:#333;display:inline-block;}
+
+.zmBox li{width:23px;height:23px;float:left;margin-bottom:5px;}
+.zmBox li a{width:100%;height:00%;display:block;text-align:center;color:#333;font:300 12px/22px 'Tahoma';}
+.nameBox{margin-top:25px;padding:0 6px;}
+.nameBox .name{padding:26px 0 32px;border-bottom:1px #EAEAEA solid;}
+.nameBox .name h3 a{width:36px;height:36px;color:#333;font:300 22px/36px 'Tahoma';background:#EAEAEA;display:block;text-align:center;text-decoration:none;}
+.nameBox .name ul{margin-top:24px;}
+.nameBox .name li{display:inline;display:inline-block;margin-right:24px;}
+.nameBox .name li a{font:14px/36px 'Tahoma';color:#333;display:inline-block;}
+
+#footer{text-align:center;margin-bottom:5px;margin-top:10px;color:#5D5D5D;}
+.tm{overflow:hidden;position:fixed;left:1px;bottom:15px;z-index:999;_position:absolute;}
+
+.labels a{padding:0 8px;border:1px solid #e5e5e5;color:#2393df;margin-right:5px;display:inline-block;height:20px;line-height:20px;}.labels a:hover{background-color:#2393df;color:#fff;border:1px solid #2393df;}
+#iadimg{height:280px;width:100%;display:block;}.zdes{margin-bottom:8px;}
+.uzlist{padding-left:5px;}.uzlist li{padding-left:30px;position:relative;line-height:38px;height:38px;overflow:hidden;}.side .uzlist{margin-top:-5px;}
+.uzlist li .num{position:absolute;left:0;width:20px;height:20px;text-align:center;line-height:20px;top:9px;font-size:16px;color:#22ac38;}
+.uzlist li .top3{background:#22ac38;color:#fff;}.uzlist li a{color:#333;font-size:16px;display:block;overflow:hidden;}
+.readmore a{display:block;height:42px;line-height:42px;text-align:center;background:#f4f4f4;font-size:18px;color:#333;}.readmore a:hover{background:#22ac38;color:#fff;}
+
+/*==========right images==========*/
+.hotPic{margin-top:15px;margin-right:-20px;}.hotPic img{display:block;height:105px;width:140px;}
+.hotPic li{margin-right:20px;margin-bottom:5px;float:left;overflow:hidden;width:140px;}
+.hotPic span{height:30px;line-height:28px;text-align:center;padding-left:5px;padding-right:5px;display:block;overflow:hidden;white-space:nowrap;}
+
+/*TAB标签*/
+.nTab{background:#22ac38;}
+.nTab .TabTitle{clear:both;height:30px;line-height:30px;overflow:hidden;font-size:14px;color:white;}
+.nTab .TabTitle ul{margin:0;padding:0;}
+.nTab .TabTitle li{float:left;width:84px;cursor:pointer;list-style-type:none;text-align:center;}
+.nTab .TabTitle .active{background:white;color:#22ac38;border-left:1px #ebebeb solid;border-top:1px #ebebeb solid;border-bottom:1px #fff solid;}
+.nTab .TabTitle .normal{background:border-top:1px #ebebeb solid;border-bottom:1px #ebebeb solid;}
+.nTab .TabContent{width:auto;background:#fff;margin:0px auto;padding:10px;border-right:1px #ebebeb solid;border-left:1px #ebebeb solid;padding:5px 5px;overflow:hidden;line-height:23px;}
+.TabContent ul{margin-left:8px;}
+.TabContent ul li{display:inline-block;width:205px;font-size:14px;}
+.TabContent ul p{font-weight:bolder;font-size:14px;margin-top:5px;}
+.none{display:none;}
+
+#hot{border-top-width:3px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:#1A5F97;border-right-color:#ebebeb;border-bottom-color:#ebebeb;border-left-color:#ebebeb;overflow:hidden;}
+#hot h2{font-size:18px;line-height:62px;background-color:#D7E7F7;background-image:url(../images/hot.png);background-repeat:no-repeat;background-position:10px center;height:62px;padding-left:70px;}
+#hot h2 a{color:#000000;}#hot dl{padding:15px;line-height:26px;font-size:16px;color:#777;}
+#hot dl .tags{margin-top:8px;text-decoration:none;line-height:25px;height:25px;overflow:hidden;color:#999999;}
+
+/* pic list */
+.tcol{font-size:12px;height:60px;line-height:60px;overflow:hidden;font-family:SimSun;}.tcol span.fl{color:#bbb;}
+.tcol .tith{font-weight:normal;color:#ddd;width:250px;}
+.tname{color:#cb44a2;font-size:26px;font-family:SimHei,"Microsoft YaHei";}
+.hname{color:#bbb;letter-spacing:1px;font-size:12px;}
+.tcol .more{font-family:"Microsoft Yahei";color:#666;}
+
+.pul{margin-right:-16px;font-family:SimSun;}
+.pul li{float:left;overflow:hidden;margin-right:16px; margin-bottom:15px;}
+.pul li a{color:#717171;font-size:12px;}
+.pul li a img{width:228px;height:152px;display:block;}
+.pul li a p{width:210px;height:30px;line-height:30px;overflow:hidden;padding:0 9px;}.pul li a:hover p{background-color:#f7f7f7;color:#c39;}
+.pul li span{padding:0 9px;color:#999;font-size:12px;}
+
+.pul2{margin-right:-16px;font-family:SimSun;}
+.pul2 li{float:left;margin-right:16px;margin-bottom:10px;overflow:hidden;}
+.pul2 li a{color:#717171;font-size:12px;font-family:SimSun;}
+.pul2 li a img{width:228px;height:152px;display:block;}
+.pul2 li a p{width:210px;height:43px;line-height:43px;text-align:center;overflow:hidden;background-color:#fff; color:#5d5d5d;padding:0 9px;}
+.pul2 li a:hover p{background-color:#f7f7f7;color:#c39;}
+
+.tagl{font-family:SimSun;font-size:12px;padding:10px 0px;height:25px;line-height:25px;color:#9F9F9F;width:960px;margin:0 auto;}.tagl span{float:right;}.tagl span b{color:#FF5B90;font-weight:normal;}
+.tagsl a{display:inline-block;height:25px;line-height:25px;padding:0px 10px;background-color:#F6F6F6;color:#9F9F9F;}.tagsl a:hover{background-color:#FF5B90;color:#fff;}
+
+.tas{color:#CCC;}
+.tas a{font-size:12px;font-family:SimSun;margin:0 5px; color:#666;padding:5px 10px;border-radius:3px;}.tas a:hover{background:#FF5B90;color:#FFF;}
+
+#selection{border:solid 1px #e1e1e1;padding-bottom:10px;padding-top:10px;clear:both;font-size:12px;color:gray;font-family:Arial,simsun,sans-serif,"宋体";}
+.secitem{clear:both;line-height:24px;overflow:hidden;padding-left:10px;padding-right:10px;}
+.secitem dt{float:left;width:60px;text-align:right;white-space:nowrap;}
+.secitem_brand{width:50px!important;text-align:right!important;}
+.secitem dd{overflow:hidden;display:block;zoom:1;}
+.secitem a{margin-right:10px;color:#25d;}.secitem a:hover{color:red;}
+.secitem span,.secitem a{display:inline-block;float:left;white-space:nowrap;}
+.secitem a.select{color:#333;font-weight:700;text-decoration:none;}
+
+.sbox{width:920px;margin:10px auto 0 auto;overflow:hidden;padding:15px 19px 19px 19px; border:1px solid #E8E8E8;font-family:SimSun;}
+.sbox h1{font-family:"Microsoft Yahei",simsun;font-size:25px;color:#5d5d5d;font-weight:normal;color:#f60;}
+.sbox div.fl{width:670px;overflow:hidden;}.sbox div.fr{width:250px;overflow:hidden;}
+.sinfo{height:30px;line-height:30px;padding-bottom:9px;color:#9f9f9f;font-size:12px;}#nowp{color:#FF5B90;}
+.position{width:960px;margin:10px auto 0 auto;color:#666;}
+
+.pbox{padding-top:20px;text-align:center;width:920px;padding-bottom:10px;border-top:1px solid #e8e8e8;}
+.pbox img{max-width:920px;width:expression(this.width > 920 ? "920px" :this.width);height:auto;}
+.ptext{line-height:22px;text-align:left;}.ptext p{margin-bottom:15px;}
+.stx{height:30px;line-height:30px;padding-top:9px;margin-top:10px;color:#9f9f9f;margin-bottom:-8px;border-top:1px solid #E8E8E8;font-size:12px;}
+.stx p.fl span a{display:inline-block;height:22px;line-height:22px;padding:0px 7px;margin-left:5px;background-color:#F6F6F6;color:#9F9F9F;border-radius:3px; font-size:12px;}
+.stx p.fl span a:hover{background-color:#FF5B90;color:#fff;}
+
+
+/*==========zishiying==========*/
+@media screen and (min-width:641px) and (max-width:960px){
+.box{width:640px;margin-left:auto;margin-right:auto;overflow:hidden;}
+.m-sch{width:105px;margin-right:5px;}.m-sch .sch-txt{width:100px;}
+.fl_640,#header,.fr_300{width:100%;}
+#tad,#itad,#footer,#SOHUCS,.nav,.tm,.imglist2,.box .hdp{display:none;}
+}
+
+@media screen and (max-width:640px){
+body{font-size:14px;font-family:'Microsoft YaHei',Hei,arial,sans-serif;overflow-x:hidden;}
+.box{width:100%;margin-left:auto;margin-right:auto;overflow:hidden;}
+.list{padding:20px 6px;border-bottom:1px solid #e5e5e5;}
+.tit{display:block;font-weight:normal;font-size:20px;line-height:1.2;}
+.list p{margin-top:10px;word-break:break-all;color:#777;font-size:14px;line-height:20px;}
+.info,.dinfo,.list p{font-family:'Microsoft YaHei',Hei,arial,sans-serif;}
+.list .limg{height:52px;width:84px;float:left;margin-right:20px;}.list .limg img{height:52px;width:84px;border:none;}
+.suli .limg{width:60px;height:40px;float:left;margin-right:10px;}.suli .limg img{width:60px;height:40px;border:none;}
+.imglist li,.imglist2 li,.hotPic li{margin-left:1%;margin-right:1%;width:48%;margin-bottom:6px;}.imglist img,.imglist2 img,.hotPic img{height:32vw;width:100%;}.imglist,.imglist2,.hotPic{margin-right:0;}
+
+.tagb{padding:5px 0 8px;}
+.tagb dl{width:100%;padding:0 10px 0 10px;border-right:none;}
+.m-sch{width:105px;margin-right:5px;}.m-sch .sch-txt{width:100px;}
+.arct{font-size:24px;font-weight:600;}
+.content img,#iadimg{width:100%;height:auto;}.line-small .cat-box{width:auto;float:none;margin-right:0px;margin-left:0px;}
+.lmdh,.side,.content,.bread,.arct,.bqtag,.tagb,.cat-box,.line-small,.zinfo,.timely{margin-left:6px;margin-right:6px;}
+.fl_640,#header,.fr_300{width:100%;}.mfl,.mfr{float:none;}
+#tad,#itad,#ztinfo p.fr,.nav,.tm,.notice,#SOHUCS,#ztinfo,.w120,.zstu,.ipage,.line-one-thumbnail,#footer,#akeyword,.box .hdp{display:none;}
+}
\ No newline at end of file
diff --git a/public/images/logo.png b/public/images/logo.png
index 629e413..11e550c 100644
Binary files a/public/images/logo.png and b/public/images/logo.png differ
diff --git a/public/images/screenshots.png b/public/images/screenshots.png
new file mode 100644
index 0000000..35113c9
Binary files /dev/null and b/public/images/screenshots.png differ
diff --git a/public/images/0.png b/public/images2/0.png
similarity index 100%
rename from public/images/0.png
rename to public/images2/0.png
diff --git a/public/images2/1.jpg b/public/images2/1.jpg
new file mode 100644
index 0000000..3cc68dd
Binary files /dev/null and b/public/images2/1.jpg differ
diff --git a/public/images/1.png b/public/images2/1.png
similarity index 100%
rename from public/images/1.png
rename to public/images2/1.png
diff --git a/public/images2/2.jpg b/public/images2/2.jpg
new file mode 100644
index 0000000..a86e0d2
Binary files /dev/null and b/public/images2/2.jpg differ
diff --git a/public/images/20160820232652166.png b/public/images2/20160820232652166.png
similarity index 100%
rename from public/images/20160820232652166.png
rename to public/images2/20160820232652166.png
diff --git a/public/images2/20161108163616914.jpg b/public/images2/20161108163616914.jpg
new file mode 100644
index 0000000..3ee7092
Binary files /dev/null and b/public/images2/20161108163616914.jpg differ
diff --git a/public/images2/20161108163633172.jpg b/public/images2/20161108163633172.jpg
new file mode 100644
index 0000000..674c187
Binary files /dev/null and b/public/images2/20161108163633172.jpg differ
diff --git a/public/images/20161108163706251.png b/public/images2/20161108163706251.png
similarity index 100%
rename from public/images/20161108163706251.png
rename to public/images2/20161108163706251.png
diff --git a/public/images2/3.jpg b/public/images2/3.jpg
new file mode 100644
index 0000000..9e26d21
Binary files /dev/null and b/public/images2/3.jpg differ
diff --git a/public/images2/4.jpg b/public/images2/4.jpg
new file mode 100644
index 0000000..d6d0326
Binary files /dev/null and b/public/images2/4.jpg differ
diff --git a/public/images2/applead.png b/public/images2/applead.png
new file mode 100644
index 0000000..57a29fd
Binary files /dev/null and b/public/images2/applead.png differ
diff --git a/public/images/b.gif b/public/images2/b.gif
similarity index 100%
rename from public/images/b.gif
rename to public/images2/b.gif
diff --git a/public/images/banner.gif b/public/images2/banner.gif
similarity index 100%
rename from public/images/banner.gif
rename to public/images2/banner.gif
diff --git a/public/images2/banner.jpg b/public/images2/banner.jpg
new file mode 100644
index 0000000..91dbc3e
Binary files /dev/null and b/public/images2/banner.jpg differ
diff --git a/public/images2/blue_icon.png b/public/images2/blue_icon.png
new file mode 100644
index 0000000..696d45d
Binary files /dev/null and b/public/images2/blue_icon.png differ
diff --git a/public/images/chinese.png b/public/images2/chinese.png
similarity index 100%
rename from public/images/chinese.png
rename to public/images2/chinese.png
diff --git a/public/images/foundation.png b/public/images2/foundation.png
similarity index 100%
rename from public/images/foundation.png
rename to public/images2/foundation.png
diff --git a/public/images/ico_specific02_8.png b/public/images2/ico_specific02_8.png
similarity index 100%
rename from public/images/ico_specific02_8.png
rename to public/images2/ico_specific02_8.png
diff --git a/public/images/icon.gif b/public/images2/icon.gif
similarity index 100%
rename from public/images/icon.gif
rename to public/images2/icon.gif
diff --git a/public/images/iconfont-close.png b/public/images2/iconfont-close.png
similarity index 100%
rename from public/images/iconfont-close.png
rename to public/images2/iconfont-close.png
diff --git a/public/images/index.png b/public/images2/index.png
similarity index 100%
rename from public/images/index.png
rename to public/images2/index.png
diff --git a/public/images/left_li.gif b/public/images2/left_li.gif
similarity index 100%
rename from public/images/left_li.gif
rename to public/images2/left_li.gif
diff --git a/public/images/li.png b/public/images2/li.png
similarity index 100%
rename from public/images/li.png
rename to public/images2/li.png
diff --git a/public/images2/logo.png b/public/images2/logo.png
new file mode 100644
index 0000000..629e413
Binary files /dev/null and b/public/images2/logo.png differ
diff --git a/public/images/mobile.png b/public/images2/mobile.png
similarity index 100%
rename from public/images/mobile.png
rename to public/images2/mobile.png
diff --git a/public/images/nopic.gif b/public/images2/nopic.gif
similarity index 100%
rename from public/images/nopic.gif
rename to public/images2/nopic.gif
diff --git a/public/images/off.png b/public/images2/off.png
similarity index 100%
rename from public/images/off.png
rename to public/images2/off.png
diff --git a/public/images/on.png b/public/images2/on.png
similarity index 100%
rename from public/images/on.png
rename to public/images2/on.png
diff --git a/public/images/online_bg.png b/public/images2/online_bg.png
similarity index 100%
rename from public/images/online_bg.png
rename to public/images2/online_bg.png
diff --git a/public/images/title_line.jpg b/public/images2/title_line.jpg
similarity index 100%
rename from public/images/title_line.jpg
rename to public/images2/title_line.jpg
diff --git a/public/images/toolbar.png b/public/images2/toolbar.png
similarity index 100%
rename from public/images/toolbar.png
rename to public/images2/toolbar.png
diff --git a/public/images/top_bg.jpg b/public/images2/top_bg.jpg
similarity index 100%
rename from public/images/top_bg.jpg
rename to public/images2/top_bg.jpg
diff --git a/public/images/w1.png b/public/images2/w1.png
similarity index 100%
rename from public/images/w1.png
rename to public/images2/w1.png
diff --git a/public/images/web.png b/public/images2/web.png
similarity index 100%
rename from public/images/web.png
rename to public/images2/web.png
diff --git a/public/images/yi-img-icon.png b/public/images2/yi-img-icon.png
similarity index 100%
rename from public/images/yi-img-icon.png
rename to public/images2/yi-img-icon.png
diff --git a/resources/views/home/common/footer.blade.php b/resources/views/home/common/footer.blade.php
index 93bcd7b..797da8a 100644
--- a/resources/views/home/common/footer.blade.php
+++ b/resources/views/home/common/footer.blade.php
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/resources/views/home/common/header.blade.php b/resources/views/home/common/header.blade.php
index e2b532b..bcd0eca 100644
--- a/resources/views/home/common/header.blade.php
+++ b/resources/views/home/common/header.blade.php
@@ -1,5 +1,36 @@
-
\ No newline at end of file
+
+
+
+
全球最大的中文搜索引擎
+
中国最具价值的品牌之一,英国《金融时报》将百度列为“中国十大世界级品牌”,成为这个榜单中最年轻的一家公司,也是唯一一家互联网公司。
+
阅读更多...
+
\ No newline at end of file
diff --git a/resources/views/home/index/category.blade.php b/resources/views/home/index/category.blade.php
index c608b8b..accbca8 100644
--- a/resources/views/home/index/category.blade.php
+++ b/resources/views/home/index/category.blade.php
@@ -1,62 +1,32 @@
-
- " /> " />
-@include('home.common.header')
+
+
+
+
-
'.$post['content'].'';} ?>
+@include('home.common.header')
+
+
+
-
-
-
-
5,"typeid"=>$post['id'],"orderby"=>'rand()'));if($posts){foreach($posts as $row){ ?>
+
-
-
+
@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home/index/detail.blade.php b/resources/views/home/index/detail.blade.php
index 597a25d..41b14a9 100644
--- a/resources/views/home/index/detail.blade.php
+++ b/resources/views/home/index/detail.blade.php
@@ -1,60 +1,24 @@
-
- " /> " />
-@include('home.common.header')
+
+_
+
+@include('home.common.header')
+
-
-
'.$post['writer'].' '; } ?> '.$post['source'].' '; ?>阅读:次 关键词:
-
+
+
@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home/index/index.blade.php b/resources/views/home/index/index.blade.php
index a2de25c..75918fe 100644
--- a/resources/views/home/index/index.blade.php
+++ b/resources/views/home/index/index.blade.php
@@ -1,66 +1,117 @@
-
-
-@include('home.common.header')
+
+
+
+
-
-11,"tuijian"=>array('<>',1)));foreach($posts as $row){ ?>
+@include('home.common.header')
+
+
+
-
+
+
+
主营业务
+
作为全球最大的中文搜索引擎公司,百度一直致力于让网民更便捷地获取信息,找到所求。用户通过百度主页,可以瞬间找到相关的搜索结果,
+这些结果来自于百度超过百亿的中文网页数据库。
+
+
+
+
+
-
+
-
-
5,"orderby"=>'rand()'));foreach($posts as $row){ ?>
+
+
+
人才理念
+
对于一个人才,我们更多注重的是,你能不能够创造,为自身创造价值,给用户带来更好的体验,这是百度所关心的,所看重的。——李彦宏
+
+
+
+
+
-
+
-
+
+
+
联系我们
+
地址:北京市海淀区上地十街10号百度大厦,邮编:100085,总机:(+86 10) 5992 8888
+
+
+
+
+
-
+
+
+
+ 3,"tuijian"=>1,"typeid"=>4));foreach($posts as $row){ ?>
+
+
+
+
+
+
案例中心/Case Show
+
我们在这里展示了许多精美的案例,欢迎欣赏。
+
+
+
+
+ 4,"tuijian"=>1,"typeid"=>2,"expression"=>[["litpic","<>","''"]]));foreach($posts as $row){ ?>
+
+
+
+
+
+
+
+
+
+ 友情链接:
+"friendlink","row"=>5));foreach($posts as $row){ ?>
+
+
+
@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home/index/page.blade.php b/resources/views/home/index/page.blade.php
index d23563a..409a394 100644
--- a/resources/views/home/index/page.blade.php
+++ b/resources/views/home/index/page.blade.php
@@ -1,8 +1,30 @@
-
-_ " /> " />
-@include('home.common.header')
-
-@include('home.common.footer')
\ No newline at end of file
+
+
+_
+
+
+@include('home.common.header')
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home/index/product.blade.php b/resources/views/home/index/product.blade.php
new file mode 100644
index 0000000..6d1b8d2
--- /dev/null
+++ b/resources/views/home/index/product.blade.php
@@ -0,0 +1,25 @@
+
+_
+
+@include('home.common.header')
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home/index/productcat.blade.php b/resources/views/home/index/productcat.blade.php
new file mode 100644
index 0000000..ff08d8b
--- /dev/null
+++ b/resources/views/home/index/productcat.blade.php
@@ -0,0 +1,25 @@
+
+
+
+
+
+@include('home.common.header')
+
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home/index/search.blade.php b/resources/views/home/index/search.blade.php
index d237f24..4850402 100644
--- a/resources/views/home/index/search.blade.php
+++ b/resources/views/home/index/search.blade.php
@@ -5,31 +5,22 @@
@include('home.common.header')
-
-
@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home/index/tag.blade.php b/resources/views/home/index/tag.blade.php
index 2d3b5a6..82ad206 100644
--- a/resources/views/home/index/tag.blade.php
+++ b/resources/views/home/index/tag.blade.php
@@ -1,62 +1,29 @@
-
-
" />
" />
-@include('home.common.header')
+
+
+
" />
" />
+
-
'.$post['content'].'';} ?>
+@include('home.common.header')
+
+
+
+
-
-
-
-
5,"orderby"=>'rand()'));foreach($posts as $row){ ?>
+
-
-
+
@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home2/404.blade.php b/resources/views/home2/404.blade.php
new file mode 100644
index 0000000..cf6e77b
--- /dev/null
+++ b/resources/views/home2/404.blade.php
@@ -0,0 +1,20 @@
+
+
+您访问的页面不存在或已被删除!
+
+
+
+
:(
+
您访问的页面不存在或已被删除!
+
返回首页
+
+
\ No newline at end of file
diff --git a/resources/views/home2/common/footer.blade.php b/resources/views/home2/common/footer.blade.php
new file mode 100644
index 0000000..93bcd7b
--- /dev/null
+++ b/resources/views/home2/common/footer.blade.php
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/resources/views/home2/common/header.blade.php b/resources/views/home2/common/header.blade.php
new file mode 100644
index 0000000..e2b532b
--- /dev/null
+++ b/resources/views/home2/common/header.blade.php
@@ -0,0 +1,5 @@
+
\ No newline at end of file
diff --git a/resources/views/home2/index/category.blade.php b/resources/views/home2/index/category.blade.php
new file mode 100644
index 0000000..c608b8b
--- /dev/null
+++ b/resources/views/home2/index/category.blade.php
@@ -0,0 +1,62 @@
+
+ " /> " />
+@include('home.common.header')
+
+
'.$post['content'].'';} ?>
+
+
+
+
+
+
+
+
+
+
+
5,"typeid"=>$post['id'],"orderby"=>'rand()'));if($posts){foreach($posts as $row){ ?>
+
+
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home2/index/category2.blade.php b/resources/views/home2/index/category2.blade.php
new file mode 100644
index 0000000..82dd7f2
--- /dev/null
+++ b/resources/views/home2/index/category2.blade.php
@@ -0,0 +1,57 @@
+
+ " /> " />
+@include('home.common.header')
+
+
+
+
+
+
+
+
+
5,"typeid"=>$post['id'],"orderby"=>'rand()'));if($posts){foreach($posts as $row){ ?>
+
+
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home2/index/detail.blade.php b/resources/views/home2/index/detail.blade.php
new file mode 100644
index 0000000..597a25d
--- /dev/null
+++ b/resources/views/home2/index/detail.blade.php
@@ -0,0 +1,60 @@
+
+ " /> " />
+@include('home.common.header')
+
+
+
'.$post['writer'].' '; } ?> '.$post['source'].' '; ?>阅读:次 关键词:
+
+
+
+
+
+
+
+
5,"typeid"=>$post['typeid'],"orderby"=>'rand()'));foreach($posts as $row){ ?>
+
+
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home2/index/index.blade.php b/resources/views/home2/index/index.blade.php
new file mode 100644
index 0000000..a2de25c
--- /dev/null
+++ b/resources/views/home2/index/index.blade.php
@@ -0,0 +1,66 @@
+
+
+@include('home.common.header')
+
+
+11,"tuijian"=>array('<>',1)));foreach($posts as $row){ ?>
+
+
+
+
+
+
+
+
+
5,"orderby"=>'rand()'));foreach($posts as $row){ ?>
+
+
+
+
+
+
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home2/index/login.blade.php b/resources/views/home2/index/login.blade.php
new file mode 100644
index 0000000..c44253f
--- /dev/null
+++ b/resources/views/home2/index/login.blade.php
@@ -0,0 +1,171 @@
+
+后台登录
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/home2/index/page.blade.php b/resources/views/home2/index/page.blade.php
new file mode 100644
index 0000000..d23563a
--- /dev/null
+++ b/resources/views/home2/index/page.blade.php
@@ -0,0 +1,8 @@
+
+_ " /> " />
+@include('home.common.header')
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home2/index/search.blade.php b/resources/views/home2/index/search.blade.php
new file mode 100644
index 0000000..d237f24
--- /dev/null
+++ b/resources/views/home2/index/search.blade.php
@@ -0,0 +1,35 @@
+
+
+搜索结果_
+
+
+@include('home.common.header')
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home2/index/sitemap.blade.php b/resources/views/home2/index/sitemap.blade.php
new file mode 100644
index 0000000..08412f8
--- /dev/null
+++ b/resources/views/home2/index/sitemap.blade.php
@@ -0,0 +1,9 @@
+
+
+/ daily 1.0
+/contact.html
+300));foreach($posts as $row){ ?>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?> monthly
+100,"orderby"=>'rand()'));foreach($posts as $row){ ?>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?> monthly
+
+$row['id'],"type"=>'list')); ?>
+
\ No newline at end of file
diff --git a/resources/views/home2/index/tag.blade.php b/resources/views/home2/index/tag.blade.php
new file mode 100644
index 0000000..2d3b5a6
--- /dev/null
+++ b/resources/views/home2/index/tag.blade.php
@@ -0,0 +1,62 @@
+
+ " /> " />
+@include('home.common.header')
+
+
'.$post['content'].'';} ?>
+
+
+
+
+
+
+
+
+
+
+
5,"orderby"=>'rand()'));foreach($posts as $row){ ?>
+
+
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home2/index/tag2.blade.php b/resources/views/home2/index/tag2.blade.php
new file mode 100644
index 0000000..419bdeb
--- /dev/null
+++ b/resources/views/home2/index/tag2.blade.php
@@ -0,0 +1,58 @@
+
+ " /> " />
+@include('home.common.header')
+
+
'.$post['content'].'';} ?>
+
+
+
+
+
+
+
+
+
5,"orderby"=>'rand()'));foreach($posts as $row){ ?>
+
+
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home2/index/tag3.blade.php b/resources/views/home2/index/tag3.blade.php
new file mode 100644
index 0000000..0e00325
--- /dev/null
+++ b/resources/views/home2/index/tag3.blade.php
@@ -0,0 +1,57 @@
+
+ " /> " />
+@include('home.common.header')
+
+
+
+
+
+
+
+
+
5,"orderby"=>'rand()'));foreach($posts as $row){ ?>
+
+
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/home2/index/tags.blade.php b/resources/views/home2/index/tags.blade.php
new file mode 100644
index 0000000..9d9e7f5
--- /dev/null
+++ b/resources/views/home2/index/tags.blade.php
@@ -0,0 +1,7 @@
+
+笔记本电脑相关知识_
+@include('home.common.header')
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/wap/404.blade.php b/resources/views/wap/404.blade.php
new file mode 100644
index 0000000..cf6e77b
--- /dev/null
+++ b/resources/views/wap/404.blade.php
@@ -0,0 +1,20 @@
+
+
+您访问的页面不存在或已被删除!
+
+
+
+
:(
+
您访问的页面不存在或已被删除!
+
返回首页
+
+
\ No newline at end of file
diff --git a/resources/views/wap/common/footer.blade.php b/resources/views/wap/common/footer.blade.php
new file mode 100644
index 0000000..797da8a
--- /dev/null
+++ b/resources/views/wap/common/footer.blade.php
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/resources/views/wap/common/header.blade.php b/resources/views/wap/common/header.blade.php
new file mode 100644
index 0000000..e148c26
--- /dev/null
+++ b/resources/views/wap/common/header.blade.php
@@ -0,0 +1,6 @@
+
\ No newline at end of file
diff --git a/resources/views/wap/index/category.blade.php b/resources/views/wap/index/category.blade.php
new file mode 100644
index 0000000..6d97cf8
--- /dev/null
+++ b/resources/views/wap/index/category.blade.php
@@ -0,0 +1,16 @@
+
+
+ "> ">
+
+
+
+
+@include('wap.common.header')
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/wap/index/category2.blade.php b/resources/views/wap/index/category2.blade.php
new file mode 100644
index 0000000..82dd7f2
--- /dev/null
+++ b/resources/views/wap/index/category2.blade.php
@@ -0,0 +1,57 @@
+
+ " /> " />
+@include('home.common.header')
+
+
+
+
+
+
+
+
+
5,"typeid"=>$post['id'],"orderby"=>'rand()'));if($posts){foreach($posts as $row){ ?>
+
+
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/wap/index/detail.blade.php b/resources/views/wap/index/detail.blade.php
new file mode 100644
index 0000000..cceb824
--- /dev/null
+++ b/resources/views/wap/index/detail.blade.php
@@ -0,0 +1,66 @@
+
+_
+
+
+
+@include('wap.common.header')
+
+
+
+
+
+ 相关推荐
+
+
+
\ No newline at end of file
diff --git a/resources/views/wap/index/index.blade.php b/resources/views/wap/index/index.blade.php
new file mode 100644
index 0000000..f120c1c
--- /dev/null
+++ b/resources/views/wap/index/index.blade.php
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+@include('wap.common.header')
+
+
+ 产品中心
+
+
+ 企业简介百度,全球最大的中文搜索引擎、最大的中文网站。2000年1月创立于北京中关村。
+
+
+
+ 新闻中心
+
+ 联系我们
+
+
+
\ No newline at end of file
diff --git a/resources/views/wap/index/login.blade.php b/resources/views/wap/index/login.blade.php
new file mode 100644
index 0000000..c44253f
--- /dev/null
+++ b/resources/views/wap/index/login.blade.php
@@ -0,0 +1,171 @@
+
+后台登录
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/wap/index/page.blade.php b/resources/views/wap/index/page.blade.php
new file mode 100644
index 0000000..32b034c
--- /dev/null
+++ b/resources/views/wap/index/page.blade.php
@@ -0,0 +1,12 @@
+
+_
+
+
+
+@include('wap.common.header')
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/wap/index/product.blade.php b/resources/views/wap/index/product.blade.php
new file mode 100644
index 0000000..ab2924f
--- /dev/null
+++ b/resources/views/wap/index/product.blade.php
@@ -0,0 +1,16 @@
+
+_
+
+
+
+@include('wap.common.header')
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/wap/index/productcat.blade.php b/resources/views/wap/index/productcat.blade.php
new file mode 100644
index 0000000..20cc432
--- /dev/null
+++ b/resources/views/wap/index/productcat.blade.php
@@ -0,0 +1,17 @@
+
+
+ "> ">
+
+
+
+
+@include('wap.common.header')
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/wap/index/search.blade.php b/resources/views/wap/index/search.blade.php
new file mode 100644
index 0000000..4850402
--- /dev/null
+++ b/resources/views/wap/index/search.blade.php
@@ -0,0 +1,26 @@
+
+
+搜索结果_
+
+
+@include('home.common.header')
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/wap/index/sitemap.blade.php b/resources/views/wap/index/sitemap.blade.php
new file mode 100644
index 0000000..d5e7895
--- /dev/null
+++ b/resources/views/wap/index/sitemap.blade.php
@@ -0,0 +1,8 @@
+
+
+/ daily 1.0
+300));foreach($posts as $row){ ?>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?> monthly
+100,"orderby"=>'rand()'));foreach($posts as $row){ ?>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?> monthly
+
+$row['id'],"type"=>'list')); ?>
+
\ No newline at end of file
diff --git a/resources/views/wap/index/tag.blade.php b/resources/views/wap/index/tag.blade.php
new file mode 100644
index 0000000..81d3b7a
--- /dev/null
+++ b/resources/views/wap/index/tag.blade.php
@@ -0,0 +1,16 @@
+
+
+ "> ">
+
+
+
+
+@include('wap.common.header')
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/wap/index/tag2.blade.php b/resources/views/wap/index/tag2.blade.php
new file mode 100644
index 0000000..419bdeb
--- /dev/null
+++ b/resources/views/wap/index/tag2.blade.php
@@ -0,0 +1,58 @@
+
+ " /> " />
+@include('home.common.header')
+
+
'.$post['content'].'';} ?>
+
+
+
+
+
+
+
+
+
5,"orderby"=>'rand()'));foreach($posts as $row){ ?>
+
+
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/wap/index/tag3.blade.php b/resources/views/wap/index/tag3.blade.php
new file mode 100644
index 0000000..0e00325
--- /dev/null
+++ b/resources/views/wap/index/tag3.blade.php
@@ -0,0 +1,57 @@
+
+ " /> " />
+@include('home.common.header')
+
+
+
+
+
+
+
+
+
5,"orderby"=>'rand()'));foreach($posts as $row){ ?>
+
+
+
+@include('home.common.footer')
\ No newline at end of file
diff --git a/resources/views/wap/index/tags.blade.php b/resources/views/wap/index/tags.blade.php
new file mode 100644
index 0000000..1fc4ec4
--- /dev/null
+++ b/resources/views/wap/index/tags.blade.php
@@ -0,0 +1,20 @@
+
+标签云_
+
+
+
+@include('wap.common.header')
+
+
+标签云
+
+
+
\ No newline at end of file
diff --git a/routes/web.php b/routes/web.php
index cae17ec..ddd624d 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -14,18 +14,19 @@
//wap路由,要放到最前面,否则解析不到
Route::group(['domain' => env('APP_SUBDOMAIN'), 'namespace' => 'Wap'], function () {
Route::get('/', 'IndexController@index')->name('wap_home');
- Route::get('/tags', 'IndexController@tags');
- Route::get('/search', 'IndexController@search');
- Route::get('/p/{id}', 'IndexController@detail'); //详情页
+ Route::get('/page404', 'IndexController@page404')->name('wap_page404'); //404页面
+ Route::get('/tags', 'IndexController@tags')->name('wap_tags');
+ Route::get('/search/{id}', 'IndexController@search')->name('wap_search'); //搜过页面
+ Route::get('/p/{id}', 'IndexController@detail')->name('wap_detail'); //详情页
Route::get('/cat{cat}/{page}', 'IndexController@category'); //分类页,分页
- Route::get('/cat{cat}', 'IndexController@category'); //分类页
+ Route::get('/cat{cat}', 'IndexController@category')->name('wap_category'); //分类页
Route::get('/tag{tag}/{page}', 'IndexController@tag'); //标签页,分页
- Route::get('/tag{tag}', 'IndexController@tag'); //标签页
- Route::get('/page/{id}', 'IndexController@singlepage')->name('wap_singlepage'); //单页
- Route::get('/sitemap.xml', 'IndexController@sitemap')->name('wap_sitemap'); //sitemap
- Route::get('/aaa', function () {
- dd('wap');
- });
+ Route::get('/tag{tag}', 'IndexController@tag')->name('wap_tag'); //标签页
+ Route::get('/page/{id}', 'IndexController@page')->name('wap_singlepage'); //单页
+ Route::get('/goods/{id}', 'IndexController@product')->name('wap_product'); //商品详情页
+ Route::get('/product{cat}/{page}', 'IndexController@productcat'); //产品分类页,分页
+ Route::get('/product{cat}', 'IndexController@productcat')->name('productcat'); //产品分类页
+ Route::get('/sitemap.xml', 'IndexController@sitemap')->name('wap_sitemap');//sitemap
});
@@ -33,18 +34,18 @@ Route::group(['domain' => env('APP_SUBDOMAIN'), 'namespace' => 'Wap'], function
Route::group(['namespace' => 'Home'], function () {
Route::get('/', 'IndexController@index')->name('home');
Route::get('/page404', 'IndexController@page404')->name('page404'); //404页面
- Route::get('/tags', 'IndexController@tags')->name('tags');
- Route::get('/search', 'IndexController@search');
+ Route::get('/tags', 'IndexController@tags')->name('home_tags');
+ Route::get('/search/{id}', 'IndexController@search')->name('home_search'); //搜过页面
Route::get('/p/{id}', 'IndexController@detail')->name('home_detail'); //详情页
Route::get('/cat{cat}/{page}', 'IndexController@category'); //分类页,分页
Route::get('/cat{cat}', 'IndexController@category')->name('home_category'); //分类页
Route::get('/tag{tag}/{page}', 'IndexController@tag'); //标签页,分页
- Route::get('/tag{tag}', 'IndexController@tag')->name('tag'); //标签页
- Route::get('/page/{id}', 'IndexController@page')->name('singlepage'); //单页
- Route::get('/product/{id}', 'IndexController@product')->name('product'); //详情页
- Route::get('/productcat{cat}/{page}', 'IndexController@productcat'); //产品分类页,分页
- Route::get('/productcat{cat}', 'IndexController@productcat')->name('productcat'); //产品分类页
- Route::get('/sitemap.xml', 'IndexController@sitemap')->name('sitemap'); //sitemap
+ Route::get('/tag{tag}', 'IndexController@tag')->name('home_tag'); //标签页
+ Route::get('/page/{id}', 'IndexController@page')->name('home_singlepage'); //单页
+ Route::get('/goods/{id}', 'IndexController@product')->name('home_product'); //商品详情页
+ Route::get('/product{cat}/{page}', 'IndexController@productcat'); //产品分类页,分页
+ Route::get('/product{cat}', 'IndexController@productcat')->name('productcat'); //产品分类页
+ Route::get('/sitemap.xml', 'IndexController@sitemap')->name('home_sitemap');//sitemap
Route::get('/aaa', function () {
dd('wap');