2025-01-06 14:18:31 +08:00

29 lines
1.4 KiB
Plaintext

<!-- index.wxml -->
<view wx:if="{{list.length}}">
<view class="">
<view class="grid grid-cols-3 gap-20 p-main">
<view class="" wx:for="{{list}}" wx:key="*this" bind:tap="openDetail" data-item="{{item}}">
<view class="relative rounded-main overflow-hidden h-370">
<view class="absolute left-0 top-0 h-full w-full bg-000-6 z-[1] flex items-center justify-center" hidden="{{!isEdit}}" catch:tap="delete" data-item='{{item}}' data-index="{{index}}">
<i class="iconfont icon-shanchu text-fff text-64" />
</view>
<image src="{{item.cover}}" mode="aspectFill" class="w-full h-full rounded-16" />
</view>
<view class="w-full">
<view class="text-24 line-clamp-2 pt-16">{{item.name}}</view>
<view class="text-22 py-10 text-[#888]">
第 {{item.history}} 集
<span class="">/{{item.count}} 集</span>
</view>
</view>
</view>
</view>
</view>
<view class="flex flex-col items-center" wx:if="{{list.length>6}}">
<loadmore status="{{loadStatus}}" />
</view>
<view class="fixed bottom-40 right-40 w-90 h-90 bg-main rounded-full flex justify-center items-center text-fff" bind:tap="editChage">
<i class="iconfont {{isEdit?'icon-gouxuan':'icon-bianji1'}} text-36" />
</view>
</view>
<van-empty description="去收藏一部喜欢的剧吧~" wx:else />