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(); } }