Ver Fonte

8-12子分类换页优化

Home há 4 anos atrás
pai
commit
0154b3b4d5
2 ficheiros alterados com 3 adições e 2 exclusões
  1. 2 1
      app/admin/controller/Category.php
  2. 1 1
      app/admin/view/category/index.html

+ 2 - 1
app/admin/controller/Category.php

@@ -28,7 +28,8 @@ class Category extends AdminBase
         }
 
         return View::fetch('', [
-            'categorys' => $categorys
+            'categorys' => $categorys,
+            'pid' => $pid
         ]);
     }
 

+ 1 - 1
app/admin/view/category/index.html

@@ -132,7 +132,7 @@
             , curr: {$categorys.current_page}
             , jump: function (obj, first) {
                 if (!first) {
-                    location.href = "?page=" + obj.curr
+                    location.href = "?page=" + obj.curr + "&pid={$pid}"
                 }
             }
         });