lchao 4 months ago
parent
commit
01a7acd9ee

+ 2 - 2
src/main/java/com/sooka/module/web/cms/ContentBmAppController.java

@@ -21,7 +21,7 @@ import java.util.HashMap;
 import java.util.Map;
 
 @Controller
-@RequestMapping("/system/cms/signUp")
+@RequestMapping("/")
 public class ContentBmAppController  {
 
     @Autowired
@@ -31,7 +31,7 @@ public class ContentBmAppController  {
     private SignOnService signOnService;
 
 
-    @RequestMapping
+    @RequestMapping("system/cms/signUp")
     public String index(@RequestParam(value = "pageCurrent",defaultValue = "1") Integer pageNumber,
                         @RequestParam(value = "pageSize",defaultValue = "50") Integer pageSize,
                         TCmsSignOn pojo, Model model) {

+ 17 - 17
src/main/resources/templates/www/tuiyijunren/content-xlts.html

@@ -84,22 +84,6 @@
 </div>
 <script>
 
-	// 获取提交按钮元素
-	const submitButton = document.querySelector('.study_btn');
-
-	// 为按钮添加点击事件监听器
-	submitButton.addEventListener('click', function () {
-		// 弹出确认框
-		const isConfirmed = window.confirm('确认报名不可取消,是否继续?');
-
-		if (isConfirmed) {
-			// 用户点击了“确定”,可以在这里添加表单提交逻辑
-			alert('报名已提交!');
-		} else {
-			// 用户点击了“取消”
-			alert('报名已取消。');
-		}
-	});
 	// 获取报名按钮和弹窗元素
 	const bmButton = document.querySelector('.cyfw_bm');
 	const zgDiv = document.querySelector('.zg_div');
@@ -146,9 +130,25 @@
 				return false;
 			}
 		}
+
+		// 获取提交按钮元素
+		const submitButton = document.querySelector('.study_btn');
+		// 为按钮添加点击事件监听器
+		submitButton.addEventListener('click', function () {
+			// 弹出确认框
+			const isConfirmed = window.confirm('确认报名不可取消,是否继续?');
+			if (isConfirmed) {
+				// 用户点击了“确定”,可以在这里添加表单提交逻辑
+				alert('报名已提交!');
+			} else {
+				// 用户点击了“取消”
+				alert('报名已取消。');
+			}
+		});
+
 		$.ajax({
 			// 请求的 URL
-			url: "${ctxPath}/system/cms/signUp/BmApp",
+			url: "${ctxPath}/BmApp",
 			// 请求类型,可以是 GET、POST、PUT、DELETE 等
 			type: "POST",
 			// 发送到服务器的数据,格式为键值对