Authored by weiqingting

细节修改

... ... @@ -5,6 +5,6 @@
</ul>
<div class="loading">
<p>Loading...</p>
<a>Loading...</a>
</div>
</div>
\ No newline at end of file
... ...
... ... @@ -6,7 +6,7 @@ var InfiniteLoad = require('../common/infinite-load');
(function($) {
var $container = $('div.commodity ul');
var $load = $('.loading');
var $load = $('.loading a');
var load = new InfiniteLoad({
offset: {
height: function() {
... ... @@ -16,6 +16,7 @@ var InfiniteLoad = require('../common/infinite-load');
});
load.on('after', function(p) {
console.log(p.index);
var options = {
type: 'POST',
url: '/boys/commodity',
... ... @@ -40,7 +41,7 @@ var InfiniteLoad = require('../common/infinite-load');
load.emit();
} else {
$load.html('END');
$load.html('查看更多');
}
},
error: function() {
... ...
... ... @@ -342,6 +342,7 @@
.commodity{
margin-left: -10px;
margin-bottom:80px;
position: relative;
li{
float: left;
... ... @@ -383,10 +384,8 @@
position: absolute;
bottom: 0;
width: 100%;
p{
text-align: center;
font-size: 20px;
}
text-align: center;
font-size: 20px;
}
}
... ...
... ... @@ -443,8 +443,8 @@ class BoysController extends AbstractAction
/**
* 男装首页 新品上架 接口数据
*
* @param int $pageIndex 当前页数
* @param int $pageCount 一页显示个数
* @param int pageIndex 当前页数
* @param int pageCount 一页显示个数
* @param string flag 类型(男装/女装等,用于区分)
* @return json
*/
... ... @@ -457,6 +457,10 @@ class BoysController extends AbstractAction
if (!$this->isAjax()) {
break;
}
$pageIndex = $this->post('pageIndex');
if($pageIndex>=3){
break;
}
$result=array(
'code'=>200,
... ...