Przeglądaj źródła

新增查询子分类功能

zengyicheng 2 lat temu
rodzic
commit
308de68d26
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      pbl.js

+ 5 - 1
pbl.js

@@ -810,7 +810,11 @@ router.route('/deletePtype').all((req, res, next) => {
     var json = queryString(req.url);
     getmysql(req, res, "deletePtype", json["tid"]);
 });
-
+//查询子分类列表
+router.route('/selectStype').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "selectStype", json["pid"], json["page"], 10);
+});
 
 //更加父id查询分类
 router.route('/selectTypeByPid').all((req, res, next) => {