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.
75 lines
4.0 KiB
75 lines
4.0 KiB
<!-- <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-notice-bar id="wux-notice-bar" wux-class="notice-bar" loop speed="100" mode="link" icon="" action=""
|
|
bind:click="onClick" bind:loop="onLoop" wx:if="{{content}}">
|
|
<text slot="header" class="cuIcon-notification text-gray" style="font-size:36rpx"></text>
|
|
<text slot="footer" class="cuIcon-right text-gray" style="font-size:36rpx"></text>
|
|
<text>{{content}}</text>
|
|
</wux-notice-bar> -->
|
|
<wux-skeleton active wx:if="{{!factoryList.length}}">
|
|
<view class="bg-white flex flex-justify" style="padding:24rpx 0rpx 12rpx 30rpx">
|
|
<wux-skeleton-paragraph rounded rows="1" wux-class="case-class" />
|
|
<wux-skeleton-paragraph rounded rows="1" wux-class="case2-class" />
|
|
</view>
|
|
<view class="bg-white flex" style="padding: 12rpx 30rpx 24rpx 30rpx">
|
|
<view wx:for="{{5}}" wx:key="index" class="item-host" style="padding-left:{{index == 0? 0 : 8}}rpx;">
|
|
<wux-skeleton-avatar shape="rounded" size="large" />
|
|
<wux-skeleton-paragraph rounded rows="1" wux-class="host-class" />
|
|
</view>
|
|
</view>
|
|
</wux-skeleton>
|
|
<view wx:else>
|
|
<view class="bg-white flex flex-justify" style="padding:20rpx 30rpx;">
|
|
<view class="text-bold text-df" style="color:#333333">纸厂动态</view>
|
|
<view class="text-gray text-df" bindtap="toFactoryList">更多<text class="cuIcon-right text-gray" style="font-size:14px"></text></view>
|
|
</view>
|
|
<scroll-view class="bg-white" scroll-x scroll-with-animation="{{true}}">
|
|
<view class="flex" style="padding: 4rpx 30rpx 20rpx 30rpx">
|
|
<view wx:for="{{factoryList}}" wx:key="index" class="item-host" style="padding-left:{{index==0?0:30}}rpx;flex:1" data-index="{{index}}" bindtap="toFactory">
|
|
<wux-image width="{{50}}" height="{{50}}" shape="rounded" src="{{item.logoImg}}" mode="aspectFill">
|
|
<image class="image-load" style="border-radius: 8rpx" slot="loading" src="/assets/image/def_image.png"></image>
|
|
<image class="image-load" style="border-radius: 8rpx" slot="error" src="/assets/image/def_image.png"></image>
|
|
</wux-image>
|
|
<view class="text-sm text-cut" style="text-align: center;width:96rpx;margin-top:4rpx">{{item.shortName}}</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
<!----------------------------------------------------帖子列表---------------------------------------------------------------->
|
|
<wux-skeleton active wx:if="{{!momentList.length}}">
|
|
<view class="cu-card dynamic no-card" wx:for="{{5}}" 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"></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> -->
|