|
@@ -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;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|