新增公共详情模块,去除积分赠送功能

This commit is contained in:
devil
2020-06-14 16:04:37 +08:00
parent 400ad10a71
commit d8eb911dde
25 changed files with 685 additions and 907 deletions

View File

@ -78,6 +78,35 @@ class Admin extends Common
return $this->fetch();
}
/**
* 详情
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @datetime 2019-08-05T08:21:54+0800
*/
public function Detail()
{
if(!empty($this->data_request['id']))
{
// 条件
$where = [
['id', '=', intval($this->data_request['id'])],
];
// 获取列表
$data_params = [
'm' => 0,
'n' => 1,
'where' => $where,
];
$ret = AdminService::AdminList($data_params);
$data = (empty($ret['data']) || empty($ret['data'][0])) ? [] : $ret['data'][0];
$this->assign('data', $data);
}
return $this->fetch();
}
/**
* [SaveInfo 管理员添加/编辑页面]
* @author Devil