...
|
...
|
@@ -26,7 +26,7 @@ class ActiveController extends WeChatBaseController |
|
|
public function active(){
|
|
|
$banner=Db::name('active')->where('is_top',1)->field('thumbnail,id')->select();
|
|
|
$this->assign('banner',$banner);
|
|
|
$data=Db::name('active')->where(['status'=>1,'category_id'=>1])->select();
|
|
|
$data=Db::name('active')->where(['status'=>1,'category_id'=>1])->order('is_top','desc')->select();
|
|
|
$this->assign('list',$data);
|
|
|
return $this->fetch();
|
|
|
}
|
...
|
...
|
|