后台会员级别与会员权益

This commit is contained in:
2026-04-28 16:13:29 +08:00
parent 317016f2a8
commit bdc0ff2399
7 changed files with 83 additions and 106 deletions

View File

@@ -20,7 +20,7 @@ use app\common\controller\Backend;
*/
class Rights extends Backend
{
protected $join_config_model = null;
protected $level_model = null;
public function _initialize()
{
@@ -28,8 +28,10 @@ class Rights extends Backend
$this->model = new \app\admin\model\wdsxh\member\MemberBenefits();
$this->view->assign("statusList", $this->model->getDisabledList());
$this->join_config_model = new \app\admin\model\wdsxh\member\JoinConfig();
$this->view->assign('join_config', $this->join_config_model->getSimpleByStatus());
$this->level_model = new \app\admin\model\wdsxh\member\Level;
$level_id = $this->request->get('level_id');
$level = $this->level_model->get($level_id);
$this->view->assign('join_config_id', $level['join_config_id']);
$this->searchFields = ['title'];
}