Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么我使用 infinitescroll 组件频繁报错的呢? #3

Closed
viphchok opened this issue Mar 16, 2017 · 4 comments
Closed

为什么我使用 infinitescroll 组件频繁报错的呢? #3

viphchok opened this issue Mar 16, 2017 · 4 comments

Comments

@viphchok
Copy link

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined(…); infinitescroll.vue?2de8:64

@ydcss
Copy link
Owner

ydcss commented Mar 16, 2017

可否贴出代码看下呢。

@viphchok
Copy link
Author

viphchok commented Mar 16, 2017

`

<div class="filterbar-wrap">
  <div class="filter-bar">
    <div class="ck-search">
      <i class="iconfont">&#xe602;</i>
    </div>
    <ul class="sort-tab">
      <li class="sort current selected">销量优先<i class="iconfont">&#xe605;</i></li>
      <li class="sort">销量优先<i class="iconfont">&#xe605;</i></li>
      <li class="sort">筛选<i class="iconfont">&#xe605;</i></li>
    </ul>
  </div>
</div>

<div class="goods-list">
  <yd-infinitescroll :on-infinite="loadList">

    <yd-list theme="3" slot="list">
      <yd-list-item v-for="product in productList" :data-pid="product.id">
        <img slot="img" :src="product.prodPic">
        <span slot="title">{{product.prodTitle}}</span>
        <yd-list-other slot="other">
          <div>
            <span class="list-price"><i class="vip">会员</i>¥{{product.memberPoint}}+{{product.pointPrice}}<em>积分</em></span><br>
            <span class="list-del-price">原价∶¥{{product.orgPrice}}</span>
          </div>
        </yd-list-other>
      </yd-list-item>
    </yd-list>

    <!-- 数据全部加载完毕显示 -->
    <span slot="doneTip">---------------------- 我们是有底线的 ---------------------- </span>

    <!-- 加载中提示 -->
    <img slot="loadingTip" src="http://static.ydcss.com/uploads/ydui/loading/loading10.svg"/>

  </yd-infinitescroll>
</div>
`

@viphchok
Copy link
Author

已经解决啦

@ydcss
Copy link
Owner

ydcss commented May 3, 2017

小哥,上次遇到这个问题,你是怎么解决的?

@ydcss ydcss reopened this May 3, 2017
@ydcss ydcss closed this as completed May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants