53 lines
1.6 KiB
PHP
Executable File
53 lines
1.6 KiB
PHP
Executable File
<?php
|
||
// +----------------------------------------------------------------------
|
||
// | 麦沃德科技赋能开发者,助力商协会发展
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2017~2024 www.wdsxh.cn All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | 沃德商协会系统并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
|
||
// +----------------------------------------------------------------------
|
||
// | Author: MY WORLD Team <bd@maiwd.cn> www.maiwd.cn
|
||
// +----------------------------------------------------------------------
|
||
|
||
namespace app\admin\controller\wdsxh\member;
|
||
|
||
use app\common\controller\Backend;
|
||
|
||
/**
|
||
* 会员列表
|
||
*
|
||
* @icon fa fa-circle-o
|
||
*/
|
||
class Rights extends Backend
|
||
{
|
||
public function _initialize()
|
||
{
|
||
parent::_initialize();
|
||
$this->model = new \app\admin\model\wdsxh\member\MemberBenefits();
|
||
$this->view->assign("statusList", $this->model->getDisabledList());
|
||
}
|
||
|
||
|
||
|
||
/**
|
||
* 列表
|
||
*
|
||
* @param type $param
|
||
* @return type
|
||
*/
|
||
public function index()
|
||
{
|
||
if ($this->request->isAjax()) {
|
||
[$where, $sort, $order, $offset, $limit] = $this->buildparams();
|
||
$list = $this->model
|
||
->where($where)
|
||
->order($sort, $order)
|
||
->paginate($limit);
|
||
$result = ['total' => $list->total(), 'rows' => $list->items()];
|
||
return json($result);
|
||
}
|
||
|
||
return $this->view->fetch();
|
||
}
|
||
}
|