<!--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>
|