作者 何书鹏
1 个管道 的构建 通过 耗费 31 秒

服务协议和隐私协议

... ... @@ -48,7 +48,29 @@ class Index extends Frontend
{
$content = db('mobile_config')->where('id',1)->value('agreement');
$this->assign('content',$content);
return $this->view->fetch();
$this->assign('title','隐私保护协议');
return $this->view->fetch('agreement');
}
/**
* 服务协议
*/
public function userAgreement()
{
$content = db('mobile_config')->where('id',1)->value('user_agreement');
$this->assign('content',$content);
$this->assign('title','服务协议');
return $this->view->fetch('agreement');
}
/**
* 隐私协议
*/
public function privacyAgreement()
{
$content = db('mobile_config')->where('id',1)->value('privacy_agreement');
$this->assign('content',$content);
$this->assign('title','隐私协议');
return $this->view->fetch('agreement');
}
}
... ...
<html lang="en">
<head>
<meta charset="UTF-8">
<title>隐私保护协议</title>
<title>{$title}</title>
<style>
.dialog-content{ background-color: #fff; padding:50px 25px; }
.dialog-content h1 {
... ...