1.在 page.class.php 中 将 private $p = 'p'; 改为 public $p
2.在 page.class.php 的 __construct($totalRows, $listRows=20, $var_page,$parameter = array() ),多传递一个参数$var_page,
3.在 page.class.php 的 __construct 方法中 将C('VAR_PAGE') && $this->p = C('VAR_PAGE'); 改为 $this->p = $var_page;
最后在具体方法中调用:
$Page1 = new \Think\Page($count1,2,"p1");
$show1 = $Page1->show();
$Page2 = new \Think\Page($count2,2,"p1");
$show2 = $Page2->show();
$this->assign('page1',$show1);
$this->assign('page2',$show2);