作者 jinglong
1 个管道 的构建 通过 耗费 1 秒

增加登录使用说明

... ... @@ -684,6 +684,7 @@ class PersonController extends RestBaseController
* @return service_mobile:联系客服
* @return explain_url:使用说明url
* @return introduce_url:平台介绍url
* @return manual_url:登录页使用说明url
*
*/
public function getServiceMobile(){
... ... @@ -691,6 +692,7 @@ class PersonController extends RestBaseController
$res = $this->getAboutUs('service_mobile');
$res['explain_url'] = 'http://xiaofang.w.bronet.cn/explain.html';
$res['introduce_url'] = 'http://xiaofang.w.bronet.cn/introduce.html';
$res['manual_url'] = 'http://xiaofang.w.bronet.cn/manual.html';
$this->success('成功',$res);
}else{
$this->error('请求方式错误!');
... ... @@ -721,6 +723,18 @@ class PersonController extends RestBaseController
}
}
//获取登录页使用说明
public function getManual(){
if($this->request->isGet()){
$res = $this->getAboutUs('manual');
$contentModel = new PortalPostModel();
$res['manual'] = $contentModel->getPostContentAttr($res['manual']);
$this->success('成功',$res);
}else{
$this->error('请求方式错误!');
}
}
private function getAboutUs($field){
$res = Db::name('about_us')
->where('id',1)
... ...
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
</body>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script>
$(function(){
$.ajax({
type: 'GET',
url: "/api/admin/person/getManual",
data: {
'is_token':1
},
dataType: 'json',
success: function(data) {
$('body').append(data.data['manual']);
}
});
});
</script>
</html>
\ No newline at end of file
... ...