Authored by xuqi

product pager

... ... @@ -143,6 +143,7 @@
<div class="good-select-color"></div>
</div>
</div>
{{> product/pager}}
</div>
{{/ brandAbout}}
</div>
... ...
... ... @@ -20,6 +20,8 @@
<div class="good-select-color"></div>
</div>
</div>
{{> product/pager}}
{{/ search}}
</div>
{{> layout/footer}}
\ No newline at end of file
... ...
<div class="product-pager clearfix">
<span class="total">{{opts.curPage}} - {{opts.pageCount}} / 共{{totalCount}}件商品</span>
<div class="pager">
{{{pager}}}
</div>
</div>
\ No newline at end of file
... ...
.pager {
font-size: 12px;
a {
height: 24px;
padding: 0 9px;
line-height: 24px;
display: inline-block;
text-align: center;
margin-right: 8px;
color: #222;
&.cur {
background-color: #222;
color: #fff;
}
}
}
\ No newline at end of file
... ...
... ... @@ -4,7 +4,8 @@
"compass/reset",
"header",
"footer",
"path-nav";
"path-nav",
"pager";
body {
font-family: arial,"Microsoft YaHei";
... ...
@import "search", "list", "filter-box", "sort-pager", "good";
.product-pager {
padding: 20px 0;
font-size: 12px;
color: #6a6a6a;
border-top: 1px solid #e7e9e8;
.pager {
float: right;
}
}
\ No newline at end of file
... ...
... ... @@ -310,7 +310,6 @@ class IndexController extends AbstractAction
'curPage' => 1,
'pageCount' => 30,
'nextHref' => 'hello'
)
),
'goods' => array(
0 => array(
... ... @@ -371,7 +370,10 @@ class IndexController extends AbstractAction
'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
'salePrice' => '899'
)
)
),
'totalCount' => '2273',
'pager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="ifont10">&gt;</span></a>'
),
);
$this->_view->display('search', $data);
}
... ... @@ -892,7 +894,10 @@ class IndexController extends AbstractAction
'num' => '5'
)
)
)
),
'totalCount' => '2259',
'pager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="ifont10">&gt;</span></a>'
)
);
$this->_view->display('list', $data);
... ...