You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

197 lines
9.6 KiB

8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  2. <title><?php echo sysconfig('CMS_SEOTITLE'); ?></title><meta name="keywords" content="<?php echo sysconfig('CMS_KEYWORDS'); ?>" /><meta name="description" content="<?php echo sysconfig('CMS_DESCRIPTION'); ?>" /><link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/css/style.css"></head><body>
  3. @include('home.common.header')
  4. <style>
  5. .main-theme .item{width: 33.3%;width: 33.3% !important;height:120px;float: left;overflow: hidden;-webkit-transition: width .3s ease;-moz-transition: width .3s ease;-o-transition: width .3s ease;transition: width .3s ease;}
  6. .main-theme .item img{width:100%;height:100%;}
  7. </style>
  8. <!--顶部滚动广告栏-start-->
  9. <?php if ($slide_list) { ?>
  10. <div class="box" style="margin-top:10px;margin-bottom:10px;">
  11. <!-- Swiper -->
  12. <div class="swiper-container">
  13. <div class="swiper-wrapper">
  14. <?php foreach ($slide_list as $k=>$v) { ?>
  15. <div class="swiper-slide"><a href="<?php if($v['url']){echo $v['url'];}else{echo 'javascript:;';} ?>"><img src="<?php echo $v['pic']; ?>" alt="<?php echo $v['title']; ?>"></a></div>
  16. <?php } ?>
  17. </div>
  18. <!-- Add Pagination -->
  19. <div class="swiper-pagination swiper-pagination-white"></div>
  20. </div>
  21. </div>
  22. <?php } ?>
  23. <link rel="stylesheet" href="<?php echo env('APP_URL'); ?>/css/swiper.min.css">
  24. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/swiper.min.js"></script>
  25. <style>
  26. .swiper-container{width:100%;height:auto;}
  27. .swiper-slide{text-align:center;font-size:18px;background:#fff;}
  28. .swiper-slide img{width:100%;height:320px;}
  29. </style>
  30. <script>
  31. //Swiper轮播
  32. var swiper = new Swiper('.swiper-container', {
  33. pagination: '.swiper-pagination',
  34. paginationClickable: true,
  35. autoHeight: true, //enable auto height
  36. slidesPerView: 1,
  37. paginationClickable: true,
  38. spaceBetween: 30,
  39. loop: true,
  40. centeredSlides: true,
  41. autoplay: 3000,
  42. autoplayDisableOnInteraction: false
  43. });
  44. </script>
  45. <!--顶部滚动广告栏-end-->
  46. <!--导航栏-start-->
  47. <style>
  48. .cat-menu-h {padding:8px 0;margin-bottom:10px;background-color: #fff;border-bottom: 1px dotted #ccc;border-top: 1px dotted #ccc;}
  49. .cat-menu-h ul {font-size: 14px;}
  50. .cat-menu-h ul li {float: left;}
  51. .cat-menu-h ul a {display: block;padding: 2px 10px;text-align: center;color: #666;white-space: nowrap;}
  52. .cat-menu-h ul a:hover {background-color: #e61414;color: #fff;}
  53. .cat-menu-h ul a.forecast:hover {background-color: #26a96d;color: #fff;}
  54. .cat-menu-h ul a.forecast {color: #26a96d;}
  55. </style>
  56. <div class="box">
  57. <div class="cat-menu-h">
  58. <ul class="clearfix">
  59. <li><a<?php if(route('home_goodslist') == url()->full()){echo ' class="hover"';} ?> href="<?php echo route('home_goodslist'); ?>">全部</a></li>
  60. <?php if($goodstype_list){foreach($goodstype_list as $k=>$v){ ?>
  61. <li><a<?php if(route('home_goodslist',array('typeid'=>$v['id'])) == url()->full()){echo ' class="hover"';} ?> href="<?php echo route('home_goodslist',array('typeid'=>$v['id'])); ?>"><?php echo $v['name']; ?></a></li><?php }} ?>
  62. <li><a class="forecast" href="<?php echo route('home_goodslist',array('tuijian'=>1)); ?>"> [推荐] </a></li>
  63. </ul>
  64. <form method="get" class="m-sch fr" name="formsearch" action="<?php echo route('home_goodslist'); ?>"><input class="sch-txt" name="keyword" type="text" value="搜索 按Enter键" onfocus="if(value=='搜索 按Enter键') {value=''}" onblur="if(value=='') {value='搜索 按Enter键'}"></form>
  65. <div class="cl"></div></div>
  66. </div>
  67. <!--导航栏-end-->
  68. <style>
  69. .brandul{margin-right:-10px;}
  70. .brandul li{margin: 0 10px 10px 0;-webkit-box-shadow: 0 1px 0 rgba(0,0,0,.1);-moz-box-shadow: 0 1px 0 rgba(0,0,0,.1);box-shadow: 0 1px 0 rgba(0,0,0,.1);float: left;}
  71. .brandul li a{display: block;overflow: hidden;width: 100%;height: 100%;text-decoration: none;}
  72. .brandul li .brand-pic{width: 475px;height: 186px;}
  73. .brandul .brand-des{vertical-align: top;line-height: 26px;height: 26px;padding-left: 10px;border-left: 1px solid #F3F3F3;border-right: 1px solid #F3F3F3;color: #000;}
  74. .brandul .brand-des em{color:#e61414;}
  75. .brandul .brand-des .fl{margin-left:10px;}
  76. .brandul .brand-des .fr{margin-right:20px;}
  77. </style>
  78. <div class="box" style="margin-bottom:5px;"><ul class="brandul">
  79. <li>
  80. <a href="" target="_blank">
  81. <img class="brand-pic" src="/images/3.jpg">
  82. <div class="brand-des"><span class="fl"></span>
  83. <span class="fr"><em>234100</em>件已付款 &nbsp; <em>仅剩1天</em></span></div></a>
  84. </li>
  85. <li>
  86. <a href="" target="_blank">
  87. <img class="brand-pic" src="/images/3.jpg">
  88. <div class="brand-des"><span class="fl"></span>
  89. <span class="fr"><em>234100</em>件已付款 &nbsp; <em>仅剩1天</em></span></div></a>
  90. </li>
  91. </ul></div>
  92. <style>
  93. .index-tit span a{font-size:14px;color:#666;font-weight:400;}
  94. .index-tit .spilt{margin:0 12px;font-size:14px;font-weight:400;}
  95. </style>
  96. <div class="box">
  97. <p class="index-tit" style="font-weight:bold;font-size:28px;color:#333;margin-top:30px;margin-bottom:20px;">编辑推荐<small style="margin-left:20px;font-size:14px;color:#666;font-weight:400;">工厂直达消费者,剔除品牌溢价</small><span style="float:right;"><a href="">夏凉</a><b class="spilt">/</b><a href="">夏凉</a><b class="spilt">/</b><a href="">夏凉</a><b class="spilt">/</b><a href="">夏凉</a><b class="spilt">/</b><a href="">夏凉</a><b class="spilt">/</b><a href="">夏凉</a><a style="margin-left:20px;" href="">查看更多 ></a></span></p>
  98. <ul class="pul">
  99. <?php if($tjlist){foreach($tjlist as $k=>$v){ ?>
  100. <li><a href="<?php echo route('home_goods',array('id'=>$v['id'])); ?>" target="_blank"><img src="<?php echo $v['litpic']; ?>" alt="<?php echo $v['title']; ?>">
  101. <p class="title"><?php echo $v['title']; ?></p>
  102. <p class="desc"><span class="price-point"><i></i>库存(<?php echo $v['goods_number']; ?>)</span> <?php echo $v['description']; ?></p>
  103. <div class="item-prices red"><div class="item-link">立即<br>抢购</div><div class="item-info"><div class="price"><i>¥</i><em class="J_actPrice"><span class="yen"><?php echo ceil($v['price']); ?></span></em></div>
  104. <div class="dock"><div class="dock-price"><del class="orig-price">¥<?php echo $v['market_price']; ?></del> <span class="benefit">包邮</span></div><div class="prompt"><div class="sold-num"><em><?php echo $v['sale']; ?></em> 件已付款</div></div></div>
  105. </div></div>
  106. </a></li>
  107. <?php }} ?>
  108. </ul></div>
  109. <div class="box">
  110. <p style="font-weight:bold;font-size:28px;color:#333;margin-top:30px;margin-bottom:20px;">热门商品</p>
  111. <ul class="pul" id="goods_list">
  112. <?php if($list){foreach($list as $k=>$v){ ?>
  113. <li><a href="<?php echo route('home_goods',array('id'=>$v['id'])); ?>" target="_blank"><img src="<?php echo $v['litpic']; ?>" alt="<?php echo $v['title']; ?>">
  114. <p class="title"><?php echo $v['title']; ?></p>
  115. <p class="desc"><span class="price-point"><i></i>库存(<?php echo $v['goods_number']; ?>)</span> <?php echo $v['description']; ?></p>
  116. <div class="item-prices red"><div class="item-link">立即<br>抢购</div><div class="item-info"><div class="price"><i>¥</i><em class="J_actPrice"><span class="yen"><?php echo ceil($v['price']); ?></span></em></div>
  117. <div class="dock"><div class="dock-price"><del class="orig-price">¥<?php echo $v['market_price']; ?></del> <span class="benefit">包邮</span></div><div class="prompt"><div class="sold-num"><em><?php echo $v['sale']; ?></em> 件已付款</div></div></div>
  118. </div></div>
  119. </a></li>
  120. <?php }} ?>
  121. </ul></div>
  122. <div class="box nomore" style="text-align:center;line-height:46px;font-size:18px;color:#999;margin-bottom:10px;display:none;">没有更多数据了</div>
  123. <script>
  124. $(function(){
  125. var ajaxload = false;
  126. var maxpage = false;
  127. var startpage = 1;
  128. var totalpage = <?php echo $totalpage; ?>;
  129. var tmp_url = window.location.href;
  130. msg = tmp_url.split("#");
  131. tmp_url = msg[0];
  132. $(window).scroll(function ()
  133. {
  134. var listheight = $("#goods_list").outerHeight();
  135. if ($(document).scrollTop() + $(window).height() >= listheight)
  136. {
  137. if(startpage >= totalpage)
  138. {
  139. //$("#submit_bt_one").html("已是最后一页,没有更多数据!");
  140. $(".nomore").show();
  141. return false;
  142. }
  143. if(!ajaxload && !maxpage)
  144. {
  145. ajaxload = true;
  146. //$("#submit_bt_one").html("努力加载中...");
  147. var url = tmp_url;
  148. var nextpage = startpage+1;
  149. $.get(url,{page_ajax:1,page:nextpage},function(res)
  150. {
  151. if(res)
  152. {
  153. $("#goods_list").append(res);
  154. startpage++;
  155. if(startpage >= totalpage)
  156. {
  157. maxpage = true;
  158. $(".nomore").show();
  159. //$("#submit_bt_one").html("已是最后一页,没有更多数据!");
  160. }
  161. else
  162. {
  163. //$("#submit_bt_one").html("点击加载更多");
  164. }
  165. ajaxload = false;
  166. }
  167. else
  168. {
  169. //$("#submit_bt_one").html("请求失败,请稍候再试!");
  170. ajaxload = false;
  171. }
  172. },'json');
  173. }
  174. }
  175. });
  176. });
  177. </script>
  178. <script>
  179. console.log("Github地址:https://github.com/Fanli2012/lqycms\nEmail:374861669@qq.com");
  180. </script>
  181. @include('home.common.footer')
  182. </body></html>