'query' => Request::instance()->param(),//不丢失已存在的url参数
]);
$count = DB::name('temp')->where($type_param)->where($trade_param)->where($color_param)->where($keyword_param)->where('status',1)->count();
}else if(input('param.order') == 'tui'){
$res = DB::name('temp')->where($type_param)->where($trade_param)->where($color_param)->where($keyword_param)->where('tui',1)->order('orderid desc')->where('status',1)->paginate($page, false, [
'query' => Request::instance()->param(),//不丢失已存在的url参数
]);
$count = DB::name('temp')->where($type_param)->where($trade_param)->where($color_param)->where($keyword_param)->where('tui',1)->where('status',1)->count();
}
$page = $res->render();
$this->assign('page', $page);
$this->assign('res', $res);
$this->assign('count', $count);
//浏览过的 模板
$guotime = time()- 60*60*24;
$browse = DB::name('browse')
->alias('b')
->join('__TEMP__ t','b.temp_id = t.id','LEFT')