ngInfiniteScroll不能用于华为荣耀7,但在其他一些Android设备和iphone上工作正常,当我在华为手机上测试时,它找不到bug。我不知道如何修复它!所以你见面了同样的问题! 这是我的代码!
<div class="design-items" infinite-scroll="vm.loadMore()"><div class="design-item" ng-repeat="item in vm.skillList" ng-click="vm.goSkillDetail(item)">
<div class="thumb"><img ng-src="{{item.coverImg | cutImgSize}}" alt=""></div>
<div class="item-message">
<div class="item-content">
<div class="item-title">
<img class="avatar" ng-src="{{item.skillTplModel.icon}}" alt="">
<span class="item-name">{{item.skillTplModel.name}}</span>
<div class="like">
<img class="people-icon" ng-src="app/resources/images/view_num.png" alt="">
<span class="people-num">{{item.purchaseNum}}人</span>
</div>
</div>
<p>{{item.skillDescription}}</p>
</div>
<div class="item-likeNum">
<span class="text-error">{{item.skillFee}}</span>爱意/{{item.skillTplModel.increment || ''}}{{item.skillTplModel.unit}}
</div>
</div>
</div>
vm.loadMore = loadMore;
function loadMore() {
if (vm.query.page < vm.page.pages) {
vm.query.page++;
getSkillList();
}
}