Shanks 7 năm trước cách đây
mục cha
commit
83f53ce3b7

+ 5 - 0
pom.xml

@@ -90,6 +90,11 @@
 			<artifactId>commons-io</artifactId>
 			<version>1.3.2</version>
 		</dependency>
+		<dependency>
+			<groupId>net.sourceforge.nekohtml</groupId>
+			<artifactId>nekohtml</artifactId>
+			<version>1.9.22</version>
+		</dependency>
 	</dependencies>
 
 	<build>

+ 97 - 32
src/main/java/com/ygj/yuemum/controller/admin/ImageUploadController.java

@@ -1,68 +1,64 @@
 package com.ygj.yuemum.controller.admin;
 
+import com.alibaba.fastjson.JSONObject;
 import com.ygj.yuemum.domain.admin.Photo;
+import com.ygj.yuemum.domain.maternitymatron.JlServiceUser;
 import com.ygj.yuemum.service.admin.PhotoService;
+import com.ygj.yuemum.service.maternitymatron.JlServiceUserService;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Controller;
-import org.springframework.util.ClassUtils;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.core.io.ResourceLoader;
+import org.springframework.util.ResourceUtils;
+import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
-import java.io.File;
-import java.io.IOException;
+import java.io.*;
 import java.text.DateFormat;
+import java.text.ParseException;
 import java.text.SimpleDateFormat;
 import java.util.Date;
