收藏
回答

为什么固定表头后上拉加载会失效?

表头没固定之前一切正常,固定之后上拉顶多只能触发一次,怎么破。。

class="tableHeader">
  <view class="searchbar">
    <navigator url='/pages/search_drug/search_drug' class='search-navigator'>navigator>
  view>
  <text class="title">药品信息表text>
  <view class="divLine">view>
  <view class="tr thColor">
    <view class="th">药品号view>
    <view class="th">药品名view>
    <view class="th">价格view>
    <view class="th">库存view>
  view>
view>
 <scroll-view scroll-x="true" scroll-y="true" style='height:{{tbodyHeight}}px'>   //加了表头固定只能触发一次上拉加载
  <block wx:for="{{result}}" wx:key="id">
    <view class="tr" wx:if="{{index%2==0}}">
      <view class="td">{{item.id}}view>
      <view class="td">{{item.name}}view>
      <view class="td">{{item.price}}view>
      <view class="td">{{item.count}}view>
    view>
  block>
scroll-view> 
<loadingmore hasmore="{{bool}}">loadingmore>
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签