weex
weex copied to clipboard
ios 中 list 标签里用loading刷新失败
代码如下
<list class="listItem" loadmoreoffset={{pageSize}}>
<refresh class="refresh-view" display="{{refresh_display}}" onrefresh="onrefresh">
<loading-indicator></loading-indicator>
<text class="refresh-arrow" style="margin-left:36px;color:#445566;"
if="{{(refresh_display==='hide')}}">{{strings.refresh}}
</text>
</refresh>
<cell repeat="{{onListRepeatArr}}" style="width: 750px;height:523px; margin-top: 0px;">
<div style="flex-direction: row;width:750px;">
<div repeat="{{item in items}}" onclick="onProductDetail(item)">
<list_product_item
item="{{item}}"
iconmore-src="{{getImage('icon_more')}}"
product-img-src="{{getImageByArray(item)}}" product-name="{{item.name}}" note="{{strings.note}}"
product-message="{{item.memo}}" qr-img="{{getImage('cpgl_list_icon_erweima')}}"
>
</list_product_item>
</div>
</div>
</cell>
<loading class="loading" display="{{loading_display}}" onloading="onloading">
<text class="refresh-arrow" style="text-align: center; color:rgb(238, 162, 54)"
if="{{(refresh_display==='hide')}}">{{strings.load_more}}
</text>
<loading-indicator style="color:#445566;"></loading-indicator>
</loading>
</list>
例如一次请求20条数据
只要稍稍向上拉一下 就会进行刷新
loadmoreoffset去掉看看
@misakuo 去掉了也不行啊
@MrDragonn hello 咨询一下,loading 刷新失败:是loading 不显示,还是onloading 没有调到
#1896