+import java.util.List;
 
 
-@Controller
+@RestController
 public class ImageUploadController {
     @Autowired
     private PhotoService photoService;
+    @Autowired
+    private JlServiceUserService jlServiceUserService;
+    private ResourceLoader resourceLoader;
+    public static final String ROOT = "D:/apache-tomcat-9.0.6/webapps/resume/img/";
+    public static final String ResumeFile = "D:/apache-tomcat-9.0.6/webapps/resume/";
+    public static final String httpRoot = "http://localhost:8080/resume/img/";
 
     @RequestMapping(value = "/upload", method = RequestMethod.GET)
     public String upload() {
         return "/fileupload";
     }
 
-    @RequestMapping(value = "/uploadDisplay", method = RequestMethod.POST)
+    @RequestMapping(value = "/uploadImg", method = RequestMethod.POST)
     @ResponseBody
-    public int uploadDisplay(@RequestParam("file") MultipartFile file,int id,int type) {
-//        照片类型 1:display 2:certificate 3:comment 4:service
+    public int uploadImg(@RequestParam("file") MultipartFile file,
+                         @RequestParam(value = "id") Integer id,
+                         @RequestParam(value = "type") Integer type) {
+//       照片类型 1:display 2:certificate 3:comment 4:service
         String folder = "";
-        switch (type) {
-            case 1:
-                folder = "display";
-                break;
-            case 2:
-                folder = "certificate";
-                break;
-            case 3:
-                folder = "comment";
-                break;
-            case 4:
-                folder = "service";
-                break;
-
-        }
         int dot = file.getOriginalFilename().lastIndexOf('.');
-        String newname = file.getOriginalFilename().substring(dot);
+        String newName = file.getOriginalFilename().substring(dot);
+        String path = ROOT + getpathtype(type) + "Img";
         Photo photo = new Photo();
-        if(file.isEmpty()){
+        if (file.isEmpty()) {
             return 0;
         }
         Date date = new Date();
         DateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
-        String path = ClassUtils.getDefaultClassLoader().getResource("").getPath()+"/src/main/resources/static/img/"+folder+"Img" ;
-        File dest = new File(path + "/"+folder+id+type+sdf.format(date)+newname);
+        File dest = new File(path + "/" + getpathtype(type) + id + type + sdf.format(date) + newName);
+
         try {
             file.transferTo(dest); //保存文件
             photo.setServant_code(id);
             photo.setPhoto_type(type);
-            photo.setPhoto_path(dest.getAbsolutePath());
+            photo.setPhoto_name(getpathtype(type) + id + type + sdf.format(date) + newName);
+            photo.setPhoto_path(httpRoot+ getpathtype(type) + "Img/"+dest.getName());
             photoService.addPhoto(photo);
             return 1;
         } catch (IllegalStateException e) {
@@ -76,4 +72,73 @@ public class ImageUploadController {
         }
     }
 
+    @PostMapping("/deletePhoto")
+    public int deletePhoto(@ModelAttribute Photo photo) throws ParseException {
+        try {
+            String path = ROOT+ getpathtype(photo.getPhoto_type()) +"Img/"+ photo.getPhoto_name();
+            File dest = new File(path);
+            dest.delete();
+            return photoService.deletePhoto(photo);
+        } catch (Exception ex){
+            ex.printStackTrace();
+            return 0;
+        }
+    }
+    @PostMapping("/queryPhoto")
+    public String queryPhoto(@ModelAttribute Photo photo) throws ParseException {
+        List<Photo> photos= photoService.queryPhoto(photo);
+        String jso = JSONObject.toJSONString(photos);
+        jso = jso.replaceAll("photo_path","url");
+        jso = jso.replaceAll("servant_code","name");
+        return jso;
+    }
+    @PostMapping("/createResume")
+    public int createResume(@ModelAttribute Photo photo) {
+        try {
+            JlServiceUser jlServiceUser  = jlServiceUserService.getResume(photo.getServant_code());
+            File file = ResourceUtils.getFile("classpath:resume/resume.html");
+            BufferedReader br = new BufferedReader(new FileReader(file));
+            StringBuilder stringHtml = new StringBuilder();
+            String str = "";
+            while((str = br.readLine())!=null){
+                str = str.replace("$name",jlServiceUser.getTruename());
+                str = str.replace("$np",jlServiceUser.getNp()+"人");
+                str = str.replace("$age",jlServiceUser.getAge());
+                str = str.replace("$ethnicgroup",jlServiceUser.getEthnicgroup());
+                str = str.replace("$constellation",jlServiceUser.getConstellation());
+                str = str.replace("$seniority",jlServiceUser.getSeniority());
+                str = str.replace("$babynumber",jlServiceUser.getBabynumber());
+                str = str.replace("$education",jlServiceUser.getEducation());
+                str = str.replace("$weight",jlServiceUser.getWeight());
+                str = str.replace("$marriage",jlServiceUser.getMarriage());
+                str = str.replace("$highlight",jlServiceUser.getHighlight());
+                str = str.replace("$resumecomment",photo.getComment());
+                str = str.replace("$zodiac",jlServiceUser.getZodiac());
+                str = str.replace("$height",jlServiceUser.getHeight());
+                str = str.replace("$starts",jlServiceUser.getGender());
+                stringHtml.append(str+"\r\n");
+            }
+            File newResume = new File(ResumeFile + photo.getServant_code() + ".html");
+            FileWriter fileWriter = new FileWriter(newResume);
+            fileWriter.write(stringHtml.toString());
+            fileWriter.close();
+        } catch (Exception ex){
+            ex.printStackTrace();
+            return 0;
+        }
+        return 1;
+    }
+    public String getpathtype(int type){
+        switch (type) {
+            case 1:
+               return "display";
+            case 2:
+                return "certificate";
+            case 3:
+                return  "comment";
+            case 4:
+                return "service";
+        }
+        return "error";
+    }
 }

+ 2 - 2
src/main/java/com/ygj/yuemum/controller/admin/PhotoController.java

@@ -25,8 +25,8 @@ public class PhotoController {
     }
 
     @GetMapping("/deletePhoto/{id}")
-    public int delete(@PathVariable("id") Integer id) {
-        return photoService.deletePhoto(id);
+    public int delete(@ModelAttribute Photo photo) {
+        return photoService.deletePhoto(photo);
     }
 
     @PostMapping("/updatePhoto")

+ 0 - 1
src/main/java/com/ygj/yuemum/controller/maternitymatron/JlServiceUserController.java

@@ -17,7 +17,6 @@ import java.util.Map;
 
 @RestController
 public class JlServiceUserController {
-
     @Autowired
     private JlServiceUserService jlServiceUserService;
     @Autowired

+ 4 - 2
src/main/java/com/ygj/yuemum/dao/admin/PhotoDao.java

@@ -16,10 +16,10 @@ public interface PhotoDao {
 
     /**
      * 根据id删除某个照片信息
-     * @param id
+     * @param
      * @return
      */
-    int deleteByPrimaryKey(Integer id);
+    int deletePhoto(Photo record);
 
     /**
      * 插入一条用照片息
@@ -28,6 +28,8 @@ public interface PhotoDao {
      */
     int insertSelective(Photo record);
 
+    List<Photo> queryPhoto(Photo record);
+    String selectDisplay(Photo record);
     /**
      * 根据id查找某个照片信息
      * @param id

+ 2 - 0
src/main/java/com/ygj/yuemum/dao/maternitymatron/JlServiceUserDao.java

@@ -18,6 +18,8 @@ public interface JlServiceUserDao {
 
     List<JlServiceUser> getMMList();
 
+    JlServiceUser getResume(Integer id);
+
     List<QueryServiceUser> queryMMList(QueryServiceUser record);
 
     List<JlServiceUser> queryServiceUserStock();

+ 15 - 2
src/main/java/com/ygj/yuemum/domain/admin/Photo.java

@@ -7,10 +7,23 @@ public class Photo {
     private Integer resume_code;
     private String photo_path; // 照片名称
     private Integer servant_code;
+    private String photo_name;
+    private String comment;
 
+    public String getComment() {
+        return comment;
+    }
+
+    public void setComment(String comment) {
+        this.comment = comment;
+    }
+
+    public String getPhoto_name() {
+        return photo_name;
+    }
 
-    public Photo() {
-        super();
+    public void setPhoto_name(String photo_name) {
+        this.photo_name = photo_name;
     }
 
     public Integer getServant_code() {

+ 11 - 2
src/main/java/com/ygj/yuemum/service/admin/PhotoService.java

@@ -23,10 +23,19 @@ public class PhotoService {
         return photoDao.insertSelective(photo);
     }
 
-    public int deletePhoto(Integer id) {
-        return photoDao.deleteByPrimaryKey(id);
+    public String selectDisplay(Photo photo) {
+        return photoDao.selectDisplay(photo);
     }
 
+    public int deletePhoto(Photo photo) {
+        return photoDao.deletePhoto(photo);
+    }
+
+    public List<Photo> queryPhoto(Photo photo) {
+        return photoDao.queryPhoto(photo);
+    }
+
+
     public int updatePhoto(Photo photo) {
         return photoDao.updateByPrimaryKeySelective(photo);
     }

+ 3 - 0
src/main/java/com/ygj/yuemum/service/maternitymatron/JlServiceUserService.java

@@ -110,6 +110,9 @@ public class JlServiceUserService {
         return tableData;
     }
 
+    public JlServiceUser getResume(Integer id) {
+        return jlServiceUserDao.getResume(id);
+    }
 
     public int getPMId() {
         return jlServiceUserDao.getpmid();

+ 3 - 1
src/main/resources/application.yml

@@ -12,7 +12,9 @@ spring:
     username: jielin
     password: jielin123
   thymeleaf:
-      prefix: classpath:/template/
+    mode: LEGACYHTML5
+    prefix: classpath:/templates
+
 # 分页配置
 pagehelper:
   helper-dialect: mysql

+ 49 - 6
src/main/resources/mybatis/mapper/admin/PhotoMapper.xml

@@ -8,10 +8,12 @@
         <result column="resume_code" property="resume_code" jdbcType="INTEGER" />
         <result column="servant_code" property="servant_code" jdbcType="VARCHAR" />
         <result column="photo_path" property="photo_path" jdbcType="VARCHAR" />
+        <result column="photo_name" property="photo_name" jdbcType="VARCHAR" />
+        <result column="comment" property="comment" jdbcType="VARCHAR" />
     </resultMap>
 
     <sql id="Base_Column_List" >
-        id, photo_type, resume_code,photo_path,servant_code
+        id, photo_type, resume_code,photo_path,servant_code,photo_name,comment
     </sql>
 
     <!-- 得到所有的照片信息 -->
@@ -21,6 +23,19 @@
         from mm_info_photo
     </select>
 
+    <select id="queryPhoto" resultMap="BaseResultMap" parameterType="com.ygj.yuemum.domain.admin.Photo">
+        select
+        photo_name,photo_path
+        from mm_info_photo
+        where 1=1
+        <if test="photo_type != null and photo_type !=''">
+            and photo_type = #{photo_type,jdbcType=VARCHAR}
+        </if>
+        <if test="servant_code != null and servant_code !=''">
+            and servant_code = #{servant_code,jdbcType=VARCHAR}
+        </if>
+    </select>
+
     <!-- 根据id查找某个照片信息 -->
     <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
         select
@@ -28,10 +43,29 @@
         from mm_info_photo
         where resume_code = #{resume_code,jdbcType=INTEGER}
     </select>
+
+    <select id="selectDisplay" resultType="java.lang.String" parameterType="com.ygj.yuemum.domain.admin.Photo" >
+        select
+        photo_name
+        from mm_info_photo
+        where 1=1
+        <if test="servant_code != null and servant_code !=''">
+          and servant_code = #{servant_code,jdbcType=INTEGER}
+        </if>
+        <if test="photo_type != null and photo_type !=''">
+          and photo_type = #{photo_type,jdbcType=INTEGER}
+        </if>
+    </select>
     <!-- 根据id删除某个照片信息 -->
-    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    <delete id="deletePhoto" parameterType="com.ygj.yuemum.domain.admin.Photo">
         delete from mm_info_photo
-        where id = #{id,jdbcType=INTEGER}
+        where 1 = 1
+        <if test="photo_name != null and photo_name !=''">
+            and photo_name = #{photo_name,jdbcType=VARCHAR}
+        </if>
+        <if test="servant_code != null and servant_code !=''">
+            and servant_code = #{servant_code,jdbcType=VARCHAR}
+        </if>
     </delete>
 
     <!-- 插入一条照片信息 -->
@@ -48,7 +82,10 @@
                 photo_path,
             </if>
             <if test="servant_code != null" >
-                servant_code
+                servant_code,
+            </if>
+            <if test="photo_name != null" >
+                photo_name
             </if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides="," >
@@ -62,7 +99,10 @@
                 #{photo_path,jdbcType=VARCHAR},
             </if>
             <if test="servant_code != null" >
-                #{servant_code,jdbcType=VARCHAR}
+                #{servant_code,jdbcType=VARCHAR},
+            </if>
+            <if test="photo_name != null" >
+                #{photo_name,jdbcType=VARCHAR}
             </if>
         </trim>
     </insert>
@@ -81,7 +121,10 @@
                 photo_path = #{photo_path,jdbcType=VARCHAR},
             </if>
             <if test="servant_code != null" >
-                servant_code = #{servant_code,jdbcType=VARCHAR}
+                servant_code = #{servant_code,jdbcType=VARCHAR},
+            </if>
+            <if test="photo_name != null" >
+                photo_name = #{photo_name,jdbcType=VARCHAR}
             </if>
         </set>
         where id = #{id,jdbcType=INTEGER}

+ 29 - 1
src/main/resources/mybatis/mapper/maternitymatron/JlServiceUserMapper.xml

@@ -261,6 +261,34 @@
         order by id
     </select>
 
+    <select id="getResume" resultMap="queryStockResultMap" parameterType="java.lang.Integer" >
+        select
+        jl_service_user.id,
+        jl_service_user.truename,
+        fgetconstellationname(jl_service_user_info.constellation) constellation,
+        year(CURDATE())-substring(jl_service_user_info.idcard,7,4) age,
+        fgetzodiacname(jl_service_user_info.zodiac) zodiac,
+        fgetcityname(CONCAT(substring(jl_service_user_info.idcard,1,4),'00')) np,
+        city.cityname,
+        jl_service_user_info.seniority,
+        jl_service_user_info.gender,
+        jl_service_user_info.babynumber,
+        fgetethnicgroupname(jl_service_user_info.ethnicgroup) ethnicgroup,
+        CASE jl_service_user_info.education WHEN '1' THEN '初中' WHEN '2' THEN '高中' WHEN '3' THEN '大专' WHEN '4' THEN '大本' WHEN '5' THEN '硕士' ELSE 'NAN' END as education,
+        jl_service_user_info.height,
+        CASE jl_service_user_info.marriage WHEN 'Y' THEN '已婚' WHEN 'N' THEN '未婚' ELSE 'NAN' END AS marriage ,
+        jl_service_user_info.highlight,
+        jl_service_user_info.weight
+        from jl_service_user
+        LEFT JOIN jl_service_user_info on jl_service_user.id = jl_service_user_info.id
+        LEFT JOIN (select service_id,GROUP_CONCAT(jl_region.`name`) cityname,GROUP_CONCAT(store_id) citycode from jl_store_service LEFT JOIN jl_region
+        on jl_store_service.store_id = jl_region.`code` group by service_id) as
+        city ON jl_service_user.id = city.service_id
+        where
+        jl_service_user.id = #{id,jdbcType=INTEGER}
+    </select>
+
+
     <select id="queryServiceUserStockCondition" resultMap="queryStockResultMap" parameterType="com.ygj.yuemum.domain.maternitymatron.QueryServiceUser">
         select
         jl_service_user.id,
@@ -293,7 +321,7 @@
             and jl_service_user.id not in ( #{ids,jdbcType=INTEGER} )
         </if>
         <if test="id != null ">
-            and jl_service_user.id = ( #{id,jdbcType=INTEGER} )
+            and jl_service_user.id =  #{id,jdbcType=INTEGER}
         </if>
         <if test="truename != null ">
             and jl_service_user.truename like "%"#{truename,jdbcType=VARCHAR}"%"

+ 302 - 0
src/main/resources/resume/resume.html

@@ -0,0 +1,302 @@
+<!doctype html>
+<html class="no-js" lang="">
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="x-ua-compatible" content="ie=edge">
+    <title>月嫂简历</title>
+    <meta name="description" content="">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+
+    <link rel="manifest" href="site.webmanifest">
+    <link rel="apple-touch-icon" href="icon.png">
+    <link rel="stylesheet" href="http://libs.baidu.com/bootstrap/3.2.0/css/bootstrap.min.css">
+    <link rel="stylesheet" href="css/main.css">
+    <link rel="stylesheet" href="css/resume.css">
+
+</head>
+<body>
+<div class="resume-body">
+    <!--头部icon-->
+    <div class="resume-header">
+        <image class="resume-header-image" id="header-nav-image"></image>
+    </div>
+    <!--头部响应信息-->
+    <div class="resume-header-info">
+        <div class="resume-header-left">
+            <image class="resume-header-left-image" src="img/header.jpg"></image>
+            <p class="resume-name">$name</p>
+            <image id="resume-header-starts" class="resume-header-left-comment-image" src=""></image>
+        </div>
+
+        <div class="resume-header-right">
+
+            <div class="resume-header-right-topinfo">
+                <div class="containers">
+                    <div class="one"><span class="containers-items one-span">$np</span></div>
+                    <div class="two"><span class="containers-items two-span">$age</span></div>
+                    <div class="three"><span class="containers-items three-span">$ethnicgroup</span></div>
+                    <div class="four"><span class="containers-items four-span">$zodiac</span></div>
+                    <div class="five"><span class="containers-items five-span">$constellation</span></div>
+                </div>
+            </div>
+            <div class="resume-header-right-middleinfo">
+                <div class="containers-middle">
+                    <div class="one-middle">
+                        <div class="middle-item">
+                            <span class="middle-item-title">经验:</span><span class="middle-item-content">$seniority</span>
+                        </div>
+                        <div class="middle-item">
+                            <span class="middle-item-title">用户:</span><span class="middle-item-content">$babynumber</span>
+                        </div>
+                        <div class="middle-item">
+                            <span class="middle-item-title">学历:</span><span class="middle-item-content">$education</span>
+                        </div>
+                    </div>
+                    <div class="two-middle">
+                        <div class="middle-item">
+                            <span class="middle-item-title shengao">身高:</span><span
+                            class="middle-item-content">$height</span>
+                        </div>
+                        <div class="middle-item">
+                            <span class="middle-item-title">体重:</span><span class="middle-item-content">$weight</span>
+                        </div>
+                        <div class="middle-item">
+                            <span class="middle-item-title">婚否:</span><span class="middle-item-content">$marriage</span>
+                        </div>
+                    </div>
+                    <div class="three-middle">
+                        <div class="middle-item-bottom">
+                            <span class="middle-item-title">特长:</span><span
+                            class="middle-item-content">$highlight</span>
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+            <div class="resume-header-right-bottominfo">
+                <div class="containers-bottom">
+                    <div class="nav bottom-info">
+                        <image class="bottom-info-icon" src="img/形状24@2x.png"></image>
+                        <span class="bottom-info-span">实名认证</span>
+                    </div>
+                    <div class="nav bottom-info">
+                        <image class="bottom-info-icon" src="img/形状25@2x.png"></image>
+                        <span class="bottom-info-span">护理证书</span>
+                    </div>
+
+                    <div class="nav bottom-info">
+                        <image class="bottom-info-icon" src="img/形状26@2x.png"></image>
+                        <span class="bottom-info-span">健康证明</span>
+                    </div>
+
+                    <div class="nav bottom-info">
+                        <image class="bottom-info-icon" src="img/形状27@2x.png"></image>
+                        <span class="bottom-info-span">无犯罪记录</span>
+                    </div>
+
+                </div>
+            </div>
+        </div>
+    </div>
+    <!--相关证件-->
+    <div class="resume-certificate-image">
+        <span class="resume-item-title">相关证件</span>
+
+        <!--轮播-->
+        <div class="lb_gl_certificate">
+            <div class="container">
+
+                <div class="pictureSlider-certificate poster-main">
+                    <div class="left-modal modal-certificate"></div>
+                    <ul id="zturn-certificate" class="poster-list">
+                        <div class="poster-btn poster-certificate-prev-btn certificate"></div>
+                         $certificate
+                        <div class="poster-btn poster-certificate-next-btn"></div>
+                    </ul>
+                    <div class="right-modal modal-certificate"></div>
+                    <!--indicators-->
+                    <div class="indicator-list indicator-list-cer">
+                        $certificatehref
+                    </div>
+                </div>
+
+            </div>
+        </div>
+    </div>
+
+    <!--悦所评价-->
+    <div class="resume-evaluation">
+        <span class="resume-item-title">悦所评价</span>
+        <p class="resume-yscomment">$resumecomment</p>
+    </div>
+    <!--服务照片-->
+    <div class="resume-service-image">
+        <span class="resume-item-title">服务照片</span>
+        <!--轮播-->
+        <div class="lb_gl">
+            <div class="container">
+
+                <div class="pictureSlider poster-main">
+                    <div class="left-modal"></div>
+                    <ul id="zturn" class="poster-list">
+                        <div class="poster-btn poster-prev-btn"></div>
+                        $service
+                        <div class="poster-btn poster-next-btn"></div>
+                    </ul>
+                    <div class="right-modal"></div>
+
+                    <!--indicators-->
+                    <div class="indicator-list indicator-list-service">
+                        $certificatehref
+                    </div>
+
+                </div>
+
+            </div>
+        </div>
+
+    </div>
+    <!--最新评价-->
+    <div class="resume-comments">
+        <span class="resume-item-title">最新评论</span>
+        <div class="resume-comments-div" id="resume-comments">
+            <div class="box_4" id="box-comments">
+                <div class="roll" id="roll">
+                    <div class="roll_list">
+                        <div class="ul_box" id="ul_box">
+                            $comment
+                        </div>
+                        <div class="ul_box" id="ul_box2"></div>
+                    </div>
+                </div>
+            </div>
+        </div>
+
+
+    </div>
+    <!--底部信息-->
+    <div class="resume-footer">
+        <div class="resume-footer-top">
+            <div class="resume-footer-top-item">
+                <image class="resume-footer-top-image" src="img/1@2x.png"></image>
+                <span class="resume-footer-top-span">专业的服务</span>
+            </div>
+            <div class="resume-footer-top-item">
+                <image class="resume-footer-top-image" src="img/形状28@2x.png"></image>
+                <span class="resume-footer-top-span">完善的售后</span>
+            </div>
+            <div class="resume-footer-top-item">
+                <image class="resume-footer-top-image" src="img/组371@2x.png"></image>
+                <span class="resume-footer-top-span">快速上门</span>
+            </div>
+        </div>
+        <div class="resume-footer-line"></div>
+        <div class="resume-footer-bottom">
+            <div class="resume-footer-bottom-tel">
+                <image class="resume-footer-bottom-image" src="img/形状12@2X.png"></image>
+                <span class="resume-footer-bottom-span">400-002-2699</span>
+            </div>
+            <div class="resume-footer-bottom-company">
+                <p class="resume-footer-bottom-copyright">2018@上海悦管家网络科技有限公司 版权所有 沪ICP备15013034号-1</p>
+                <p class="resume-footer-bottom-address">上海市闵行区莘松路378号智慧园商务大楼709室</p>
+            </div>
+        </div>
+    </div>
+</div>
+
+</body>
+
+<!--旋转木马轮播图-->
+<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
+<script type="text/javascript" src="js/zturn.js"></script>
+<script src="js/index.js"></script>
+
+<script type="text/javascript">
+    var aa = new zturn({
+        id: "zturn",
+        opacity: 0.9,
+        width: 382,
+        Awidth: 1024,
+        scale: 0.8
+    });
+    var ac = new zturnCertificate({
+        id: "zturn-certificate",
+        width: 382,
+        Awidth: 1024,
+    });
+    var ab = new zturn({
+        id: "zturn2",
+        opacity: 0.8,
+        width: 382,
+        Awidth: 1024,
+        scale: 0.6
+    })
+</script>
+<!--头部星级-->
+<script type="text/javascript">
+    $(document).ready(function () {
+        var imgsrc = 'img/55.png'
+        var startLeavel = $starts //月嫂星级  1 2 3 4 5
+        if (startLeavel == 1) {
+            imgsrc = 'img/11.png'
+        }
+        if (startLeavel == 2) {
+            imgsrc = 'img/22.png'
+        }
+        if (startLeavel == 3) {
+            imgsrc = 'img/33.png'
+        }
+        if (startLeavel == 4) {
+            imgsrc = 'img/44.png'
+        }
+        if (startLeavel == 5) {
+            imgsrc = 'img/55.png'
+        }
+        $('#resume-header-starts').attr('src',imgsrc)
+    })
+</script>
+<!--响应布局-->
+<script type="text/javascript">
+
+    if (window.screen.width >= 751) {
+        var speed = 10;
+        var scrollLeft = document.getElementById('roll').scrollLeft
+        document.getElementById('ul_box2').innerHTML = document.getElementById('ul_box').innerHTML;
+        var Timer = setInterval(Marquee, speed);
+        function Marquee() {
+            if (ul_box2.offsetWidth-scrollLeft <= 0) {
+                scrollLeft-=ul_box2.scrollWidth;
+                $('#roll').scrollLeft(scrollLeft)
+            }
+            else {
+                scrollLeft++;
+                $('#roll').scrollLeft(scrollLeft)
+            }
+
+        }
+
+        $('.roll').hover(function () {
+            clearInterval(Timer);
+        }, function () {
+            Timer = setInterval(Marquee, speed);
+        })
+    }
+</script>
+
+
+<script>
+    $(document).ready(function () {
+        if (window.screen.width < 751) {
+            $("#header-nav-image").attr("src", "img/header-icon@2x.png");
+            $("#box-comments").remove();
+//            $('#resume-comments').remove();
+            $('#resume-comments-con').remove();
+            $('#ul_box2').remove();
+            $("#resume-comments").append('<image class="resume-comments-list resume-comments-list-first" src="img/comments01.png" /><image class="resume-comments-list" src="img/comments02.png" /><image class="resume-comments-list" src="img/comments03.png" />');
+        } else {
+            $("#header-nav-image").attr("src", "img/形状2@2x.png")
+        }
+    })
+</script>
+
+</html>

+ 0 - 14
src/main/resources/static/test.html

@@ -1,14 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml"
-      xmlns:th="http://www.thymeleaf.org"
-      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
-      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
-<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
-<head>
-    <meta charset="UTF-8"/>
-    <title>第一个HTML页面</title>
-</head>
-<body>
-<h1>Hello Spring Boot!!!</h1>
-<p th:text="${hello}"></p>
-</body>
-</html>