From 7fa1fa048af6e754aeac57da99bf553b6868b7a2 Mon Sep 17 00:00:00 2001 From: "ZLW-PC\\Administrator" <374861669@qq.com> Date: Mon, 18 Dec 2017 21:29:08 +0800 Subject: [PATCH] pc goods --- app/Http/Controllers/Home/IndexController.php | 23 +- .../Home/IndexController企业.php | 276 ++++++++++++++++++ public/css/style.css | 183 +++++------- public/css/style企业bootstrap.css | 104 +++++++ public/images/ibg.png | Bin 0 -> 214 bytes public/images/icon.gif | Bin 0 -> 1097 bytes resources/views/home/common/footer.blade.php | 2 +- resources/views/home/common/header.blade.php | 87 +++--- resources/views/home/index/goods.blade.php | 139 +++++++-- resources/views/home/index/index.blade.php | 236 ++++++++------- resources/views/home企业/404.blade.php | 20 ++ .../views/home企业/common/footer.blade.php | 1 + .../views/home企业/common/header.blade.php | 36 +++ .../index/category.blade.php | 0 .../index/category2.blade.php | 0 .../index/detail.blade.php | 0 .../views/home企业/index/goods.blade.php | 25 ++ .../views/home企业/index/goodscat.blade.php | 23 ++ .../views/home企业/index/index.blade.php | 117 ++++++++ .../index/login.blade.php | 0 .../{home => home企业}/index/page.blade.php | 0 .../index/search.blade.php | 0 .../views/home企业/index/sitemap.blade.php | 9 + .../{home => home企业}/index/tag.blade.php | 0 .../{home => home企业}/index/tag2.blade.php | 0 .../{home => home企业}/index/tag3.blade.php | 0 .../{home => home企业}/index/tags.blade.php | 0 .../{home => home企业}/index/test.blade.php | 0 routes/web.php | 4 +- 29 files changed, 1003 insertions(+), 282 deletions(-) create mode 100644 app/Http/Controllers/Home/IndexController企业.php create mode 100644 public/css/style企业bootstrap.css create mode 100644 public/images/ibg.png create mode 100644 public/images/icon.gif create mode 100644 resources/views/home企业/404.blade.php create mode 100644 resources/views/home企业/common/footer.blade.php create mode 100644 resources/views/home企业/common/header.blade.php rename resources/views/{home => home企业}/index/category.blade.php (100%) rename resources/views/{home => home企业}/index/category2.blade.php (100%) rename resources/views/{home => home企业}/index/detail.blade.php (100%) create mode 100644 resources/views/home企业/index/goods.blade.php create mode 100644 resources/views/home企业/index/goodscat.blade.php create mode 100644 resources/views/home企业/index/index.blade.php rename resources/views/{home => home企业}/index/login.blade.php (100%) rename resources/views/{home => home企业}/index/page.blade.php (100%) rename resources/views/{home => home企业}/index/search.blade.php (100%) create mode 100644 resources/views/home企业/index/sitemap.blade.php rename resources/views/{home => home企业}/index/tag.blade.php (100%) rename resources/views/{home => home企业}/index/tag2.blade.php (100%) rename resources/views/{home => home企业}/index/tag3.blade.php (100%) rename resources/views/{home => home企业}/index/tags.blade.php (100%) rename resources/views/{home => home企业}/index/test.blade.php (100%) diff --git a/app/Http/Controllers/Home/IndexController.php b/app/Http/Controllers/Home/IndexController.php index 8dbed5d..005bf1f 100644 --- a/app/Http/Controllers/Home/IndexController.php +++ b/app/Http/Controllers/Home/IndexController.php @@ -14,7 +14,14 @@ class IndexController extends CommonController //首页 public function index() { - return view('home.index.index'); + //商品列表 + $where['status'] = 0; + $data['goods_list'] = object_to_array(DB::table('goods')->where($where)->select('id','title','price','litpic','description','shipping_fee','market_price','goods_number','sale')->take(30)->orderBy('pubdate','desc')->get()); + $data['goods_type_list'] = object_to_array(DB::table('goods_type')->where(['pid'=>0,'status'=>1])->select('id','name')->take(30)->orderBy('listorder','asc')->get()); + $data['slide_list'] = object_to_array(DB::table('slide')->where(['group_id'=>0,'type'=>0,'is_show'=>0])->take(30)->orderBy('listorder','asc')->get()); + $data['ztad_list'] = object_to_array(DB::table('slide')->where(['group_id'=>1,'type'=>0,'is_show'=>0])->take(30)->orderBy('listorder','asc')->get()); + + return view('home.index.index',$data); } //列表页 @@ -184,7 +191,7 @@ class IndexController extends CommonController } //商品列表页 - public function goodstype($cat, $page=0) + public function goodslist($cat, $page=0) { $pagenow = $page; @@ -224,24 +231,18 @@ class IndexController extends CommonController { if(empty($id) || !preg_match('/[0-9]+/',$id)){return redirect()->route('page404');} - $post = object_to_array(DB::table('goods')->where('id', $id)->first(), 1);if(empty($post)){return redirect()->route('page404');}$post['name'] = DB::table('goods_type')->where('id', $post['typeid'])->value('name'); + $post = object_to_array(DB::table('goods')->where(['id'=>$id,'status'=>0])->first(), 1);if(empty($post)){return redirect()->route('page404');}$post['type_name'] = DB::table('goods_type')->where('id', $post['typeid'])->value('name'); if($post) { - $cat = $post['typeid']; - $post['body'] = ReplaceKeyword($post['body']); - if(!empty($post['writer'])){$post['writertitle']=$post['title'].' '.$post['writer'];} - $data['post'] = $post; - $data['pre'] = get_article_prenext(array('aid'=>$post["id"],'typeid'=>$post["typeid"],'type'=>"pre")); } else { return redirect()->route('page404'); } - $post = object_to_array(DB::table('goods_type')->where('id', $cat)->first(), 1); - - return view('home.index.'.$post['temparticle'], $data); + $data['tj_list'] = object_to_array(DB::table('goods')->where(['tuijian'=>1,'status'=>0])->get()); + return view('home.index.goods', $data); } //sitemap页面 diff --git a/app/Http/Controllers/Home/IndexController企业.php b/app/Http/Controllers/Home/IndexController企业.php new file mode 100644 index 0000000..f68253f --- /dev/null +++ b/app/Http/Controllers/Home/IndexController企业.php @@ -0,0 +1,276 @@ +where($where)->select('id','title','price','litpic','description','shipping_fee','market_price','goods_number','sale')->take(30)->orderBy('pubdate','desc')->get()); + $data['goods_type_list'] = object_to_array(DB::table('goods_type')->where(['pid'=>0,'status'=>1])->select('id','name')->take(30)->orderBy('listorder','asc')->get()); + $data['slide_list'] = object_to_array(DB::table('slide')->where(['group_id'=>0,'type'=>0,'is_show'=>0])->take(30)->orderBy('listorder','asc')->get()); + $data['ztad_list'] = object_to_array(DB::table('slide')->where(['group_id'=>1,'type'=>0,'is_show'=>0])->take(30)->orderBy('listorder','asc')->get()); + + return view('home.index.index',$data); + } + + //列表页 + public function category($cat, $page=0) + { + $pagenow = $page; + + if(empty($cat) || !preg_match('/[0-9]+/',$cat)){return redirect()->route('page404');} + + if(cache("catid$cat")){$post = cache("catid$cat");}else{$post = object_to_array(DB::table('arctype')->where('id', $cat)->first(), 1);if(empty($post)){return redirect()->route('page404');} cache(["catid$cat"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));} + $data['post'] = $post; + + $subcat="";$sql=""; + $post2 = object_to_array(DB::table('arctype')->select('id')->where('pid', $cat)->get()); + if(!empty($post2)){foreach($post2 as $row){$subcat=$subcat."typeid=".$row["id"]." or ";}} + $subcat=$subcat."typeid=".$cat; + $sql=$subcat." or typeid2 in (".$cat.")";//echo $subcat2;exit; + $data['sql'] = $sql; + + $counts = DB::table("article")->whereRaw($sql)->count(); + if($counts>sysconfig('CMS_MAXARC')){$counts=sysconfig('CMS_MAXARC');dd($counts);} + $pagesize = sysconfig('CMS_PAGESIZE');$page=0; + if($counts % $pagesize){//取总数据量除以每页数的余数 + $pages = intval($counts/$pagesize) + 1; //如果有余数,则页数等于总数据量除以每页数的结果取整再加一,如果没有余数,则页数等于总数据量除以每页数的结果 + }else{$pages = $counts/$pagesize;} + if(!empty($pagenow)){if($pagenow==1 || $pagenow>$pages){return redirect()->route('page404');}$page = $pagenow-1;$nextpage=$pagenow+1;$previouspage=$pagenow-1;}else{$page = 0;$nextpage=2;$previouspage=0;} + $data['page'] = $page; + $data['pages'] = $pages; + $data['counts'] = $counts; + $start = $page*$pagesize; + + $data['posts'] = arclist(array("sql"=>$sql, "limit"=>"$start,$pagesize")); //获取列表 + $data['pagenav'] = get_listnav(array("counts"=>$counts,"pagesize"=>$pagesize,"pagenow"=>$page+1,"catid"=>$cat)); //获取分页列表 + + if($post['templist']=='category2'){if(!empty($pagenow)){return redirect()->route('page404');}} + + return view('home.index.'.$post['templist'], $data); + } + + //文章详情页 + public function detail($id) + { + if(empty($id) || !preg_match('/[0-9]+/',$id)){return redirect()->route('page404');} + + if(cache("detailid$id")){$post = cache("detailid$id");}else{$post = object_to_array(DB::table('article')->where('id', $id)->first(), 1);if(empty($post)){return redirect()->route('page404');}$post['name'] = DB::table('arctype')->where('id', $post['typeid'])->value('name');cache(["detailid$id"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));} + if($post) + { + $cat = $post['typeid']; + $post['body'] = ReplaceKeyword($post['body']); + if(!empty($post['writer'])){$post['writertitle']=$post['title'].' '.$post['writer'];} + + $data['post'] = $post; + $data['pre'] = get_article_prenext(array('aid'=>$post["id"],'typeid'=>$post["typeid"],'type'=>"pre")); + } + else + { + return redirect()->route('page404'); + } + + if(cache("catid$cat")){$post=cache("catid$cat");}else{$post = object_to_array(DB::table('arctype')->where('id', $cat)->first(), 1);cache(["catid$cat"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));} + + return view('home.index.'.$post['temparticle'], $data); + } + + //标签详情页,共有3种显示方式,1正常列表,2列表显示文章,3显示描述 + public function tag($tag, $page=0) + { + $pagenow = $page; + + if(empty($tag) || !preg_match('/[0-9]+/',$tag)){return redirect()->route('page404');} + + $post = object_to_array(DB::table('tagindex')->where('id',$tag)->first(), 1); + $data['post'] = $post; + + $counts=DB::table("taglist")->where('tid',$tag)->count('aid'); + if($counts>sysconfig('CMS_MAXARC')){$counts=sysconfig('CMS_MAXARC');} + $pagesize=sysconfig('CMS_PAGESIZE');$page=0; + if($counts % $pagesize){//取总数据量除以每页数的余数 + $pages = intval($counts/$pagesize) + 1; //如果有余数,则页数等于总数据量除以每页数的结果取整再加一,如果没有余数,则页数等于总数据量除以每页数的结果 + }else{$pages = $counts/$pagesize;} + if(!empty($pagenow)){if($pagenow==1 || $pagenow>$pages){return redirect()->route('page404');}$page = $pagenow-1;$nextpage=$pagenow+1;$previouspage=$pagenow-1;}else{$page = 0;$nextpage=2;$previouspage=0;} + $data['page'] = $page; + $data['pages'] = $pages; + $data['counts'] = $counts; + $start=$page*$pagesize; + + $posts=object_to_array(DB::table("taglist")->where('tid',$tag)->orderBy('aid', 'desc')->skip($start)->take($pagesize)->get()); + foreach($posts as $row) + { + $aid[] = $row["aid"]; + } + $aid = isset($aid)?implode(',',$aid):""; + + if($aid!="") + { + if($post['template']=='tag2') + { + $data['posts'] = arclist(array("sql"=>"id in ($aid)","orderby"=>['id', 'desc'],"row"=>"$pagesize","field"=>"title,body")); //获取列表 + } + else + { + $data['posts'] = arclist(array("sql"=>"id in ($aid)","orderby"=>['id', 'desc'],"row"=>"$pagesize")); //获取列表 + } + } + else + { + $data['posts'] = ''; //获取列表 + } + + $data['pagenav'] = get_listnav(array("counts"=>$counts,"pagesize"=>$pagesize,"pagenow"=>$page+1,"catid"=>$tag,"urltype"=>"tag")); //获取分页列表 + + if($post['template']=='tag2' || $post['template']=='tag3'){if(!empty($pagenow)){return redirect()->route('page404');}} + + return view('home.index.'.$post['template'], $data); + } + + //标签页 + public function tags() + { + return view('home.index.tags'); + } + + //搜索页 + public function search($keyword) + { + if(empty($keyword)) + { + echo '请输入正确的关键词';exit; + } + + if(strstr($keyword,"&")) exit; + + $data['posts']= object_to_array(DB::table("article")->where("title", "like", "%$keyword%")->orderBy('id', 'desc')->take(30)->get()); + $data['keyword']= $keyword; + + return view('home.index.search', $data); + } + + //单页面 + public function page($id) + { + $data = []; + + if(!empty($id) && preg_match('/[a-z0-9]+/',$id)) + { + $map['filename']=$id; + if(cache("pageid$id")){$post=cache("pageid$id");}else{$post = object_to_array(DB::table('page')->where($map)->first(), 1);cache("pageid$id", $post, 2592000);cache(["pageid$id"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));} + + if($post) + { + $data['post'] = $post; + } + else + { + return redirect()->route('page404'); + } + + } + else + { + return redirect()->route('page404'); + } + + $data['posts'] = object_to_array(DB::table('page')->orderBy(\DB::raw('rand()'))->take(5)->get()); + + return view('home.index.'.$post['template'], $data); + } + + //商品列表页 + public function goodstype($cat, $page=0) + { + $pagenow = $page; + + if(empty($cat) || !preg_match('/[0-9]+/',$cat)){return redirect()->route('page404');} + + $post = object_to_array(DB::table('goods_type')->where('id', $cat)->first(), 1);if(empty($post)){return redirect()->route('page404');} + $data['post'] = $post; + + $subcat=""; + $post2 = object_to_array(DB::table('goods_type')->select('id')->where('pid', $cat)->get()); + if(!empty($post2)){foreach($post2 as $row){$subcat=$subcat."typeid=".$row["id"]." or ";}} + $subcat=$subcat."typeid=".$cat; + $data['sql'] = $subcat; + + $counts = DB::table("goods")->whereRaw($subcat)->count(); + if($counts>sysconfig('CMS_MAXARC')){$counts=sysconfig('CMS_MAXARC');dd($counts);} + $pagesize = sysconfig('CMS_PAGESIZE');$page=0; + if($counts % $pagesize){//取总数据量除以每页数的余数 + $pages = intval($counts/$pagesize) + 1; //如果有余数,则页数等于总数据量除以每页数的结果取整再加一,如果没有余数,则页数等于总数据量除以每页数的结果 + }else{$pages = $counts/$pagesize;} + if(!empty($pagenow)){if($pagenow==1 || $pagenow>$pages){return redirect()->route('page404');}$page = $pagenow-1;$nextpage=$pagenow+1;$previouspage=$pagenow-1;}else{$page = 0;$nextpage=2;$previouspage=0;} + $data['page'] = $page; + $data['pages'] = $pages; + $data['counts'] = $counts; + $start = $page*$pagesize; + + $data['posts'] = arclist(array("table"=>"goods","sql"=>$subcat, "limit"=>"$start,$pagesize")); //获取列表 + $data['pagenav'] = get_listnav(array("counts"=>$counts,"pagesize"=>$pagesize,"pagenow"=>$page+1,"catid"=>$cat,"urltype"=>"goods")); //获取分页列表 + + if($post['templist']=='category2'){if(!empty($pagenow)){return redirect()->route('page404');}} + + return view('home.index.'.$post['templist'], $data); + } + + //商品详情页 + public function goods($id) + { + if(empty($id) || !preg_match('/[0-9]+/',$id)){return redirect()->route('page404');} + + $post = object_to_array(DB::table('goods')->where('id', $id)->first(), 1);if(empty($post)){return redirect()->route('page404');}$post['name'] = DB::table('goods_type')->where('id', $post['typeid'])->value('name'); + if($post) + { + $cat = $post['typeid']; + if(!empty($post['writer'])){$post['writertitle']=$post['title'].' '.$post['writer'];} + + $data['post'] = $post; + $data['pre'] = get_article_prenext(array('aid'=>$post["id"],'typeid'=>$post["typeid"],'type'=>"pre")); + } + else + { + return redirect()->route('page404'); + } + + $post = object_to_array(DB::table('goods_type')->where('id', $cat)->first(), 1); + + return view('home.index.goods', $data); + } + + //sitemap页面 + public function sitemap() + { + return view('home.index.sitemap'); + } + + //404页面 + public function page404() + { + return view('home.404'); + } + + //测试页面 + public function test() + {return view('home.index.test'); + //return base_path('resources/org'); + //$qrcode = new \SimpleSoftwareIO\QrCode\BaconQrCodeGenerator; + //return $qrcode->size(500)->generate('Make a qrcode without Laravel!'); + //return ''; + //set_exception_handler('myException'); + //return uniqid(); + //return \App\Common\Helper::formatPrice(1.2346); + } +} \ No newline at end of file diff --git a/public/css/style.css b/public/css/style.css index 6d1f392..43471e2 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1,104 +1,83 @@ -/* GLOBAL STYLES --------------------------------------------------- */ -/* Padding below the footer and lighter body text */ - -body {color: #5a5a5a;} -.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4;} -.bs-docs-featurette-title{margin-bottom:10px;font-size:30px;font-weight:400;color:#333;} -.half-rule{width:100px;margin:40px auto;} -.bs-docs-featurette{padding-top:40px;padding-bottom:40px;font-size:16px;line-height:1.5;color:#555;text-align:center;} -.projects-header{width:60%;text-align:center;margin:60px 0 10px;font-weight:200;margin-bottom:40px;display:block;margin-left:auto;margin-right:auto} -.projects-header h2{font-size:30px;letter-spacing:1px} -@media screen and (min-width:768px){ -.projects-header h2{font-size:36px} -} -/* CUSTOMIZE THE NAVBAR --------------------------------------------------- */ - -/* Special class on .container surrounding .navbar, used for positioning it into place. */ -.navbar-wrapper {position: absolute;top: 0;right: 0;left: 0;z-index: 20;} - -/* Flip around the padding for proper display in narrow viewports */ -.navbar-wrapper > .container {padding-right: 0;padding-left: 0;} -.navbar-wrapper .navbar {padding-right: 15px;padding-left: 15px;} -.navbar-wrapper .navbar .container {width: auto;} - -/* CUSTOMIZE THE CAROUSEL --------------------------------------------------- */ - -/* Carousel base class */ -.carousel {height: 500px;margin-bottom: 60px;} -/* Since positioning the image, we need to help out the caption */ -.carousel-caption {z-index: 10;} - -/* Declare heights because of positioning of img element */ -.carousel .item {height: 500px;background-color: #777;} -.carousel-inner > .item > img {position: absolute;top: 0;left: 0;min-width: 100%;height: 500px;} - -/* MARKETING CONTENT --------------------------------------------------- */ - -/* Center align the text within the three columns below the carousel */ -.marketing .col-lg-4 {margin-bottom: 20px;text-align: center;} -.marketing h2 {font-weight: normal;} -.marketing .col-lg-4 p {margin-right: 10px;margin-left: 10px;} - - -/* Featurettes -------------------------- */ - -.featurette-divider {margin: 80px 0; /* Space out the Bootstrap
more */} - -/* Thin out the marketing headings */ -.featurette-heading {font-weight: 300;line-height: 1;letter-spacing: -1px;} - -/* RESPONSIVE CSS --------------------------------------------------- */ - -@media (min-width: 768px) { -/* Navbar positioning foo */ -.navbar-wrapper {margin-top: 20px;} -.navbar-wrapper .container {padding-right: 15px;padding-left: 15px;} -.navbar-wrapper .navbar {padding-right: 0;padding-left: 0;} - -/* The navbar becomes detached from the top, so we round the corners */ -.navbar-wrapper .navbar {border-radius: 4px;} - -/* Bump up size of carousel content */ -.carousel-caption p {margin-bottom: 20px;font-size: 21px;line-height: 1.4;} - -.featurette-heading {font-size: 50px;} -.bs-docs-featurette-title{font-size:36px;} -.bs-docs-featurette .lead{max-width:80%;margin-right:auto;margin-left:auto;} -.lead{font-size:21px;} -.bs-docs-featurette{padding-top:80px;padding-bottom:80px;} -} - -@media (min-width: 992px) { -.featurette-heading {margin-top: 120px;} -} -img:hover{filter:alpha(opacity=90);opacity:0.9;} -.cl{clear:both;}.fl,.mfl{float:left;}.fr,.mfr{float:right;}.m-auto{margin:0 auto;} - -.list{padding:20px 0;border-bottom:1px solid #e5e5e5;} -.tit{display:block;font-weight:normal;font-size:24px;line-height:1.3;} -.list p{margin-top:10px;word-break:break-all;color:#999;font-size:14px;line-height:1.5;}.list p a{color:#e74c3c;}.list p:after{content:"..";} -.info{margin-top:8px;color:#bbb;font-size:12px;}.info a{color:#ea5a3d;margin-right:8px;}.info .fr{color:#444;} -.list .limg{width:169px;height:119px;float:left;margin-right:20px;}.list .limg img{width:169px;height:119px;vertical-align:top;} +body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,dd,form,input,textarea,select,button{margin:0;padding:0;}em,i{font-style:normal;} +li,ul{list-style:none;}ul{zoom:1;}img{border:none;border:0;margin:0;padding:0;vertical-align:top;}.cl{clear:both;}.fl,.mfl{float:left;}.fr,.mfr{float:right;}.m-auto{margin:0 auto;} +body{font-size:14px;color:#313131;font-family:arial,'Hiragino Sans GB',"Microsoft YaHei","Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,tahoma,simsun,sans-serif;}.yaheis a,.yahei{font-family:Microsoft YaHei,"Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,tahoma,simsun,sans-serif;} +a{color:#313131;text-decoration:none;}a:hover{text-decoration:none;color:#22ac38;}.clear{zoom:1;}.clear:after,.imglist2:after{content:"";display:block;clear:both;} +.mt10{margin-top:10px;}.mb10{margin-bottom:10px;}.zcs a,.zc{color:#c39;}.reds a,.red{color:#22ac38;}.blues a,.blue{color:#0078b6;}.grey,.greys a{color:#999;}.chs a:hover{color:#22ac38;} + +.box{width:960px;margin-left:auto;margin-right:auto;overflow:hidden;} +.fr_740{width:740px;float:right;overflow:hidden;}.fl_210{width:210px;float:left;overflow:hidden;} + +.m-sch{width:157px;height:24px;*margin-top:6px;}.m-sch .sch-txt{border:1px solid #dcdcdc;color:#dcdcdc;background-color:#fff;width:150px;height:22px;line-height:20px;padding-left:5px;} + +#tad{width:960px;height:90px;margin:10px auto 0 auto;overflow:hidden;}#itad{width:960px;margin:10px auto 0 auto;overflow:hidden;height:90px;} +.notice{font-family:SimSun;color:#e53333;line-height:1.5;padding:6px 10px;background:#feffe6;border:1px solid #e6d8b9;font-size:12px;} + +.pul{margin-right:-15px;font-family:"Microsoft Yahei";}.pul a:hover .title{text-decoration:underline;} +.pul li{background-color: #fff;float:left;overflow:hidden;margin-right:15px;margin-bottom:15px;border:1px solid #dcdcdc;}.pul li a:hover{text-decoration:none;} +.pul li img{width:308px;height:308px;display:block;margin-bottom:10px;} +.pul li .title{overflow:hidden;white-space:nowrap;width:293px;height:20px;margin:0 5px 2px 10px;font-weight:400;display: block;color: #333;font-size: 14px;line-height: 15px;} +.pul li .desc{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:288px;margin:0 10px 5px 10px;font-size: 12px;line-height: 16px;padding: 0;color: #999;height: 20px;} +.pul li .desc .price-point{display: inline-block;font-weight: 400;color: #e61414;} +.pul .item-prices{height: 50px;}.pul .red{background-color: #e61414;}.pul .green{background-color: #26a96d;} +.pul .item-info{width:233px;height:50px;overflow: hidden;padding-left:5px;} +.pul .item-link{background-color:#fff280;float:right;width:50px;height:43px;padding:7px 7px 0 7px;line-height:18px;overflow: hidden;text-align: center;font-size:14px;color: #e61414;} +.pul .price {margin-right: 8px;font-size: 0;color: #fff;float: left;font-family: Tahoma;} +.pul .price i {margin-right: 3px;display: inline-block;font-size: 22px;font-family: "Microsoft Yahei","Hiragino Sans GB",Arial;} +.pul .price em {display: inline-block;line-height: 50px;font-size:40px;font-weight: 400;letter-spacing: -2px;font-family: Helvetica Neue,Helvetica,Arial;} +.pul .dock {_float: left;overflow: hidden;margin-top: 4px;} +.pul .dock .dock-price {height: 18px;margin-bottom: 3px;overflow: hidden;} +.pul .dock .orig-price {position: static;text-align: left;display: inline-block;vertical-align: top;color: #fff;font-size: 12px;text-decoration: line-through;} +.pul .dock .benefit {font-size:12px;padding: 0 6px;-webkit-border-radius: 10px;-webkit-background-clip: padding-box;-moz-border-radius: 10px;-moz-background-clip: padding;border-radius: 10px;background-clip: padding-box;height: 17px;line-height: 17px;background: #ffb369;display: inline-block;_display: inline;overflow: hidden;margin-right: 2px;color: #FFF;} +.pul .dock .prompt {height: 20px;overflow:hidden;} +.pul .dock .sold-num {filter: none;display: inline-block;line-height: 20px;padding: 0 6px;background-color: rgba(0,0,0,.1);filter: progid:DXImageTransform.Microsoft.gradient(enabled='true', startColorstr='#19000000', endColorstr='#19000000');-webkit-border-radius: 3px;-webkit-background-clip: padding-box;-moz-border-radius: 3px;-moz-background-clip: padding;border-radius: 3px;background-clip: padding-box;color: #fff;font-size: 12px;} +.pul .dock .sold-num em {font-size: 14px;color: #fff;font-weight: 700;line-height: 17px;} .page,.pages{text-align:center;padding:15px 0px;}.page a:hover{background:#FF5E52;color:#fff;} -.page a{display:inline-block;height:32px;line-height:32px;padding:0 45px;font-size:14px;color:#fff;background:#ea5a3d;margin-right:8px;border-radius:3px;box-shadow:1px 1px 2px #eee;} - -.pages li a{color:#808080;}.pages li{display:inline-block;height:35px;line-height:35px;text-align:center;font-size:14px;color:#808080;background-color:#f4f4f4;padding-right:15px;padding-left:15px;margin-right:1px;} -.pages .thisclass{background-color:#ea5a3d;}.pages .thisclass a{color:#fff;} -.pages li:hover,.pages li:hover a{background-color:#ea5a3d;color:#fff;} - -.content{margin-bottom:15px;font-size:16px;} -.content p{margin-bottom:0;}.content u{color:red;text-decoration:none;} -.content img{max-width:100%;height:auto;} -.content blockquote{padding:.6em 1em;border-left:.4em solid #cad4f2;background:#f0f0f0;} - -.banner{text-align:center;padding-top:100px;color: #fff;background:url(../images/banner.jpg);} -.imgzsy{width:100%;/* height:14vw; */} -footer{margin-top:40px;} -footer p{text-align:center;} \ No newline at end of file +.page a{display:inline-block;height:32px;line-height:32px;padding:0 45px;font-size:14px;color:#fff;background:#22ac38;margin-right:8px;border-radius:3px;box-shadow:1px 1px 2px #eee;} + +.pages li{display:inline-block;height:35px;line-height:35px;text-align:center;font-size:14px;color:#808080;background-color:#fff;padding-right:15px;padding-left:15px;margin-right:1px;*display:inline;} +.pages li a{color:#808080;}.pages .thisclass{background-color:#e61414;color:#fff;} +.pages li:hover,.pages li:hover a{background-color:#e61414;color:#fff;} + +.site-nav {font-size:12px;position: relative;z-index: 9000;min-width: 940px;height: 30px;line-height: 30px;background-color: #f5f5f5;border-bottom: solid 1px #eee;} +.site-nav .menu-left {float: left;height: 30px;line-height: 30px;} +.site-nav .mobile {float: left;position: relative;padding-right: 10px;margin-top: 8px;line-height: 15px;border-right: solid 1px #dcdcdc;} +.site-nav a {color: #666;text-decoration: none;} +.site-nav a:hover {color: #e61414;} +.site-nav .login-info {float: left;} +.site-nav .login-info a {display: block;float: left;height: 100%;margin-left: 10px;} +.site-nav .quick-menu {float: right;line-height: 30px;} +.site-nav .quick-menu li {position: relative;_width: 0;float: left;white-space: nowrap;margin: 0 9px;} +.site-nav .quick-menu li a {display: block;height: 100%;} +.ju-naver {position: relative;z-index: 8000;background-color: #fff;width: 100%;height: 80px;-webkit-box-shadow: 0 1px 3px rgba(0,0,0,.13);-moz-box-shadow: 0 1px 3px rgba(0,0,0,.13);box-shadow: 0 1px 3px rgba(0,0,0,.13);border-bottom: 1px solid #eee\9;} +.ju-naver .logo {position: relative;float: left;font-weight: 400;} +.ju-naver .ju-logo-show {visibility: visible;z-index: 2;} +.ju-naver .ju-logo img{width: 150px;height:80px;} +.ju-naver a {display: block;text-decoration: none;} +.ju-naver .nav-menu {float: right;margin-top: 28px;} +.ju-naver .nav-menu li {display: inline-block;position: relative;margin-right: 2px;} +.ju-naver .nav-menu a {color: #4A4A4A;font-size: 16px;position: relative;height: 26px;line-height: 26px;padding: 0 6px;-webkit-border-radius: 3px;-webkit-background-clip: padding-box;-moz-border-radius: 3px;-moz-background-clip: padding;border-radius: 3px;background-clip: padding-box;} +.ju-naver .nav-menu a:hover {background-color: #EDEDED;} + +#slideBox{width:740px;height:347px;overflow:hidden;position:relative;} +#slideBox ul#show_pic{margin:0;padding:0;list-style:none;width:7400px;height:347px;position:absolute;} +#slideBox ul#show_pic li{float:left;margin:0;padding:0;height:347px;} +#slideBox ul#show_pic li img{display:block;} +#iconBall{position:absolute;bottom:0;right:0;} +#iconBall li{float:left;color:#7a7a7a;width:32px;height:28px;line-height:28px;cursor:pointer;text-align:center;font-size:14px;padding-top:4px;} +#iconBall li.active{background:url(../images/ibg.png) no-repeat;color:#fff;} +#slideText{width:740px;height:28px;background:rgba(0,0,0,0.7);color:#fff;position:absolute;left:0px;bottom:0px;*background:transparent;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#b2000000,endColorstr=#b2000000);} +#textBall{position:absolute;left:10px;bottom:5px;} +#textBall li{float:left;cursor:pointer;display:none;color:#fff;font-size:14px;} +#textBall li.active{display:block;} +#textBall li a{text-decoration:none;color:#fff;} + +.hdp{margin-bottom:10px;font-size:12px;font-family:simsun,sans-serif;} +.hdp .fl{width:740px;overflow:hidden;} +.hdp .fr{width:215px;height:472px;overflow:hidden;}.hdp .fr a{margin-right:10px;} +.ttit{border-left:2px solid #f60;padding-left:8px;margin-right:8px;line-height:16px;margin-bottom:5px;} +.titem{padding-bottom:10px;border-bottom:1px dotted #e0e0e0;margin-bottom:10px;} +.iztad{height:120px;overflow:hidden;margin-top:5px;} + +#footer{font-size:12px;text-align:center;margin-bottom:10px;margin-top:10px;color:#5D5D5D;} +.tm{overflow:hidden;position:fixed;left:1px;bottom:15px;z-index:999;_position:absolute;} diff --git a/public/css/style企业bootstrap.css b/public/css/style企业bootstrap.css new file mode 100644 index 0000000..6d1f392 --- /dev/null +++ b/public/css/style企业bootstrap.css @@ -0,0 +1,104 @@ +/* GLOBAL STYLES +-------------------------------------------------- */ +/* Padding below the footer and lighter body text */ + +body {color: #5a5a5a;} +.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4;} +.bs-docs-featurette-title{margin-bottom:10px;font-size:30px;font-weight:400;color:#333;} +.half-rule{width:100px;margin:40px auto;} +.bs-docs-featurette{padding-top:40px;padding-bottom:40px;font-size:16px;line-height:1.5;color:#555;text-align:center;} +.projects-header{width:60%;text-align:center;margin:60px 0 10px;font-weight:200;margin-bottom:40px;display:block;margin-left:auto;margin-right:auto} +.projects-header h2{font-size:30px;letter-spacing:1px} +@media screen and (min-width:768px){ +.projects-header h2{font-size:36px} +} +/* CUSTOMIZE THE NAVBAR +-------------------------------------------------- */ + +/* Special class on .container surrounding .navbar, used for positioning it into place. */ +.navbar-wrapper {position: absolute;top: 0;right: 0;left: 0;z-index: 20;} + +/* Flip around the padding for proper display in narrow viewports */ +.navbar-wrapper > .container {padding-right: 0;padding-left: 0;} +.navbar-wrapper .navbar {padding-right: 15px;padding-left: 15px;} +.navbar-wrapper .navbar .container {width: auto;} + +/* CUSTOMIZE THE CAROUSEL +-------------------------------------------------- */ + +/* Carousel base class */ +.carousel {height: 500px;margin-bottom: 60px;} +/* Since positioning the image, we need to help out the caption */ +.carousel-caption {z-index: 10;} + +/* Declare heights because of positioning of img element */ +.carousel .item {height: 500px;background-color: #777;} +.carousel-inner > .item > img {position: absolute;top: 0;left: 0;min-width: 100%;height: 500px;} + +/* MARKETING CONTENT +-------------------------------------------------- */ + +/* Center align the text within the three columns below the carousel */ +.marketing .col-lg-4 {margin-bottom: 20px;text-align: center;} +.marketing h2 {font-weight: normal;} +.marketing .col-lg-4 p {margin-right: 10px;margin-left: 10px;} + + +/* Featurettes +------------------------- */ + +.featurette-divider {margin: 80px 0; /* Space out the Bootstrap
more */} + +/* Thin out the marketing headings */ +.featurette-heading {font-weight: 300;line-height: 1;letter-spacing: -1px;} + +/* RESPONSIVE CSS +-------------------------------------------------- */ + +@media (min-width: 768px) { +/* Navbar positioning foo */ +.navbar-wrapper {margin-top: 20px;} +.navbar-wrapper .container {padding-right: 15px;padding-left: 15px;} +.navbar-wrapper .navbar {padding-right: 0;padding-left: 0;} + +/* The navbar becomes detached from the top, so we round the corners */ +.navbar-wrapper .navbar {border-radius: 4px;} + +/* Bump up size of carousel content */ +.carousel-caption p {margin-bottom: 20px;font-size: 21px;line-height: 1.4;} + +.featurette-heading {font-size: 50px;} +.bs-docs-featurette-title{font-size:36px;} +.bs-docs-featurette .lead{max-width:80%;margin-right:auto;margin-left:auto;} +.lead{font-size:21px;} +.bs-docs-featurette{padding-top:80px;padding-bottom:80px;} +} + +@media (min-width: 992px) { +.featurette-heading {margin-top: 120px;} +} +img:hover{filter:alpha(opacity=90);opacity:0.9;} +.cl{clear:both;}.fl,.mfl{float:left;}.fr,.mfr{float:right;}.m-auto{margin:0 auto;} + +.list{padding:20px 0;border-bottom:1px solid #e5e5e5;} +.tit{display:block;font-weight:normal;font-size:24px;line-height:1.3;} +.list p{margin-top:10px;word-break:break-all;color:#999;font-size:14px;line-height:1.5;}.list p a{color:#e74c3c;}.list p:after{content:"..";} +.info{margin-top:8px;color:#bbb;font-size:12px;}.info a{color:#ea5a3d;margin-right:8px;}.info .fr{color:#444;} +.list .limg{width:169px;height:119px;float:left;margin-right:20px;}.list .limg img{width:169px;height:119px;vertical-align:top;} + +.page,.pages{text-align:center;padding:15px 0px;}.page a:hover{background:#FF5E52;color:#fff;} +.page a{display:inline-block;height:32px;line-height:32px;padding:0 45px;font-size:14px;color:#fff;background:#ea5a3d;margin-right:8px;border-radius:3px;box-shadow:1px 1px 2px #eee;} + +.pages li a{color:#808080;}.pages li{display:inline-block;height:35px;line-height:35px;text-align:center;font-size:14px;color:#808080;background-color:#f4f4f4;padding-right:15px;padding-left:15px;margin-right:1px;} +.pages .thisclass{background-color:#ea5a3d;}.pages .thisclass a{color:#fff;} +.pages li:hover,.pages li:hover a{background-color:#ea5a3d;color:#fff;} + +.content{margin-bottom:15px;font-size:16px;} +.content p{margin-bottom:0;}.content u{color:red;text-decoration:none;} +.content img{max-width:100%;height:auto;} +.content blockquote{padding:.6em 1em;border-left:.4em solid #cad4f2;background:#f0f0f0;} + +.banner{text-align:center;padding-top:100px;color: #fff;background:url(../images/banner.jpg);} +.imgzsy{width:100%;/* height:14vw; */} +footer{margin-top:40px;} +footer p{text-align:center;} \ No newline at end of file diff --git a/public/images/ibg.png b/public/images/ibg.png new file mode 100644 index 0000000000000000000000000000000000000000..0f66eea76d233c96f83877fafbbdfa886cf03ee7 GIT binary patch literal 214 zcmeAS@N?(olHy`uVBq!ia0vp^azL!W!3-pg=2`dxDajJoh?3y^w370~qErUQl>DSr z1<%~X^wgl##FWaylc_d9MG^r%A+Enu8GocO{!V51o5t`jjp1)9!~Zm(9K*-^Yn}ip zj*=k1;QtW7aIbl9Bv8!3)5S5Q;#N|EJ7dm@m@>AINHa5=OF20&KJmQRwBi#F&l-UP zXS!Goj5a)E{joICed$S#trs0+t1jvMSTd7=iH9NQuGr#PmoH2J+2iTz=d#Wzp$Pzp Ci%tgs literal 0 HcmV?d00001 diff --git a/public/images/icon.gif b/public/images/icon.gif new file mode 100644 index 0000000000000000000000000000000000000000..9dc830b5507219a4dd7eac99287be1f6259d18cc GIT binary patch literal 1097 zcmZ?wbhEHbWMN=oXkcKtd-pB_1B2p!?g-xi1((E!Y#3Q(W~w5=#5%__*n4QdyVXRDM^Qc_^0uU}qXu2*iX zmtT~wZ)j<02{OaTNEfI=x41H|B(Xv_uUHvof=g;~a#3bMNoIbY0?5R~r2NtnTP2`N zAzsKWfE$}vtOxdvUUGh}ennz|zM-B0$V)JVzP|XC=H|jx7ncO3BHWAB;NpiyW z)Z+ZoqU2Pda%GTJ1y;^Qsfi`|MIrh5Ij~R+$jC3rFV4s>P;d@5Q_u*{%uC5HFV+OB z_w}{%%quQQ%u7!7bg@+enxL1NnPO$;WMOG!Y2<8S?q+Og=xXL@YHHwYU~Xb)VeIN? zyn>bnwy$e0@Is<(CdOzFDNPG765H_NiE7OOHFYr%Fk5*d)X=zw_6->ng`XJ zg4-=lIQ8lS9itD5Sfq%C2?0|NhzU=&Kn^_Nr{)1udl4{MGyebg_s{QNKYx7x_Vvr> zPai+LfA{vy>sK#dJb(7|$>T>4AKbrp_s;EGH*Z|OcJ<2TOBXMkKX>-b=~E|996xsS z$l*f=5A5H!chBx!J9li~wsp(qO&d3?U$=J6>QyUOEMK;C$>K!|7tEhGch2ltGiOYn zHg(G6NfRgZ_x1L4cXf8Ox3#u3H#IiY*VWckS5;P&mz9*?xfYiVkztEs9eD=8|-%gM?}OG!$Ii;0Q|3keGF^YQX

\ 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 bcd0eca..6ed7c25 100644 --- a/resources/views/home/common/header.blade.php +++ b/resources/views/home/common/header.blade.php @@ -1,36 +1,53 @@ -