Bladeren bron

添加儿童隐私协议接口

wangxy 2 weken geleden
bovenliggende
commit
7bb29e10cf

+ 1 - 0
fs-service/src/main/java/com/fs/his/config/AgreementConfig.java

@@ -13,4 +13,5 @@ public class AgreementConfig implements Serializable {
     String vipAutomaticService;
     String userRemoveService;
     String orderConfirm;
+    String childrenPrivacy;
 }

+ 11 - 0
fs-user-app/src/main/java/com/fs/app/controller/H5Controller.java

@@ -43,6 +43,17 @@ public class H5Controller
         return mv;
     }
 
+    @GetMapping("/childrenPrivacy")
+    public ModelAndView childrenPrivacy( )
+    {
+        String json=configService.selectConfigByKey("his.agreementConfig");
+        AgreementConfig config= JSONUtil.toBean(json, AgreementConfig.class);
+        ModelAndView mv=new ModelAndView();
+        mv.addObject("childrenPrivacy", config.getChildrenPrivacy());
+        mv.setViewName("childrenPrivacy");
+        return mv;
+    }
+
     @GetMapping("/healthCustomerService")
     public ModelAndView healthCustomerService( )
     {

+ 21 - 0
fs-user-app/src/main/resources/templates/childrenPrivacy.html

@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:th="http://www.thymeleaf.org">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+    <title >儿童隐私政策</title>
+    <link  rel="stylesheet"/>
+    <style>
+        body{
+            background-color:#F8F8F8;
+        }
+    </style>
+<body>
+<div th:utext="${childrenPrivacy}" ></div>
+<script th:inline="javascript">
+
+</script>
+
+</body>
+</html>