live_share.wxml
1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<wxs src="../../../utils/filter.wxs" module="filter"></wxs>
<view class="container">
<!-- 列表 -->
<view class="list-container">
<!-- 标题 -->
<view class="subTab-title flex">
<block wx:for="{{tab2}}">
<view class="subTab-titleItem {{currentIndex2 == index ? 'active':''}}" data-index="{{index}}" bindtap="clickTab2">{{item}}</view>
</block>
</view>
<!-- 列表项 -->
<scroll-view
class="list"
scroll-y="true"
bindscrolltolower="refresh"
scroll-anchoring
>
<!-- 专享礼包 -->
<block wx:for="{{list}}">
<view class class="list-item" bindtap="go_live" data-index="{{index}}">
<view class="img-container {{currentIndex2 == 0?'live':currentIndex2 == 1?'coming':'playback'}}">
<image src="{{item.cover_img}}" style="width: 100%; height: 100%;"
binderror="bind_bnerr2" lazy-load="true"
data-errorimg="list[{{index}}].share_img"></image>
</view>
<view class="details">
<view class="ellipsis-2 fs28 name">{{item.name}}</view>
<view class="pdt20 fs26 red">直播时间:{{filter.format_time(item.start_time, 2)}} </view>
<view class="fs26 red pdv10">主播:{{item['anchor_name']}}</view>
<view catchtap="share_index" data-index="{{index}}" class="t-r fs28 pdt10"><view class="btn-share">分享</view></view>
</view>
</view>
</block>
<!-- 暂无数据 -->
<nodata wx:if="{{list.length==0}}" nodataContainer="nodata">暂无数据</nodata>
<view wx:if="{{is_no_more}}" class="no-more t-c">- 已全部加载 -</view>
</scroll-view>
</view>
</view>
<!-- 分享控件,底部弹出 -->
<share_button id="share_button" bind:cancel="cancel" bind:share_img="saveImageToPhotosAlbum" wx:if="{{!share_hidden}}"></share_button>