Sanakey
2021-04-30 8724a444c8a1d09dc8f9efd005e8443aad8df1ab
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!--pages/liveRoomManage/liveRoomManage.wxml-->
<view class="has-footer">
  <view class="text-center padding-top-10 theme-font-color">{{liveStatus[liveRoomData.LiveStatus]}}</view>
  <my-card-container content-padding="0">
    <van-cell-group class="">
      <van-cell class="my-cell" title="开播时间" value="{{liveRoomData.StartTime}}"></van-cell>
      <van-cell class="my-cell" title="下播时间" value="{{liveRoomData.EndTime}}"></van-cell>
      <van-cell class="my-cell" title="直播间标题" value="{{liveRoomData.RoomName}}"></van-cell>
      <van-cell class="my-cell" title="主播昵称" value="{{liveRoomData.AnchorName}}"></van-cell>
      <van-cell class="my-cell" title="主播微信号" value="{{liveRoomData.AnchorWechat}}"></van-cell>
      <van-cell class="my-cell" title="主播副号" value="{{liveRoomData.SubAnchorWechat||' '}}">
        <view class="theme-font-color" slot="right-icon">
          <view class="padding-lr" wx:if="{{liveRoomData.SubAnchorWechat}}" bind:tap="deleteSubAnchorWechat">删除</view>
          <view class="padding-lr" wx:else bind:tap="showSubAnchorDialog">新增</view>
        </view>
      </van-cell>
 
      <van-dialog
          width="680rpx"
          use-slot
          title="主播副号"
          show="{{ isShowSubAnchorDialog }}"
          close-on-click-overlay
          show-confirm-button="{{false}}"
      >
        <view class="padding-middle">
        <van-field
            class="my-cell"
            value="{{ subAnchorWechat }}"
            name="subAnchorWechat"
            placeholder="请输入主播微信副号"
            bind:blur="checkSubAnchorWechat"
            error-message="{{subAnchorWechatError}}"
        />
          <view class="text-center padding-tb">
            <van-button class="theme-button btn-padding" type="warning" bind:click="saveSubAnchorWechat">确定</van-button>
          </view>
        </view>
      </van-dialog>
      <my-anchor-authentication id="my-anchor-authentication" ></my-anchor-authentication>
    </van-cell-group>
    <view class="padding-top-10">
      <my-view-img container-class="flex-row space-around"  img-list="{{imagesUrl}}" width="150rpx" height="150rpx" fit="cover"></my-view-img>
    </view>
  </my-card-container>
 
 
  <my-card-container content-padding="0" padding="0rpx 20rpx 10rpx">
    <van-cell-group class="my-cell-group" border="{{false}}">
      <van-cell title-width="280rpx" class="my-cell" center title="直播间官方收录">
        <view class="text-right">
          <van-switch  checked="{{ liveRoomData.isFeedsPublic }}" size="24px" bind:change="onChangeFeedsPublic" />
        </view>
      </van-cell>
      <van-cell title-width="280rpx" class="my-cell" center title="回放功能">
        <view class="text-right">
          <van-switch checked="{{ !liveRoomData.isCloseReplay }}" size="24px" bind:change="onChangeCloseReplay" />
        </view>
      </van-cell>
<!--      <van-cell title-width="280rpx" class="my-cell" center title="客服功能">-->
<!--        <view class="text-right">-->
<!--          <van-switch checked="{{ !liveRoomData.isCloseKf }}" size="24px" bind:change="onChangeCloseKf" />-->
<!--        </view>-->
<!--      </van-cell>-->
      <van-cell title-width="280rpx" class="my-cell" border="{{false}}" center title="直播间全局禁言">
        <view class="text-right">
          <van-switch disabled="{{!(liveRoomData.LiveStatus===102)}}" checked="{{ liveRoomData.isCloseComment }}" size="24px" bind:change="onChangeCloseComment" />
        </view>
      </van-cell>
