提交 | 用户 | age
|
f9ad6c
|
1 |
<!--pages/liveRoomManageList/liveRoomManageList.wxml--> |
S |
2 |
<view class="has-footer"> |
8724a4
|
3 |
<my-poster-creator id="my-poster-creator" live-room="{{currentLiveRoom}}"></my-poster-creator> |
S |
4 |
<van-tabs active="{{ active }}" sticky> |
|
5 |
<van-tab title="直播计划"> |
f9ad6c
|
6 |
<view class="padding"> |
S |
7 |
<block wx:if="{{roomList.length>0}}" wx:for="{{roomList}}" wx:key="key"> |
8724a4
|
8 |
<view class="card-container relative margin-bottom-10"> |
f9ad6c
|
9 |
<van-card |
S |
10 |
custom-class="van-card" |
|
11 |
thumb-mode="aspectFill" |
|
12 |
desc="{{item.AnchorName}}" |
|
13 |
desc-class="desc-class" |
|
14 |
title="{{item.RoomName}}" |
8724a4
|
15 |
thumb="{{item.ShareImgUnidUrl||'/assets/images/img.png'}}" |
f9ad6c
|
16 |
> |
S |
17 |
<view slot="price-top" class=""> |
|
18 |
开播时间:{{item.StartTime}} |
|
19 |
</view> |
|
20 |
<view slot="price" class=""> |
|
21 |
下播时间:{{item.EndTime}} |
|
22 |
</view> |
|
23 |
<view slot="footer" class="card-footer border-top margin-top-10 flex-row space-around font-size-14 theme-font-color "> |
8724a4
|
24 |
<view wx:if="{{item.RoomId}}" class="padding padding-bottom-5" data-index="{{index}}" data-roomid="{{item.RoomId}}" bind:tap="createPoster">直播分享码</view> |
S |
25 |
<view wx:else class="padding padding-bottom-5 desc">直播分享码</view> |
|
26 |
<navigator wx:if="{{item.RoomId}}" url="../liveRoomManage/liveRoomManage?doccode={{item.DocCode}}&roomid={{item.RoomId||''}}" class="padding padding-bottom-5">直播间管理</navigator> |
|
27 |
<navigator wx:else url="../liveRoomCreate/liveRoomCreate?doccode={{item.DocCode}}&roomid={{item.RoomId||''}}" class="padding padding-bottom-5">继续编辑</navigator> |
f9ad6c
|
28 |
</view> |
S |
29 |
</van-card> |
8724a4
|
30 |
<van-tag class="van-tags" wx:if="{{item.LiveStatus}}" mark type="{{tagTypes[item.LiveStatus]}}">{{liveStatus[item.LiveStatus]}}</van-tag> |
S |
31 |
<van-tag class="van-tags" wx:if="{{!item.RoomId}}" mark type="danger">草稿</van-tag> |
|
32 |
<van-icon name="delete-o" size="20px" data-doccode="{{item.DocCode}}" bind:tap="deleteLiveRoom" class="delete-icon padding-mini"/> |
f9ad6c
|
33 |
</view> |
S |
34 |
</block> |
8724a4
|
35 |
<van-divider wx:if="{{roomList.length>0}}" contentPosition="center">没有更多了</van-divider> |
f9ad6c
|
36 |
<view wx:if="{{roomList.length<1}}" class="vertical-horizontal-center"> |
S |
37 |
<van-empty image="" description="当前没有计划开播的直播间" /> |
|
38 |
</view> |
|
39 |
</view> |
|
40 |
</van-tab> |
|
41 |
<van-tab title="历史直播"> |
|
42 |
<view class="padding"> |
8724a4
|
43 |
<block wx:if="{{historyList.length>0}}" wx:for="{{roomList}}" wx:key="key"> |
S |
44 |
<view class="card-container relative margin-bottom-10"> |
|
45 |
<van-card |
|
46 |
custom-class="van-card" |
|
47 |
thumb-mode="aspectFill" |
|
48 |
desc="{{item.AnchorName}}" |
|
49 |
desc-class="desc-class" |
|
50 |
title="{{item.RoomName}}" |
|
51 |
thumb="{{item.ShareImgUnidUrl||'/assets/images/img.png'}}" |
|
52 |
> |
|
53 |
<view slot="price-top" class=""> |
|
54 |
开播时间:{{item.StartTime}} |
|
55 |
</view> |
|
56 |
<view slot="price" class=""> |
|
57 |
下播时间:{{item.EndTime}} |
|
58 |
</view> |
|
59 |
<view slot="footer" class="card-footer border-top margin-top-10 flex-row space-around font-size-14 theme-font-color "> |
|
60 |
<view class="padding padding-bottom-5" data-index="{{index}}" data-roomid="{{item.RoomId}}" bind:tap="createPoster">直播分享码</view> |
|
61 |
<navigator url="../liveRoomManage/liveRoomManage?doccode={{item.DocCode}}&roomid={{item.RoomId||''}}" class="padding padding-bottom-5">直播间管理</navigator> |
|
62 |
|
|
63 |
</view> |
|
64 |
</van-card> |
|
65 |
<van-tag class="van-tags" wx:if="{{item.LiveStatus}}" mark type="{{tagTypes[item.LiveStatus]}}">{{liveStatus[item.LiveStatus]}}</van-tag> |
|
66 |
<van-icon name="delete-o" size="20px" data-roomid="{{item.RoomId}}" bind:tap="deleteLiveRoom" class="delete-icon padding-mini"/> |
|
67 |
</view> |
|
68 |
</block> |
|
69 |
<van-divider wx:if="{{historyList.length>0}}" contentPosition="center">没有更多了</van-divider> |
|
70 |
<view wx:if="{{historyList.length<1}}" class="vertical-horizontal-center"> |
f9ad6c
|
71 |
<van-empty image="" description="当前没有历史开播的直播间" /> |
S |
72 |
</view> |
|
73 |
</view> |
|
74 |
</van-tab> |
|
75 |
</van-tabs> |
|
76 |
</view> |
|
77 |
|
|
78 |
<view class="fixed-footer fixed-footer-button flex-row space-around"> |
|
79 |
<navigator url="../liveRoomCreate/liveRoomCreate"> |
|
80 |
<van-button class="theme-button btn-padding" type="warning">创建直播间</van-button> |
|
81 |
</navigator> |
8724a4
|
82 |
<navigator url="../liveRoomGoodsStock/liveRoomGoodsStock"> |
f9ad6c
|
83 |
<van-button class="theme-button btn-padding" type="warning">我的商品库</van-button> |
S |
84 |
</navigator> |
|
85 |
</view> |