diff --git a/application/admin/controller/Agreement.php b/application/admin/controller/Agreement.php index 9490ccb36cd0e183e457246c23eb2ea821c11a26..1bea9e1abd46c69c4501f54b7786749c88ba8381 100644 --- a/application/admin/controller/Agreement.php +++ b/application/admin/controller/Agreement.php @@ -57,6 +57,19 @@ class Agreement extends Common // 编辑器文件存放地址 $this->assign('editor_path_type', ResourcesService::EditorPathTypeValue('agreement')); + // 导航数据 + $nav_data = [ + [ + 'name' => '用户注册协议', + 'type' => 'register', + ], + [ + 'name' => '用户隐私政策', + 'type' => 'privacy', + ] + ]; + $this->assign('nav_data', $nav_data); + // 导航/视图 $nav_type = input('nav_type', 'register'); $this->assign('nav_type', $nav_type); diff --git a/application/admin/view/default/agreement/nav.html b/application/admin/view/default/agreement/nav.html index aa74696162b8698ce8d61d4d03f2e83269ff1f0a..5b59026245949c58fba879e054af8b19ad01c5d4 100644 --- a/application/admin/view/default/agreement/nav.html +++ b/application/admin/view/default/agreement/nav.html @@ -1,5 +1,11 @@
前端访问协议地址增加参数 is_content=0 则仅展示纯协议内容
+