作者 anyv
1 个管道 的构建 通过 耗费 1 秒

14

... ... @@ -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']);
... ...
... ... @@ -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>
... ...
... ... @@ -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>
... ...