diff --git a/res/js/yohood.js b/res/js/yohood.js index e42cc77..0b7f0e7 100644 --- a/res/js/yohood.js +++ b/res/js/yohood.js @@ -753,4 +753,9 @@ define('yohood', function(require, exports) { //图片转换 imgTransform($(".image-box img")); } + //推荐 + exports.recommend = function() { + $(".wrapper").attr("class", ""); + $(".bd").attr("class", ""); + } }); \ No newline at end of file diff --git a/website/controller/Product.class.php b/website/controller/Product.class.php index 68007f0..61eefa1 100644 --- a/website/controller/Product.class.php +++ b/website/controller/Product.class.php @@ -15,7 +15,7 @@ class Controller_Product extends Controller_Abstract */ public function recommendAction() { - $this->_viewname = '../default/other'; + } /** diff --git a/website/view/script/default/indexmobile.php b/website/view/script/default/indexmobile.php index 66ec6ee..96ce90e 100644 --- a/website/view/script/default/indexmobile.php +++ b/website/view/script/default/indexmobile.php @@ -49,7 +49,7 @@ </a> </li> <li> - <a href="/default/other"> + <a href="http://feature.yohobuy.com/0/0/408/index.html"> <div class="channel-pic recmmend"></div> <h2 class="channel-name">RECMMEND</h2> <p class="channel-name-cn">限量推荐</p> diff --git a/website/view/script/product/recommend.php b/website/view/script/product/recommend.php index ccf18c5..d19357e 100644 --- a/website/view/script/product/recommend.php +++ b/website/view/script/product/recommend.php @@ -1,4 +1,79 @@ <?php $this->_extends('layout/default_layout');?> <?php $this->_block('main');?> - <img src="<?php echo SITE_RES.'/images/yohood/recom.jpg';?>" style="margin: 0 auto; width: 100%;"/> +<div class="special-bd"> + <div style="height:103px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_01.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:102px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_02.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:117px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_03.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:134px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_04.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:143px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_05.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:167px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_06.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:116px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_07.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:240px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_08.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:255px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_09.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:128px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_10.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:351px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_11.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:110px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_12.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:312px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_13.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:94px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_14.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:485px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_15.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:406px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_16.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:429px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_17.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:497px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_18.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:479px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_19.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:449px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_20.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:502px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_21.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:513px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_22.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:430px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_23.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:486px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_24.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:224px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_25.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:315px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_26.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:255px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_27.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:450px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_28.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:207px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_29.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:377px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_30.jpg) no-repeat center center; width:100%; margin:0 auto;"> + <div style="width:1000px; margin:0 auto; overflow:hidden;"> + <img border="0" height="377" src="<?php echo SITE_RES?>/images/yohood/special/blank.png" usemap="#Map" width="1000"><map id="Map" name="Map"><area coords="2,15,495,339" href="http://www.yohobuy.com/special_9663_0828NEWHOMEBOY.html" shape="rect" target="_blank"> <area coords="549,21,995,126" href="http://sale.yohobuy.com/?specialsale_id=5&gender=1,3&order=s_t_desc" shape="rect" target="_blank"> <area coords="543,158,997,345" href="http://www.yohobuy.com/special_9667_0828NEWMAPBOY.html" shape="rect" target="_blank"></map></div> + </div> + <div style="height:243px; background:url(<?php echo SITE_RES?>/images/yohood/special/ex_boy_31.jpg) no-repeat center center; width:100%; margin:0 auto;"> + <div style="width:1000px; margin:0 auto; overflow:hidden;"> + <a href="http://www.yohobuy.com/" target="_blank"><img height="243" src="<?php echo SITE_RES?>/images/yohood/special/blank.png" width="1000"></a></div> + </div> +</div> +<?php $this->_endblock();?> +<?php $this->_block('js');?> +<script type="text/javascript"> +seajs.use('yohood',function(yohood) +{ + yohood.recommend(); +}); +</script> <?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/product/recommendmobile.php b/website/view/script/product/recommendmobile.php deleted file mode 100644 index 8f61b8c..0000000 --- a/website/view/script/product/recommendmobile.php +++ /dev/null @@ -1,4 +0,0 @@ -<?php $this->_extends('layout/default_layout_mobile');?> -<?php $this->_block('main');?> - <img src="<?php echo SITE_RES.'/images/yohood/recom.jpg';?>" /> -<?php $this->_endblock();?> \ No newline at end of file