0

ngInfiniteScroll 无法在华为荣耀 7 上运行,但在其他一些 android 设备和 iphone 上运行良好,当我在华为手机上测试时,它找不到错误。我不知道如何修复它!所以你遇到了同样的问题!这是我的代码!

<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}}人&lt;/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();
    }
}
4

0 回答 0