community-list.wxml 4.0 KB

1
  1. <view class="data-v-3b279352"><block wx:if="{{type=='waterfall'}}"><view class="community-list data-v-3b279352"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><router-link vue-id="{{'5340a2fc-1-'+index}}" to="{{'/bundle_b/pages/community_detail/community_detail?id='+item.id}}" class="data-v-3b279352" bind:__l="__l" vue-slots="{{['default']}}"><view class="community-list--item bg-white m-t-20 data-v-3b279352"><view class="community-img data-v-3b279352"><u-lazy-load vue-id="{{('5340a2fc-2-'+index)+','+('5340a2fc-1-'+index)}}" threshold="0" border-radius="10" image="{{item.image}}" index="{{index}}" class="data-v-3b279352" bind:__l="__l"></u-lazy-load></view><view class="community-info data-v-3b279352"><view class="community-title line-2 data-v-3b279352">{{item.content}}</view><view class="m-t-10 flex data-v-3b279352"><u-image vue-id="{{('5340a2fc-3-'+index)+','+('5340a2fc-1-'+index)}}" width="50" height="50" border-radius="50%" src="{{item.avatar}}" class="data-v-3b279352" bind:__l="__l"></u-image><view class="user-name flex-1 line-2 data-v-3b279352">{{item.nickname}}</view><view class="likes data-v-3b279352"><image src="{{item.is_like?'/static/images/icon_collection_s.png':'/static/images/icon_likes.png'}}" class="data-v-3b279352"></image><text class="xs muted m-l-6 data-v-3b279352">{{item.like}}</text></view></view></view></view></router-link></block></view></block><block wx:if="{{type=='works'}}"><view class="community-list data-v-3b279352"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><router-link vue-id="{{'5340a2fc-4-'+index}}" to="{{'/bundle_b/pages/community_detail/community_detail?id='+item.id}}" class="data-v-3b279352" bind:__l="__l" vue-slots="{{['default']}}"><view class="community-list--item bg-white m-t-20 data-v-3b279352"><view class="community-img data-v-3b279352"><block wx:if="{{item.status===0||item.status===2}}"><view class="works flex row-center data-v-3b279352"><view class="text-center nr white data-v-3b279352"><view class="data-v-3b279352">{{item.status_desc}}</view><view class="m-t-10 data-v-3b279352">{{item.audit_remark_desc}}</view></view></view></block><u-lazy-load vue-id="{{('5340a2fc-5-'+index)+','+('5340a2fc-4-'+index)}}" threshold="0" border-radius="10" image="{{item.image}}" index="{{index}}" class="data-v-3b279352" bind:__l="__l"></u-lazy-load></view><view class="community-info data-v-3b279352"><view class="community-title line-2 data-v-3b279352">{{item.content}}</view><view class="m-t-20 flex data-v-3b279352"><view class="user-name flex-1 line-2 data-v-3b279352">{{item.create_time}}</view><view class="likes data-v-3b279352"><image src="{{item.is_like?'/static/images/icon_collection_s.png':'/static/images/icon_likes.png'}}" class="data-v-3b279352"></image><text class="xs muted m-l-6 data-v-3b279352">{{item.like}}</text></view></view></view></view></router-link></block></view></block><block wx:if="{{type=='index'}}"><view class="community-list flex data-v-3b279352"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><router-link class="community-list--item bg-white m-r-20 data-v-3b279352" vue-id="{{'5340a2fc-6-'+index}}" to="{{'/bundle_b/pages/community_detail/community_detail?id='+item.id}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="community-index data-v-3b279352"><view class="wrap white sm p-l-10 data-v-3b279352"><view class="index-title line-1 data-v-3b279352">{{item.content}}</view><view class="flex m-t-10 data-v-3b279352"><u-lazy-load vue-id="{{('5340a2fc-7-'+index)+','+('5340a2fc-6-'+index)}}" threshold="0" border-radius="10" image="{{item.image}}" index="{{index}}" class="data-v-3b279352" bind:__l="__l"></u-lazy-load><view class="index-name line-1 m-l-6 data-v-3b279352">{{''+item.nickname+''}}</view></view></view><u-image vue-id="{{('5340a2fc-8-'+index)+','+('5340a2fc-6-'+index)}}" width="240" height="240" src="{{item.image}}" borderRadius="14" class="data-v-3b279352" bind:__l="__l"></u-image></view></router-link></block></view></block></view>