纸通宝小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

42 lines
2.0 KiB

<!--pages/main/index.wxml-->
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
<!-- <scroll-view scroll-y style="height: {{height}}rpx;" lower-threshold="200" bindscrolltolower="fetchMomentList"> -->
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchMomentList">
<!----------------------------------------------------帖子列表---------------------------------------------------------------->
<wux-skeleton active wx:if="{{!momentList.length}}">
<view class="cu-card dynamic no-card" wx:for="{{4}}" wx:key="index">
<view class="cu-item shadow" style="padding-left:30rpx">
<view class="cu-list menu-avatar">
<view class="cu-item" style="justify-content: flex-start;">
<wux-skeleton-avatar shape="circle" size="large" />
<view class="content flex-sub">
<wux-skeleton-paragraph rounded rows="1" wux-class="case2-class" />
<view class="bg-white" style="height:8rpx"></view>
<wux-skeleton-paragraph rounded rows="1" wux-class="case-class" />
</view>
</view>
</view>
<wux-skeleton-paragraph rounded rows="3" wux-class="case3-class" />
</view>
</view>
</wux-skeleton>
<view wx:else>
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{momentList}}" wx:key="pageIndex">
<view wx:for="{{pageItem}}" wx:key="index" class="cu-card dynamic no-card">
<!-- <wux-divider show-text="{{ false }}" wx:if="{{pageIndex != 0 || index != 0 }}"></wux-divider> -->
<view style="height:16rpx" wx:if="{{pageIndex != 0 || index != 0 }}"></view>
<article-item item="{{item}}"></article-item>
</view>
</view>
<!--加载更多的UI-->
<view wx:if="{{form.pageNum > 1}}" style="padding:20rpx">
<wux-divider>
<view class="loadmore">
<text class="icon--refresher" wx:if="{{!finished}}"></text>
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text>
</view>
</wux-divider>
</view>
</view>
</refresh-view>
<!-- </scroll-view> -->