living.wxml 1.7 KB

1
  1. <view class="content"><block wx:if="{{$root.g0==0}}"><u-empty vue-id="85a31afc-1" text="暂无直播" mode="list" bind:__l="__l"></u-empty></block><block wx:else><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['navTo',['$0'],[[['list','',index]]]]]]]}}" class="main-item" bindtap="__e"><view class="type">{{item.live_status==101?'直播中':item.live_status==102?'未开始':item.live_status==103?'已结束':''}}</view><view class="main-image"><image src="{{item.cover_img}}" mode></image></view><view class="info flex"><view class="info-left"><view class="main-title">{{item.name}}</view><view class="main-time">{{item.add_time+"开播"}}</view></view><view data-event-opts="{{[['tap',[['shareLink',['$0'],[[['list','',index]]]]]]]}}" class="info-right" catchtap="__e">分享</view></view></view></block></block><block wx:if="{{shareShow}}"><view data-event-opts="{{[['tap',[['cancel',['$event']]]]]}}" class="Shraremask" bindtap="__e"><view class="mask-content"><scroll-view class="view-content" scroll-y="{{true}}"><view class="share-header">分享到</view><view class="share-list"><view class="share-item"><button class="wechat-box" open-type="share"><image class="itemImage" src="../../static/icon/share1.png" mode></image><text class="itemText">微信好友</text></button><view data-event-opts="{{[['tap',[['copy']]]]}}" class="wechat-box" bindtap="__e"><image class="itemImage" src="../../static/icon/share3.png" mode></image><text class="itemText">复制链接</text></view></view></view></scroll-view><view data-event-opts="{{[['tap',[['cancel',['$event']]]]]}}" class="bottomButtom b-t" bindtap="__e">取消</view></view></view></block></view>