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.

179 lines
8.9 KiB

8 years ago
7 years ago
8 years ago
7 years ago
8 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
8 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
8 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_WEBNAME'); ?></title><meta name="keywords" content="{dede:field.keywords/}" /><meta name="description" content="{dede:field.description function='html2text(@me)'/}" /><link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/css/style.css"></head><body>
  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. <div class="box hdp" style="margin-top:5px;"><div class="fl"><div id="slideBox"><ul style="left: 0px;" id="show_pic">
  9. <?php if($slide_list){foreach($slide_list as $k=>$v){ ?><li><a href="<?php echo $v['url']; ?>" target="_blank"><img width="740px" height="347px" alt="<?php echo $v['title']; ?>" src="<?php echo $v['pic']; ?>"></a></li><?php }} ?></ul><div id="slideText"></div><ul id="iconBall"><?php if($slide_list){$i=1;foreach($slide_list as $k=>$v){ ?><li><?php echo $i;$i=$i+1; ?></li><?php }} ?></ul>
  10. <ul id="textBall"><?php if($slide_list){foreach($slide_list as $k=>$v){ ?><li><a href="javascript:void(0)"><?php echo $v['title']; ?></a></li><?php }} ?></ul></div>
  11. <div class="iztad"><div class="main-theme">
  12. <?php if($ztad_list){foreach($ztad_list as $k=>$v){ ?><a class="item on" target="_blank" href="<?php echo $v['url']; ?>"><img class="img" src="<?php echo $v['pic']; ?>"></a><?php }} ?>
  13. </div></div></div>
  14. <div class="fr"><img src="images/3.jpg"></div></div>
  15. <style>
  16. .cat-menu-h {padding:8px 0;margin-bottom:10px;background-color: #fff;border-bottom: 1px dotted #ccc;border-top: 1px dotted #ccc;}
  17. .cat-menu-h ul {font-size: 14px;}
  18. .cat-menu-h ul li {float: left;}
  19. .cat-menu-h ul a {display: block;padding: 2px 10px;text-align: center;color: #666;white-space: nowrap;}
  20. .cat-menu-h ul a:hover {background-color: #e61414;color: #fff;}
  21. .cat-menu-h ul a.forecast:hover {background-color: #26a96d;color: #fff;}
  22. .cat-menu-h ul a.forecast {color: #26a96d;}
  23. </style>
  24. <div class="box">
  25. <div class="cat-menu-h">
  26. <ul class="clearfix">
  27. <li><a href="<?php echo route('home_goodslist'); ?>">全部</a></li>
  28. <?php if($goods_type_list){foreach($goods_type_list as $k=>$v){ ?>
  29. <li><a href="<?php echo route('home_goodslist',array('id'=>$v['id'])); ?>"><?php echo $v['name']; ?></a></li><?php }} ?>
  30. <li><a class="forecast" href="<?php echo route('home_goodslist',array('tuijian'=>1)); ?>"> [推荐] </a></li>
  31. </ul>
  32. <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>
  33. <div class="cl"></div></div>
  34. </div>
  35. <style>
  36. .brandul{margin-right:-10px;}
  37. .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;}
  38. .brandul li a{display: block;overflow: hidden;width: 100%;height: 100%;text-decoration: none;}
  39. .brandul li .brand-pic{width: 475px;height: 186px;}
  40. .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;}
  41. .brandul .brand-des em{color:#e61414;}
  42. .brandul .brand-des .fl{margin-left:10px;}
  43. .brandul .brand-des .fr{margin-right:20px;}
  44. </style>
  45. <div class="box" style="margin-bottom:5px;">
  46. <ul class="brandul">
  47. <li>
  48. <a href="http://ju.taobao.com/tg/brand_items.htm?act_sign_id=28794165&amp;seller_id=880734502" target="_blank">
  49. <img class="brand-pic" src="/images/3.jpg">
  50. <div class="brand-des"><span class="fl"></span>
  51. <span class="fr"><em>234100</em>件已付款 &nbsp; <em>仅剩1天</em></span></div></a>
  52. </li>
  53. <li>
  54. <a href="http://ju.taobao.com/tg/brand_items.htm?act_sign_id=28794165&amp;seller_id=880734502" target="_blank">
  55. <img class="brand-pic" src="/images/3.jpg">
  56. <div class="brand-des"><span class="fl"></span>
  57. <span class="fr"><em>234100</em>件已付款 &nbsp; <em>仅剩1天</em></span></div></a>
  58. </li>
  59. <li>
  60. <a href="http://ju.taobao.com/tg/brand_items.htm?act_sign_id=28794165&amp;seller_id=880734502" target="_blank">
  61. <img class="brand-pic" src="/images/3.jpg">
  62. <div class="brand-des"><span class="fl"></span>
  63. <span class="fr"><em>234100</em>件已付款 &nbsp; <em>仅剩1天</em></span></div></a>
  64. </li>
  65. <li>
  66. <a href="http://ju.taobao.com/tg/brand_items.htm?act_sign_id=28794165&amp;seller_id=880734502" target="_blank">
  67. <img class="brand-pic" src="/images/3.jpg">
  68. <div class="brand-des"><span class="fl"></span>
  69. <span class="fr"><em>234100</em>件已付款 &nbsp; <em>仅剩1天</em></span></div></a>
  70. </li>
  71. <li>
  72. <a href="http://ju.taobao.com/tg/brand_items.htm?act_sign_id=28794165&amp;seller_id=880734502" target="_blank">
  73. <img class="brand-pic" src="/images/3.jpg">
  74. <div class="brand-des"><span class="fl"></span>
  75. <span class="fr"><em>234100</em>件已付款 &nbsp; <em>仅剩1天</em></span></div></a>
  76. </li>
  77. </ul>
  78. </div>
  79. <div class="box">
  80. <ul class="pul">
  81. <?php if($goods_list){foreach($goods_list as $k=>$v){ ?>
  82. <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']; ?>">
  83. <p class="title"><?php echo $v['title']; ?></p>
  84. <p class="desc"><span class="price-point"><i></i>库存(<?php echo $v['goods_number']; ?>)</span> <?php echo $v['description']; ?></p>
  85. <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>
  86. <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>
  87. </div></div>
  88. </a></li>
  89. <?php }} ?>
  90. </ul></div>
  91. @include('home.common.footer')
  92. <script>//图片幻灯
  93. var glide =new function(){
  94. function $id(id){return document.getElementById(id);};
  95. this.layerGlide=function(auto,oEventCont,oTxtCont,oSlider,sSingleSize,second,fSpeed,point){
  96. var oSubLi = $id(oEventCont).getElementsByTagName('li');
  97. var oTxtLi = $id(oTxtCont).getElementsByTagName('li');
  98. var interval,timeout,oslideRange;
  99. var time=1;
  100. var speed = fSpeed
  101. var sum = oSubLi.length;
  102. var a=0;
  103. var delay=second * 1000;
  104. var setValLeft=function(s){
  105. return function(){
  106. oslideRange = Math.abs(parseInt($id(oSlider).style[point]));
  107. $id(oSlider).style[point] =-Math.floor(oslideRange+(parseInt(s*sSingleSize) - oslideRange)*speed) +'px';
  108. if(oslideRange==[(sSingleSize * s)]){
  109. clearInterval(interval);
  110. a=s;
  111. }
  112. }
  113. };
  114. var setValRight=function(s){
  115. return function(){
  116. oslideRange = Math.abs(parseInt($id(oSlider).style[point]));
  117. $id(oSlider).style[point] =-Math.ceil(oslideRange+(parseInt(s*sSingleSize) - oslideRange)*speed) +'px';
  118. if(oslideRange==[(sSingleSize * s)]){
  119. clearInterval(interval);
  120. a=s;
  121. }
  122. }
  123. }
  124. function autoGlide(){
  125. for(var c=0;c<sum;c++){oSubLi[c].className='';oTxtLi[c].className='';};
  126. clearTimeout(interval);
  127. if(a==(parseInt(sum)-1)){
  128. for(var c=0;c<sum;c++){oSubLi[c].className='';oTxtLi[c].className='';};
  129. a=0;
  130. oSubLi[a].className="active";
  131. oTxtLi[a].className = "active";
  132. interval = setInterval(setValLeft(a),time);
  133. timeout = setTimeout(autoGlide,delay);
  134. }else{
  135. a++;
  136. oSubLi[a].className="active";
  137. oTxtLi[a].className = "active";
  138. interval = setInterval(setValRight(a),time);
  139. timeout = setTimeout(autoGlide,delay);
  140. }
  141. }
  142. if(auto){timeout = setTimeout(autoGlide,delay);};
  143. for(var i=0;i<sum;i++){
  144. oSubLi[i].onmouseover = (function(i){
  145. return function(){
  146. for(var c=0;c<sum;c++){oSubLi[c].className='';oTxtLi[c].className='';};
  147. clearTimeout(timeout);
  148. clearInterval(interval);
  149. oSubLi[i].className = "active";
  150. oTxtLi[i].className = "active";
  151. if(Math.abs(parseInt($id(oSlider).style[point]))>[(sSingleSize * i)]){
  152. interval = setInterval(setValLeft(i),time);
  153. this.onmouseout=function(){if(auto){timeout = setTimeout(autoGlide,delay);};};
  154. }else if(Math.abs(parseInt($id(oSlider).style[point]))<[(sSingleSize * i)]){
  155. interval = setInterval(setValRight(i),time);
  156. this.onmouseout=function(){if(auto){timeout = setTimeout(autoGlide,delay);};};
  157. }
  158. }
  159. })(i)
  160. }
  161. }
  162. }
  163. //调用语句
  164. glide.layerGlide(
  165. true, //设置是否自动滚动
  166. 'iconBall', //对应索引按钮
  167. 'textBall', //标题内容文本
  168. 'show_pic', //焦点图片容器
  169. 740, //设置滚动图片位移像素
  170. 2, //设置滚动时间2秒
  171. 0.1, //设置过渡滚动速度
  172. 'left' //设置滚动方向“向左”
  173. );</script></body></html>