diff --git a/app/portal/controller/IndexController.php b/app/portal/controller/IndexController.php index 1692f79..755f5b2 100644 --- a/app/portal/controller/IndexController.php +++ b/app/portal/controller/IndexController.php @@ -22,7 +22,7 @@ class IndexController extends WeChatBaseController $data_classif= Db::name('classification') -> select(); $this -> assign('data_classif',$data_classif); //热门推荐 - $data_goods_hot = Db::name('goods') -> alias('a') -> field('a.*,b.name') -> join('classification b','a.classify_id = b.id','LEFT') -> where("recommend_hot=1 and type = 1") -> select() -> toArray(); + $data_goods_hot = Db::name('goods') -> alias('a') -> field('a.*,b.name') -> join('classification b','a.classify_id = b.id','LEFT') -> where("a.recommend_hot=1 and a.type = 1 and a.is_out = 1") -> select() -> toArray(); if(!empty($data_goods_hot)){ foreach($data_goods_hot as $key => $val){ $price = explode('.',$data_goods_hot[$key]['price']); diff --git a/public/themes/simpleboot3/portal/index/hot_goods.html b/public/themes/simpleboot3/portal/index/hot_goods.html index 86018c3..fd53917 100755 --- a/public/themes/simpleboot3/portal/index/hot_goods.html +++ b/public/themes/simpleboot3/portal/index/hot_goods.html @@ -26,7 +26,7 @@ <img src="{:cmf_get_image_url($vo.show_img)}" alt=""> </div> <div class="in_hotText"> - <div class="in_hotName txt-cut"><span>{$vo.name}</span>{$vo.book_name}</div> + <div class="in_hotName txt-cut"><span>{$vo.grade}</span>{$vo.book_name}</div> <div class="in_cam_shopPrice"> <div class="in_hotPrice1">¥<span>{$vo.price0}</span>.{$vo.price1}</div> <div class="in_cam_shopY">¥{$vo.pricing}</div> diff --git a/public/themes/simpleboot3/portal/index/index.html b/public/themes/simpleboot3/portal/index/index.html index d619fa1..9fc05a5 100755 --- a/public/themes/simpleboot3/portal/index/index.html +++ b/public/themes/simpleboot3/portal/index/index.html @@ -136,6 +136,12 @@ <img src="__TMPL__/public/assets/images/12.png" alt=""> </div> <div class="in_campusTitle2">热门推荐</div> + <div class="in_campusTitle3"> + 更多 + <a href="{:url('Index/hot_goods')}"> + <img src="__TMPL__/public/assets/images/8.png" alt="" /> + </a> + </div> </div> <!-- 小标题 --> <div class="in_campust2">好货上新,火热开抢!</div>