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