...
|
...
|
@@ -107,7 +107,7 @@ class Index extends Api |
|
|
*/
|
|
|
public function searchGoodsList()
|
|
|
{
|
|
|
$rows = $this->request->request('rows',config('paginate.list_rows'));// 每页条数
|
|
|
$rows = $this->request->request('rows',null);// 每页条数
|
|
|
$page = $this->request->request('page',1);// 页码
|
|
|
$keywords = $this->request->request('keywords','');
|
|
|
$list = Goods::getList(['goods_name'=>['like','%'.$keywords.'%']],$page,$rows);
|
...
|
...
|
@@ -155,7 +155,7 @@ class Index extends Api |
|
|
*/
|
|
|
public function goodsList()
|
|
|
{
|
|
|
$rows = $this->request->request('rows',config('paginate.list_rows'));// 每页条数
|
|
|
$rows = $this->request->request('rows',null);// 每页条数
|
|
|
$page = $this->request->request('page',1);// 页码
|
|
|
$category_id = $this->request->request('category_id');// 分类id
|
|
|
empty($category_id) && $this->error(__('参数不合法!'));
|
...
|
...
|
@@ -185,7 +185,7 @@ class Index extends Api |
|
|
*/
|
|
|
public function memberGoodsList()
|
|
|
{
|
|
|
$rows = $this->request->request('rows',config('paginate.list_rows'));// 每页条数
|
|
|
$rows = $this->request->request('rows',null);// 每页条数
|
|
|
$page = $this->request->request('page',1);// 页码
|
|
|
$list = Goods::getList(['ismember'=>'1'],$page,$rows);
|
|
|
// 返回结果
|
...
|
...
|
@@ -248,7 +248,7 @@ class Index extends Api |
|
|
public function appraiseList()
|
|
|
{
|
|
|
// 商品id
|
|
|
$rows = $this->request->request('rows',config('paginate.list_rows'));
|
|
|
$rows = $this->request->request('rows',null);
|
|
|
$page = $this->request->request('page',1);
|
|
|
$goods_id = $this->request->request('goods_id');
|
|
|
$list = \app\common\model\Appraise::getList(['goods_id'=>$goods_id],$page,$rows);
|
...
|
...
|
|