<!--      <van-cell title-width="280rpx" class="my-cell" center title="商品货架">-->
<!--        <view class="text-right">-->
<!--          <van-switch checked="{{ !liveRoomData.isCloseGoods }}" size="24px" bind:change="onChangeCloseGoods" />-->
<!--        </view>-->
<!--      </van-cell>-->
    </van-cell-group>
  </my-card-container>
 
  <my-card-container content-padding="0" padding="10rpx 20rpx">
    <view class="">
      <view class="text-center padding-tb relative">
        直播间小助手
        <text class="absolute more theme-font-color font-size-13 padding-lr-5" bind:tap="showAssistantDialog">添加</text>
      </view>
      <view class="index-cell">
        <van-cell-group border="{{false}}">
          <block wx:if="{{assistantList.length>0}}" >
            <van-cell class="padding-cell" center wx:for="{{assistantList}}" wx:key="key" title-width="400rpx" border="{{index!==assistantList.length-1?true:false}}">
              <view slot="icon">
                <van-image round width="80rpx" height="80rpx" class="van-image"
                           src="{{item.headimg}}"/>
              </view>
              <view class="padding-lr" slot="title">
                <view class="van-cell-text no-wrap">{{item.nickName}}</view>
                <view class="van-cell-desc">
                  {{item.alias}}
                </view>
              </view>
              <view class="flex-col flex-center">
                <view class="font-bold  theme-font-color" bind:tap="deleteAssistant" data-alias="{{item.alias}}">
                  移除
                </view>
              </view>
            </van-cell>
          </block>
          <view class="padding-lr">
            <van-divider contentPosition="center">没有更多了</van-divider>
          </view>
        </van-cell-group>
      </view>
 
    </view>
    <van-dialog
        width="680rpx"
        use-slot
        title="添加小助手"
        show="{{ showDialog }}"
        close-on-click-overlay
        show-confirm-button="{{false}}"
    >
      <view class="padding-middle">
        <van-field
            class="my-cell"
            value="{{ wechatName }}"
            name="wechatName"
            placeholder="请输入微信昵称"
            bind:blur="checkWechatName"
            error-message="{{wechatNameError}}"
        >
        </van-field>
        <van-field
            class="my-cell"
            value="{{ wechatNumber }}"
            name="wechatNumber"
            placeholder="请输入微信号"
            bind:blur="checkWechatNumber"
            error-message="{{wechatNumberError}}"
        >
        </van-field>
        <view class="padding-middle">
          <view class="font-size-12 desc">添加后,小助手可以协助主播对直播间进行评论管理。</view>
          <view class="font-size-12 desc">还可以添加{{maxAssistantCount-currentAssistantCount}}个</view>
        </view>
        <view class="text-center">
          <van-button class="theme-button btn-padding" type="warning" bind:click="handleSaveAssistant">确定</van-button>
        </view>
      </view>
    </van-dialog>
  </my-card-container>
 
  <my-card-container content-padding="0" padding="10rpx 20rpx 20rpx">
    <view class="">
      <view class="text-center padding-tb">
        直播商品列表
      </view>
      <view class="index-cell">
        <van-cell-group wx:if="{{goodsList.length>0}}" border="{{false}}">
          <my-entry-cell  wx:for="{{goodsList}}" wx:key="key" list-item="{{item}}" title-width="600rpx" from="promotionsManage">
            <view class="text-center relative my-entry-cell-right">
              <van-button class="clear-van-btn" size="mini" plain type="warning" disabled="{{!(liveRoomData.LiveStatus===101)}}" data-goodsid="{{item.goodsId}}" bind:click="pushGoodsInLive">
                <text class="font-size-14">推送</text>
              </van-button>
            </view>
          </my-entry-cell>
          <view class="padding-lr">
            <van-divider contentPosition="center">没有更多了</van-divider>
          </view>
        </van-cell-group>
        <my-empty wx:if="{{goodsList.length<1}}"></my-empty>
      </view>
 
    </view>
  </my-card-container>
</view>
 
 
 
<view class="fixed-footer fixed-footer-button flex-row space-around">
  <navigator url="../liveRoomGoods/liveRoomGoods?roomid={{liveRoomData.RoomId||''}}">
    <van-button class="theme-button btn-padding" type="warning">添加商品</van-button>
  </navigator>
  <navigator url="../liveRoomCreate/liveRoomCreate?doccode={{liveRoomData.DocCode}}&roomid={{liveRoomData.RoomId||''}}">
    <van-button class="theme-button btn-padding" type="warning">编辑</van-button>
  </navigator>
</view>
 
 
<my-poster-creator-btn id="my-poster-creator" live-room="{{liveRoomData}}"></my-poster-creator-btn>