Browse Source

添加新页面

chao 4 years ago
parent
commit
e411bea737

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

@@ -0,0 +1,67 @@
+package com.caimei.www.controller;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+
+/**
+ * 二级页面
+ *
+ * @author : Charles
+ * @date : 2020/7/20
+ */
+@Controller
+public class SinglePageController {
+    /** 找产品/找仪器/找项目 */
+	private static final String TOPIC_PATH = "single-page/topic";
+	/** 专题活动列表页 */
+	private static final String PROMOTIONS_PATH = "single-page/promotions";
+	/** 自由页面 */
+	private static final String FREE_PAGE_PATH = "single-page/page";
+	/** 品牌招商介绍页 */
+	private static final String INVESTMENT_PATH = "single-page/investment";
+	/** 维修保养页 */
+	private static final String MAINTENANCE_PATH = "single-page/maintenance";
+
+    /**
+     * 二级页面(找产品/找仪器/找项目)
+     */
+    @GetMapping("/topic.html")
+    public String topic(final Model model, Integer id) {
+        return TOPIC_PATH;
+    }
+
+    /**
+     * 专题活动列表页
+     */
+    @GetMapping("/promotions.html")
+    public String promotions(final Model model) {
+        return PROMOTIONS_PATH;
+    }
+
+    /**
+     * 自由页面
+     */
+    @GetMapping("/page.html")
+    public String freePage(final Model model, Integer id) {
+        return FREE_PAGE_PATH;
+    }
+
+    /**
+     * 品牌招商介绍页
+     */
+    @GetMapping("/investment.html")
+    public String investment(final Model model) {
+        return INVESTMENT_PATH;
+    }
+
+    /**
+     * 维修保养页
+     */
+    @GetMapping("/maintenance.html")
+    public String maintenance(final Model model) {
+        return MAINTENANCE_PATH;
+    }
+
+}

+ 1 - 0
src/main/resources/templates/index.html

@@ -11,6 +11,7 @@
 <!-- 引用头部 -->
 <template th:replace="components/header"></template>
 
+<!-- 首页 -->
 <div id="container">
     <!--首页图片轮播-->
     <div id="swiper-container" class="swiper-container">

+ 1 - 1
src/main/resources/templates/instrument/detail.html

@@ -13,7 +13,7 @@
 <!-- 引用头部 -->
 <template th:replace="components/header"></template>
 
-<!--页面主体数据-->
+<!-- 项目仪器详情 -->
 <div id="container">
     <div class="wrap">
         <div class="instrumentBox clear">

+ 1 - 1
src/main/resources/templates/instrument/search.html

@@ -10,7 +10,7 @@
 <!-- 引用头部 -->
 <template th:replace="components/header"></template>
 
-<!--页面主体数据-->
+<!-- 项目仪器搜索列表 -->
 <div id="container">
     <!--loading-->
     <div v-if="listLoading" class="loading">

+ 1 - 1
src/main/resources/templates/product/detail.html

@@ -11,7 +11,7 @@
 <!-- 引用头部 -->
 <template th:replace="components/header"></template>
 
-<!--页面主体数据-->
+<!-- 商品详情 -->
 <div id="container">
     <div class="wrap">
         <div class="productBox clear">

+ 1 - 1
src/main/resources/templates/product/list.html

@@ -10,7 +10,7 @@
 <!-- 引用头部 -->
 <template th:replace="components/header"></template>
 
-<!--页面主体数据-->
+<!-- 商品列表 -->
 <div id="container">
     <input type="hidden" id="searchFlag" th:value="${searchFlag}">
     <template v-if="isPC">

+ 21 - 0
src/main/resources/templates/single-page/investment.html

@@ -0,0 +1,21 @@
+<!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="container">
+
+</div>
+
+<!-- 引入底部 -->
+<template th:replace="components/footer"></template>
+<template th:replace="components/footLink"></template>
+</body>
+</html>

+ 21 - 0
src/main/resources/templates/single-page/maintenance.html

@@ -0,0 +1,21 @@
+<!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="container">
+
+</div>
+
+<!-- 引入底部 -->
+<template th:replace="components/footer"></template>
+<template th:replace="components/footLink"></template>
+</body>
+</html>

+ 21 - 0
src/main/resources/templates/single-page/page.html

@@ -0,0 +1,21 @@
+<!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="container">
+
+</div>
+
+<!-- 引入底部 -->
+<template th:replace="components/footer"></template>
+<template th:replace="components/footLink"></template>
+</body>
+</html>

+ 21 - 0
src/main/resources/templates/single-page/promotions.html

@@ -0,0 +1,21 @@
+<!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="container">
+
+</div>
+
+<!-- 引入底部 -->
+<template th:replace="components/footer"></template>
+<template th:replace="components/footLink"></template>
+</body>
+</html>

+ 21 - 0
src/main/resources/templates/single-page/topic.html

@@ -0,0 +1,21 @@
+<!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="container">
+
+</div>
+
+<!-- 引入底部 -->
+<template th:replace="components/footer"></template>
+<template th:replace="components/footLink"></template>
+</body>
+</html>

+ 1 - 1
src/main/resources/templates/supplier/search.html

@@ -10,7 +10,7 @@
 <!-- 引用头部 -->
 <template th:replace="components/header"></template>
 
-<!--页面主体数据-->
+<!-- 供应商搜索列表 -->
 <div id="container">
     <!--loading-->
     <div v-if="listLoading" class="loading">