Kaynağa Gözat

8-12子分类换页优化

Home 4 yıl önce
ebeveyn
işleme
0154b3b4d5

+ 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}"
                 }
             }
         });