yuanyiming 1 年間 前
コミット
e422af21b4
1 ファイル変更34 行追加0 行削除
  1. 34 0
      pbl.js

+ 34 - 0
pbl.js

@@ -315,6 +315,40 @@ router.get("/selectActSearch", (req, res) => {
 	getmysql(req, res, "selectActSearch",json['openid'],json['txt'],json['ty']);
 });
 
+// yym 搜索所有学校
+router.get("/selectColleges", (req, res) => {
+	// console.log("获取", req.body);
+	var json = req.query
+
+	getmysql(req, res, "selectColleges");
+});
+
+// 搜索对应学校的专业
+router.get("/selectMajors", (req, res) => {
+	// console.log("获取", req.body);
+	var json = req.query
+
+	getmysql(req, res, "selectMajors",json['mid']);
+});
+
+
+// 模糊搜索学校
+router.get("/selectLikeColleges", (req, res) => {
+	// console.log("获取", req.body);
+	var json = req.query
+
+	getmysql(req, res, "selectLikeColleges",json['txt']);
+});
+
+// 模糊搜索专业
+router.get("/selectLikeMajors", (req, res) => {
+	// console.log("获取", req.body);
+	var json = req.query
+
+	getmysql(req, res, "selectLikeMajors",json['mid'],json['txt']);
+});
+
+
 // yym 课程搜索框
 router.get("/selectSearchdata", (req, res) => {
 	// console.log("获取", req.query);