Browse Source

维修保养init

chao 4 years ago
parent
commit
3d7dbd40cd

+ 35 - 0
src/main/java/com/caimei/www/controller/MaintenanceController.java

@@ -0,0 +1,35 @@
+package com.caimei.www.controller;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.GetMapping;
+
+/**
+ * 维修保养
+ *
+ * @author : Charles
+ * @date : 2020/7/21
+ */
+@Controller
+public class MaintenanceController extends BaseController {
+	/** 维修保养介绍页 */
+	private static final String MAINTENANCE_PATH = "maintenance/index";
+	/** 维修保申请页 */
+	private static final String MAINTENANCE_FORM_PATH = "maintenance/form";
+
+    /**
+     * 维修保养介绍页
+     */
+    @GetMapping("/maintenance/index.html")
+    public String maintenance(final Model model) {
+        return MAINTENANCE_PATH;
+    }
+    /**
+     * 维修保养申请页
+     */
+    @GetMapping("/maintenance/form.html")
+    public String maintenanceForm(final Model model) {
+        return MAINTENANCE_FORM_PATH;
+    }
+
+}

+ 0 - 11
src/main/java/com/caimei/www/controller/SinglePageController.java

@@ -37,8 +37,6 @@ public class SinglePageController extends BaseController {
 	private static final String LIVE_PATH = "single-page/live";
 	private static final String LIVE_PATH = "single-page/live";
 	/** 品牌招商介绍页 */
 	/** 品牌招商介绍页 */
 	private static final String INVESTMENT_PATH = "single-page/investment";
 	private static final String INVESTMENT_PATH = "single-page/investment";
-	/** 维修保养页 */
-	private static final String MAINTENANCE_PATH = "single-page/maintenance";
 
 
     private SinglePageService singlePageService;
     private SinglePageService singlePageService;
     @Autowired
     @Autowired
@@ -101,15 +99,6 @@ public class SinglePageController extends BaseController {
         return INVESTMENT_PATH;
         return INVESTMENT_PATH;
     }
     }
 
 
-    /**
-     * 维修保养页
-     */
-    @GetMapping("/maintenance.html")
-    public String maintenance(final Model model) {
-        return MAINTENANCE_PATH;
-    }
-
-
     /**
     /**
      * 二级专题数据
      * 二级专题数据
      * @return
      * @return

BIN
src/main/resources/static/img/maintenance/maintenance.jpg


+ 3 - 3
src/main/resources/templates/single-page/maintenance.html → src/main/resources/templates/maintenance/form.html

@@ -2,15 +2,15 @@
 <html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 <html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="https://www.thymeleaf.org ">
       xsi:schemaLocation="https://www.thymeleaf.org ">
 <head>
 <head>
-    <title>采美365网-中国美业全方位线上交易服务互动平台,做美业,上采美</title>
+    <title>采美365网-维修申请</title>
     <template th:replace="components/headLink"></template>
     <template th:replace="components/headLink"></template>
 </head>
 </head>
 <body>
 <body>
 <!-- 引用头部 -->
 <!-- 引用头部 -->
 <template th:replace="components/header"></template>
 <template th:replace="components/header"></template>
 
 
-<!-- 维修保养 -->
-<div id="container">
+<!-- 维修申请 -->
+<div id="maintenanceForm">
 
 
 </div>
 </div>
 
 

+ 30 - 0
src/main/resources/templates/maintenance/index.html

@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+      xsi:schemaLocation="https://www.thymeleaf.org ">
+<head>
+    <title>采美365网-中国美业全方位线上交易服务互动平台,做美业,上采美</title>
+    <template th:replace="components/headLink"></template>
+</head>
+<body>
+<!-- 引用头部 -->
+<template th:replace="components/header"></template>
+
+<!-- 维修保养介绍 -->
+<div id="maintenance">
+    <div class="wrap">
+        <h1 class="title">
+            <span>采美仪器维修介绍</span>
+            <a href="javascript:void(0);" class="btn">申请维修</a>
+        </h1>
+        <div class="content">
+            <img src="/img/maintenance/maintenance.jpg" alt="采美仪器维修介绍">
+        </div>
+        <div class="fixedBtn"></div>
+    </div>
+</div>
+
+<!-- 引入底部 -->
+<template th:replace="components/footer"></template>
+<template th:replace="components/footLink"></template>
+</body>
+</html>