Explorar o código

新增查询子分类功能

zengyicheng %!s(int64=2) %!d(string=hai) anos
pai
achega
308de68d26
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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) => {