index.wxml 590 B

123456
  1. <import src="./template.wxml" />
  2. <view class='{{warp ? "flexWarp" : "flexCol"}} oyScroll h100 list-class'>
  3. <template wx:for="{{list||templateList}}" is="{{template||item.type}}" wx:key="id" data="{{...{item,index,isLast:index==list.length-1},...templateData }}" />
  4. <loadmore wx:if="{{request}}" request="{{request.type}}" url="{{request.url}}" data="{{request.data}}" page="{{request.page||1}}" rows="{{request.rows||10}}" bind:getItems="getItems" bind:reload="reload" bind:loadCompletion="loadCompletion" />
  5. <loadCompletion wx:if="{{completion}}" empty="{{!list.length}}" />
  6. </view>