Commit cef72d73 by xuyl

优化直播间

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