Commit cef72d73 by xuyl

优化直播间

1 parent bcdbd3e9
......@@ -351,7 +351,7 @@ export default {
this.hasMediaCover = true;
} else {
this.hasMediaCover = false;
this.backgroundData.bgc = newV || this.backgroundData.bgc;
this.liveRoom.liveBackgroundWall = this.backgroundData.bgc = newV || this.backgroundData.bgc;
}
},
immediate: true,
......@@ -369,7 +369,6 @@ export default {
async created() {
const { id } = this.$route.query.row;
this.incomingId = id;
console.log(this.$route.query.row)
if (id) {
await this.$apis.live
.LiveRoomDetailApi({ id })
......@@ -405,7 +404,7 @@ export default {
handleLook(type) {
this.dialogType = type;
this.dialogVisibleImg = true;
this.dialogSrc = type == "img" ? this.liveRoom.preLiveMediaCover : this.liveRoom.preLiveMediaFile;
this.dialogSrc = type == "img" ? this.liveRoom.preLiveMediaCover : this.liveRoom.preLiveMediaFileVid;
},
handleVideoChange(e) {
const self = this;
......@@ -440,9 +439,7 @@ export default {
async handleCreateorEdit(draftFlag) {
let sucText = "创建直播间成功!";
let errText = "创建直播间失败!";
console.log(this.liveRoom)
const params = Object.assign(this.liveRoom,this.baseForm);
console.log(params)
if (params.preLiveMediaType == "0") {
params.preLiveMediaFile = params.preLiveMediaFilePic || "";
params.preLiveMediaCover = params.preLiveMediaCoverPic || "";
......@@ -483,7 +480,6 @@ export default {
if (!!this.incomingStatus && this.incomingStatus == "3" && !params.draftFlag) {
delete params.id;
}
console.log(this.liveRoom);
await this.$apis.live.addOrUpdataLiveRoomApi(params).then(res => {
if (res.code == "0") {
this.$message.success(sucText);
......
......@@ -22,9 +22,11 @@
<div class="bgmName">
<el-popover placement="bottom" width="400" trigger="hover">
<div class="qrCode-popover">
<img :src="scope.scope.liveVideoCover" style="width: 360px; height: 360px" />
</div>
<img :src="scope.scope.liveVideoCover" style="width: 36px; height: 36px" slot="reference" />
<img v-if="scope.scope.liveVideoCover"
:src="scope.scope.liveVideoCover" style="width: 360px; height: 360px" />
</div>
<img v-if="scope.scope.liveVideoCover" :src="scope.scope.liveVideoCover"
style="width: 36px; height: 36px" slot="reference" />
</el-popover>
<span class="name">{{ scope.scope.name }}</span>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!