weex icon indicating copy to clipboard operation
weex copied to clipboard

ios 中 list 标签里用loading刷新失败

Open hechengloong opened this issue 10 years ago • 4 comments

代码如下

<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条数据 image 只要稍稍向上拉一下 就会进行刷新

hechengloong avatar Sep 27 '16 08:09 hechengloong

loadmoreoffset去掉看看

misakuo avatar Sep 27 '16 08:09 misakuo

@misakuo 去掉了也不行啊

hechengloong avatar Oct 17 '16 07:10 hechengloong

@MrDragonn hello 咨询一下,loading 刷新失败:是loading 不显示,还是onloading 没有调到

acton393 avatar Dec 11 '16 08:12 acton393

#1896

acton393 avatar Jan 22 '17 07:01 acton393