diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..0519ecb --- /dev/null +++ b/.htaccess @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/404.html b/404.html new file mode 100644 index 0000000..99ff94f --- /dev/null +++ b/404.html @@ -0,0 +1,26 @@ + + + + + + +404 + + + + +

404,您请求的文件不存在!

+ + diff --git a/app/Http/Controllers/Api/ArticleController.php b/app/Http/Controllers/Api/ArticleController.php index 5dd793d..8866fa2 100644 --- a/app/Http/Controllers/Api/ArticleController.php +++ b/app/Http/Controllers/Api/ArticleController.php @@ -30,12 +30,15 @@ class ArticleController extends BaseController $where['ischeck'] = Article::IS_CHECK; $res = $this->getLogic()->getList($where, array('id', 'desc'), '*', $offset, $limit); - + if($res['count']>0) { foreach($res['list'] as $k=>$v) { $res['list'][$k]->article_detail_url = route('weixin_article_detail',array('id'=>$v->id)); + $res['list'][$k]->url = get_front_url(array("id"=>$v->id,"type"=>'content')); + $res['list'][$k]->pubdatetext = date("Y-m-d", $v->pubdate); + } } diff --git a/app/Http/Controllers/Home/IndexController.php b/app/Http/Controllers/Home/IndexController.php index e3921bf..d7707b5 100644 --- a/app/Http/Controllers/Home/IndexController.php +++ b/app/Http/Controllers/Home/IndexController.php @@ -20,64 +20,27 @@ class IndexController extends BaseController $postdata = array( 'tuijian' => 1, 'status' => 0, - 'limit' => 6, + 'limit' => 4, 'offset' => 0 ); $url = env('APP_API_URL') . "/goods_list"; $res = curl_request($url, $postdata, 'GET'); $data['tjlist'] = $res['data']['list']; - //商品列表 - $pagesize = 15; + //列表 + $pagesize = 10; $offset = 0; - if (isset($_REQUEST['page'])) { - $offset = ($_REQUEST['page'] - 1) * $pagesize; - } + $postdata = array( - 'status' => 0, 'limit' => $pagesize, 'offset' => $offset ); - $url = env('APP_API_URL') . "/goods_list"; + $url = env('APP_API_URL') . "/article_list"; $res = curl_request($url, $postdata, 'GET'); - $data['list'] = $res['data']['list']; - - $data['totalpage'] = ceil($res['data']['count'] / $pagesize); - - if (isset($_REQUEST['page_ajax']) && $_REQUEST['page_ajax'] == 1) { - $html = ''; - - if ($res['data']['list']) { - foreach ($res['data']['list'] as $k => $v) { - $html .= '
  • ' . $v['title'] . ''; - $html .= '

    ' . $v['title'] . '

    '; - $html .= '

    库存(' . $v['goods_number'] . ') ' . $v['description'] . '

    '; - $html .= '
    ¥' . ceil($v['price']) . '
    '; - $html .= '
    ¥' . $v['market_price'] . ' 包邮
    ' . $v['sale'] . ' 件已付款
  • '; - - /* if($v['is_promote_goods']>0) - { - $html .= 'Hot'; - } - - $html .= $v['title'].'

    '.$v['price'].''.$v['sale'].'人付款
    '; - $html .= ''; */ - } - } - exit(json_encode($html)); - } - - //商品分类列表 - $postdata = array( - 'pid' => 0, - 'limit' => 15, - 'offset' => 0 - ); - $url = env('APP_API_URL') . "/goodstype_list"; - $res = curl_request($url, $postdata, 'GET'); - $data['goodstype_list'] = $res['data']['list']; + $data['article_list'] = $res['data']['list']; + $data['article_count'] = intval($res['data']['count']); //banner轮播图 $postdata = array( diff --git a/app/Http/Controllers/Wap/IndexController.php b/app/Http/Controllers/Wap/IndexController.php index 13fe9d7..cfbd456 100644 --- a/app/Http/Controllers/Wap/IndexController.php +++ b/app/Http/Controllers/Wap/IndexController.php @@ -14,7 +14,46 @@ class IndexController extends BaseController //首页 public function index() { - return view('wap.index.index'); + + //推荐商品列表 + $postdata = array( + 'tuijian' => 1, + 'status' => 0, + 'limit' => 4, + 'offset' => 0 + ); + $url = env('APP_API_URL') . "/goods_list"; + $res = curl_request($url, $postdata, 'GET'); + $data['tjlist'] = $res['data']['list']; + + //列表 + $pagesize = 10; + $offset = 0; + + + $postdata = array( + 'limit' => $pagesize, + 'offset' => $offset + ); + $url = env('APP_API_URL') . "/article_list"; + $res = curl_request($url, $postdata, 'GET'); + + $data['article_list'] = $res['data']['list']; + $data['article_count'] = intval($res['data']['count']); + + + //banner轮播图 + $postdata = array( + 'type' => 0, + 'limit' => 5, + 'offset' => 0 + ); + $url = env('APP_API_URL') . "/slide_list"; + $res = curl_request($url, $postdata, 'GET'); + $data['slide_list'] = $res['data']['list']; + + + return view('wap.index.index',$data); } //列表页 diff --git a/index.html b/index.html new file mode 100644 index 0000000..86aeca2 --- /dev/null +++ b/index.html @@ -0,0 +1,39 @@ + + + + + 恭喜,站点创建成功! + + + +
    +

    恭喜, 站点创建成功!

    +

    这是默认index.html,本页面由系统自动生成

    + +
    + + \ No newline at end of file diff --git a/public/css/details.css b/public/css/details.css new file mode 100644 index 0000000..a011565 --- /dev/null +++ b/public/css/details.css @@ -0,0 +1,85 @@ +.header{ + width: 100%; + height: 90px; + /* position: fixed; + top: 0px; + background: #fff; + box-shadow: 0px 0px 3px #888888; */ + flex: 0 0 auto; +} +.header>.content{ + width: 1240px; + height: 100%; + display: flex; + justify-content: space-between; + margin: 0 auto; +} +.header>.content>.logo{ + width: 145px; + height: 50px; + background: #000; + margin: auto 0; +} +.header>.content>.nav{ + display: flex; +} +.header>.content>.nav>li{ + padding: 0 20px; + line-height: 90px; + font-size: 20px; + +} +.header>.content>.nav>li>a{ + color: #000; +} + +.text{ + min-height: 80%; + width: 1240px; + margin: 0 auto; + /*min-height: 600px;*/ + flex: 1 0 auto; + /*margin-bottom: 80px;*/ +} +.text .page-header{ + margin-bottom: 10px; +} +.active{ + color: #edb183 !important; +} +html,body{ + height: 100%; + display: flex; + flex-direction: column; +} + +.footer { + background: url('../img/sdtttr.png') no-repeat; + background-size: 100% 100%; + height: 90px; + width: 100%; + position: relative; + flex: 0 0 auto; +} + +.footer-cert { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} + +.footer-cert, +.footer-cert a { + color: #fff; +} + + +.active { + color: #edb183 !important; +} + +.footer-item { + display: block; + text-align: center; +} \ No newline at end of file diff --git a/public/css/index.css b/public/css/index.css new file mode 100644 index 0000000..264095d --- /dev/null +++ b/public/css/index.css @@ -0,0 +1,258 @@ +.header { + width: 100%; + height: 90px; + position: fixed; + top: 0px; + background: rgba(255, 255, 255, 1); + box-shadow: 0px 0px 3px #888888; + /* z-index: 0.2; */ + z-index: 2; +} + +.header>.content { + width: 1240px; + height: 100%; + display: flex; + justify-content: space-between; + margin: 0 auto; +} + +.header>.content>.logo { + width: 145px; + height: 50px; + background: #000; + margin: auto 0; +} + +.header>.content>.nav { + display: flex; +} + +.header>.content>.nav>li { + padding: 0 20px; + line-height: 90px; + font-size: 20px; + +} + +.header>.content>.nav>li>a { + color: #000; +} + +.bg { + width: 100%; + height: 1000px; + margin-top: 90px; +} + +.bg>img { + width: 100%; + height: 100%; +} + +#about { + width: 100%; + /* height: 580px; */ + padding: 80px 0; + background: rgba(244, 244, 244, 1); + padding-top: 160px; +} + +#about .content { + width: 1240px; + display: flex; + justify-content: space-between; + margin: 0 auto; +} + +#about .content .leftPic { + width: 550px; + height: 390px; +} + +#about .content .info { + width: 40%; +} + +#about .content .info .text { + font-size: 20px; + line-height: 38px; +} + + +#contact { + width: 100%; + padding: 80px 0; + background: rgba(244, 244, 244, 1); + padding-top: 160px; +} + +#contact .content { + width: 1240px; + margin: 0 auto; +} + +#contact .content .title { + text-align: center; + font-size: 36px; +} + +.contact .content .box { + display: flex; +} + +.contact .content .box .info { + /* background: rgba(250, 250, 252, 1); */ + width: 50%; + margin: 0 auto; + height: 400px; + padding: 10px; + /* display: flex; */ + padding-left: 30px; +} + +.contact .content .box { + display: flex; + width: 80%; + margin: 0 auto; +} + +.contact .content .box #container { + width: 50%; + height: 400px; +} + +.contact .content .box .info>div { + display: flex; + margin-bottom: 20px; +} + +.contact .content .box .info>div>img { + width: 42px; + height: 42px; + margin-right: 20px; +} + +.contact .content .box .info>div>p { + line-height: 42px; +} + +#journalism { + width: 100%; + padding: 80px 0; + background: #fff; + padding-top: 160px; + position: relative; +} + +#journalism .content { + width: 1240px; + margin: 0 auto; +} + +#journalism .content .title { + text-align: center; + font-size: 36px; +} +#journalism .content .list{ + height: 500px; +} +#journalism .content .list li { + padding: 10px 0; +} + +#journalism .content .list li a { + color: #000; +} +#journalism .block{ + position: absolute; + bottom: 100px; +} +#product { + width: 100%; + padding: 80px 0; + background: rgba(244, 244, 244, 1); + padding-top: 160px; +} + +#product .content { + width: 1240px; + margin: 0 auto; +} + +#product .content .title { + text-align: center; + font-size: 36px; + +} + +#product .content .list { + display: flex; + justify-content: space-between; + flex-wrap: wrap; + /* width: 50%; */ + margin: 0 auto; +} + +#product .content .list div { + /* width: 40%; */ + /* height: 300px; */ + width: 50%; + margin-bottom: 30px; +} + +#product .content .list>div>p { + text-align: center; + font-size: 21px; +} + +#product .content .list>div .referral { + font-size: 14px; + color: #767474; + width: 60%; + text-align: left; + margin: 0 auto; + margin-top: 10px; +} + +#product .content .list img { + width: 300px; + height: 200px; + display: block; + margin: 0 auto; + margin-bottom: 15px; +} + + + +#culture { + width: 100%; + /* height: 580px; */ + padding: 80px 0; + background: #fff; + padding-top: 160px; +} + +#culture .content { + width: 1240px; + display: flex; + justify-content: space-between; + margin: 0 auto; +} + +#culture .content .leftPic { + width: 550px; + height: 390px; +} + +#culture .content .info { + width: 40%; +} + +#culture .content .info .text { + font-size: 20px; + line-height: 38px; +} + + + diff --git a/public/css/reset.css b/public/css/reset.css new file mode 100644 index 0000000..b9f044c --- /dev/null +++ b/public/css/reset.css @@ -0,0 +1,70 @@ +html, +body, +div, +span, +applet, +object, +iframe, +h1, +h2, +h3, +h4, +h5, +h6, +p, +blockquote, +pre, +a, +abbr, +acronym, +address, +big, +cite, +code, +del, +dfn, +em, +font, +img, +ins, +kbd, +q, +s, +samp, +small, +strike, +strong, +sub, +sup, +tt, +var, +b, +u, +i, +center, +dl, +dt, +dd, +ol, +ul, +li, +fieldset, +form, +label, +legend, +table, +caption, +tbody, +tfoot, +thead, +tr, +th, +td, +textarea, +input { + margin: 0; + padding: 0; + box-sizing: border-box; + list-style: none; + text-decoration:none; +} diff --git a/public/img/111.png b/public/img/111.png new file mode 100644 index 0000000..87e11a8 Binary files /dev/null and b/public/img/111.png differ diff --git a/public/img/2222.jfif b/public/img/2222.jfif new file mode 100644 index 0000000..36a12fa Binary files /dev/null and b/public/img/2222.jfif differ diff --git a/public/img/3333.jfif b/public/img/3333.jfif new file mode 100644 index 0000000..d60ec19 Binary files /dev/null and b/public/img/3333.jfif differ diff --git a/public/img/4444.jfif b/public/img/4444.jfif new file mode 100644 index 0000000..701b334 Binary files /dev/null and b/public/img/4444.jfif differ diff --git a/public/img/5555.jfif b/public/img/5555.jfif new file mode 100644 index 0000000..76e43dc Binary files /dev/null and b/public/img/5555.jfif differ diff --git a/public/img/ic_location.png b/public/img/ic_location.png new file mode 100644 index 0000000..702fee9 Binary files /dev/null and b/public/img/ic_location.png differ diff --git a/public/img/ic_phone.png b/public/img/ic_phone.png new file mode 100644 index 0000000..c282f93 Binary files /dev/null and b/public/img/ic_phone.png differ diff --git a/public/img/logo.jpg b/public/img/logo.jpg new file mode 100644 index 0000000..1b1d3fe Binary files /dev/null and b/public/img/logo.jpg differ diff --git a/public/img/sdtttr.png b/public/img/sdtttr.png new file mode 100644 index 0000000..dd2d1a2 Binary files /dev/null and b/public/img/sdtttr.png differ diff --git a/resources/views/home/article/detail.blade.php b/resources/views/home/article/detail.blade.php index c437805..02fa23b 100644 --- a/resources/views/home/article/detail.blade.php +++ b/resources/views/home/article/detail.blade.php @@ -1,8 +1,38 @@ - -<?php echo $post["title"]; ?>_<?php echo sysconfig('CMS_WEBNAME'); ?> -@include('home.common.header') -
    -

    -
    -
    -@include('home.common.footer') \ No newline at end of file + + + + + + + + <?php echo sysconfig('CMS_SEOTITLE'); ?> + + + + + + +
    +
    + + +
    +
    +
    +
    +

    +
    发布时间:{{date("Y-m-d",$post["pubdate"])}}
    +
    +
    +
    +@include('home.common.footer') + + + \ No newline at end of file diff --git a/resources/views/home/common/footer.blade.php b/resources/views/home/common/footer.blade.php index 23853e9..9a783c3 100644 --- a/resources/views/home/common/footer.blade.php +++ b/resources/views/home/common/footer.blade.php @@ -1 +1,8 @@ - \ No newline at end of file + \ 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 c1079c8..b3a8dd2 100644 --- a/resources/views/home/index/index.blade.php +++ b/resources/views/home/index/index.blade.php @@ -1,198 +1,252 @@ - -<?php echo sysconfig('CMS_SEOTITLE'); ?> -@include('home.common.header') - - - - -
    - -
    -
    + + + + + + + + + + + <?php echo sysconfig('CMS_SEOTITLE'); ?> + + + +
    +
    + +
    +
    + $v) { ?> -
    <?php echo $v['title']; ?>
    + <?php echo $v['title']; ?> + + + +
    +
    +
    +

    产品中心

    + PRODUCT + CENTER +
    + + @if($slide_list) + + @foreach($slide_list as $k=>$v) +
    + {{$v['title']}} +

    {{$v['title']}}

    +

    {{$v['description']}}

    +
    + @endforeach +
    + @endif
    - -
    -
    -
    - - - - - - - - - -
    -
    -
      -
    • full()){echo ' class="hover"';} ?> href="">全部
    • -$v){ ?> -
    • $v['id'])) == url()->full()){echo ' class="hover"';} ?> href="$v['id'])); ?>">
    • -
    • [推荐]
    • -
    - -
    -
    + +
    +
    +

    新闻中心

    + PRESS + CENTER +
    + + + +
    +
    + + +
    +
    +
    + +
    +
    + +
    + 公司介绍 + ABOUT US +

    +         + 广州轻未来致力于中国大健康科学产品研发与服务,专注于科学减脂技术,由体脂监测,营养师1对1服务减脂教育以及“低聚肽营养固体饮料”结合的一套体脂管理解决方案。轻未来公司秉持“帮助国民科学管理健康体脂,向行业领导者进军”的理念。 +

    +
    +
    +
    +
    +
    +
    + 企业文化 + CULTURE +

    + 价值观:爱国、诚信、责任、进取、关爱、快乐、感恩
    + 使命:提高健康生命,成就财富梦想
    + 愿景:全力开创“国民大健康+轻创业”的科学体脂管理平台 +

    +
    + +
    +
    + +
    +
    +

    联系方式

    + CONTACT + US +
    + +
    +
    + +
    + +

    商务电话:{{sysconfig("CMS_PHONE")}}

    +
    +
    + +

    广州市白云区云城西路888号3604室

    +
    +
    +
    +
    +
    + @include('home.common.footer')
    - - - - - - -
    -

    编辑推荐工厂直达消费者,剔除品牌溢价夏凉/夏凉/夏凉/夏凉/夏凉/夏凉查看更多 >

    -
    - - - - + + + + + - -@include('home.common.footer') - \ No newline at end of file + + + + \ No newline at end of file diff --git a/resources/views/wap/article/detail.blade.php b/resources/views/wap/article/detail.blade.php index cceb824..ed41992 100644 --- a/resources/views/wap/article/detail.blade.php +++ b/resources/views/wap/article/detail.blade.php @@ -1,66 +1,34 @@ - -<?php echo $post["title"]; ?>_<?php echo sysconfig('CMS_WEBNAME'); ?> + + + + + + + <?php echo sysconfig('CMS_SEOTITLE'); ?> -

    + + + + +
    + +
    +
    +
    -@include('wap.common.header') -
    - - - - - - - \ No newline at end of file +
    +
    +@include('wap.common.footer') + + + \ No newline at end of file diff --git a/resources/views/wap/common/footer.blade.php b/resources/views/wap/common/footer.blade.php index 797da8a..6e10b3b 100644 --- a/resources/views/wap/common/footer.blade.php +++ b/resources/views/wap/common/footer.blade.php @@ -1 +1,10 @@ -

    \ No newline at end of file + + + \ No newline at end of file diff --git a/resources/views/wap/index/details.blade.php b/resources/views/wap/index/details.blade.php new file mode 100644 index 0000000..50385dd --- /dev/null +++ b/resources/views/wap/index/details.blade.php @@ -0,0 +1,33 @@ + + + + + + + 广州轻未来生物科技有限公司 + + + + +
    + +
    +
    +
    + +
    +
    + + + + \ No newline at end of file diff --git a/resources/views/wap/index/index.blade.php b/resources/views/wap/index/index.blade.php index 8e845a9..68586c3 100644 --- a/resources/views/wap/index/index.blade.php +++ b/resources/views/wap/index/index.blade.php @@ -1,85 +1,252 @@ - -<?php echo sysconfig('CMS_WEBNAME'); ?> - - -

    - -@include('wap.common.header') -
    - - - -
    -

    企业简介

    百度,全球最大的中文搜索引擎、最大的中文网站。2000年1月创立于北京中关村。
    - -
    - - - -

    联系我们

      -
    • 联系人:王经理
    • -
    • 电子邮箱:790238877@qq.com
    • -
    • 联系方式:1528079514210086
    • -
    • 联系方式:0374-599288880374-7333112
    • -
    • 联系地址:北京市海淀区上地十街10号百度大厦
    • -
    • 邮编:100085
    • -
    + + + + + + + + + + <?php echo sysconfig('CMS_SEOTITLE'); ?> + + + +
    +
    + +
    +
    + + $v) { ?> + <?php echo $v['title']; ?> + + + + +
    +
    +
    +

    产品中心

    + PRODUCT + CENTER +
    + + @if($slide_list) + + @foreach($slide_list as $k=>$v) +
    + {{$v['title']}} +

    {{$v['title']}}

    +

    {{$v['description']}}

    +
    + @endforeach +
    + @endif +
    +
    +
    +
    +

    新闻中心

    + PRESS + CENTER +
    + + + +
    +
    + + +
    +
    +
    + +
    +
    + +
    + 公司介绍 + ABOUT US +

    +         + 广州轻未来致力于中国大健康科学产品研发与服务,专注于科学减脂技术,由体脂监测,营养师1对1服务减脂教育以及“低聚肽营养固体饮料”结合的一套体脂管理解决方案。轻未来公司秉持“帮助国民科学管理健康体脂,向行业领导者进军”的理念。 +

    +
    +
    +
    +
    +
    +
    + 企业文化 + CULTURE +

    + 价值观:爱国、诚信、责任、进取、关爱、快乐、感恩
    + 使命:提高健康生命,成就财富梦想
    + 愿景:全力开创“国民大健康+轻创业”的科学体脂管理平台 +

    +
    + +
    +
    + +
    +
    +

    联系方式

    + CONTACT + US +
    + +
    +
    + +
    + +

    商务电话:{{sysconfig("CMS_PHONE")}}

    +
    +
    + +

    广州市白云区云城西路888号3604室

    +
    +
    +
    +
    +
    + @include('wap.common.footer') +
    + + + + + + + -@include('wap.common.footer') - \ No newline at end of file + + + \ No newline at end of file