Merge branch 'hcb' of SH-Arbitrate/Arbitrate-FrontendH5 into master

This commit was merged in pull request #7.
This commit is contained in:
2024-05-09 13:57:51 +08:00
committed by Gitea
3 changed files with 103 additions and 27 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ export default {
async mounted() { async mounted() {
this.roomId = this.$route.query.roomId; this.roomId = this.$route.query.roomId;
let roleFlag = this.$route.query.flag; let roleFlag = this.$route.query.flag;
this.roleFlag = roleFlag; this.roleFlag = roleFlag || false;
if (roleFlag) { if (roleFlag) {
await this.startVideoFn(); await this.startVideoFn();
} }
+93 -17
View File
@@ -1,7 +1,7 @@
<template> <template>
<div class="page"> <div class="page">
<div class="iconImg"> <div class="iconImg" v-if="!modileFlag && rightType" @click="checkList(1)">
<i class="el-icon-d-arrow-left"></i> <i class="el-icon-d-arrow-left" style="font-size: 30px;color: aqua;"></i>
<!-- <i class="el-icon-d-arrow-right"></i> --> <!-- <i class="el-icon-d-arrow-right"></i> -->
</div> </div>
<div class="roompage" @mouseover="mouseHover" v-if="modileFlag"> <div class="roompage" @mouseover="mouseHover" v-if="modileFlag">
@@ -27,18 +27,23 @@
:videoFlag="videoFlag" :sharFlag="sharFlag"></roomFooter> :videoFlag="videoFlag" :sharFlag="sharFlag"></roomFooter>
</div> </div>
</div> </div>
<div class="roomPhone" v-if="!modileFlag"> <div class="roomPhone">
<div class="bodyPhone"> <div class="videoPage">
<div :class="sharingType">
</div>
<div :class="bodyPhoneType">
<div :class="userClassPhone" id="localStream"> <div :class="userClassPhone" id="localStream">
<div class="userNamePhone">{{ userId }}</div> <div class="userNamePhone">{{ userId }}</div>
</div> </div>
<div :class="userClassPhone" v-for="(item, index) in userList" :key="index" :id="item"> <div :class="userClassPhone" v-for="(item, index) in userList" :key="index" :id="item">
<div class="userNamePhone">{{ item }}</div> <div class="userNamePhone">{{ item }}</div>
</div> </div>
<i class="el-icon-d-arrow-right" style="font-size: 30px;color: aqua;" @click="checkList(2)" v-if="!rightType"></i>
</div> </div>
<div class="footerPhone"> <div class="footerPhone">
<roomFooterPhone @exitRoom="exitRoom"></roomFooterPhone> <roomFooterPhone @exitRoom="exitRoom"></roomFooterPhone>
</div> </div>
</div>
<!-- <div class="header"> <!-- <div class="header">
<roomFooterPhone @exitRoom="exitRoom"></roomFooterPhone> <roomFooterPhone @exitRoom="exitRoom"></roomFooterPhone>
</div> </div>
@@ -162,12 +167,15 @@ export default {
}, },
data() { data() {
return { return {
rightType:true,
sharingType: "sharing",
bodyPhoneType: "bodyPhone",
videoList: "videoList", videoList: "videoList",
videoClass: "videoItem", videoClass: "videoItem",
resFlag: null, resFlag: null,
appFlag: null, appFlag: null,
userClassPhone: "userVideoPhone", userClassPhone: "userVideoPhone",
userList: [1,2,3,4,5], userList: [1, 2],
userHeight: "100%", userHeight: "100%",
userPhoneHeight: "92%", userPhoneHeight: "92%",
userSign: "", userSign: "",
@@ -236,6 +244,22 @@ export default {
UploadUrl() { UploadUrl() {
return window.location.origin + "/tjformal/video/upload"; return window.location.origin + "/tjformal/video/upload";
}, },
/**移动端点击换出/隐藏视频列表 */
checkList(data) {
if (data == 1) {
if (this.userList.length < 1) {
this.userClassPhone = "userVideoPhone2"
}
this.sharingType = "sharing1";
this.bodyPhoneType = "bodyPhone1";
this.rightType = false;
} else if (data == 2) {
console.log("UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUu");
this.sharingType = "sharing1";
this.bodyPhoneType = "bodyPhone2";
this.rightType = true;
}
},
/**点击开启麦克风图标,关闭麦克风 */ /**点击开启麦克风图标,关闭麦克风 */
micClickOn() { micClickOn() {
trtc.updateLocalAudio({ mute: true }).then(() => { trtc.updateLocalAudio({ mute: true }).then(() => {
@@ -740,13 +764,15 @@ export default {
</script> </script>
<style scoped> <style scoped>
.iconImg{ .iconImg {
position: fixed; position: fixed;
top: 50%; z-index: 9999;
top: 40%;
height: 40px; height: 40px;
width: 40px; width: 40px;
/* right: 10px; */ right: 0px;
} }
.roompage { .roompage {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
@@ -884,14 +910,15 @@ export default {
.roomPhone { .roomPhone {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
background-color: yellow;
} }
.footerPhone{
.footerPhone {
width: 100%; width: 100%;
height: 8%; height: 8%;
background-color: greenyellow; background-color: greenyellow;
} }
.bodyPhone{
.bodyPhone {
width: 100%; width: 100%;
height: 92%; height: 92%;
display: flex; display: flex;
@@ -899,7 +926,31 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: center;
overflow-y: scroll; overflow-y: scroll;
background-color: rebeccapurple; }
.bodyPhone1 {
width: 40%;
height: 92%;
position: absolute;
right: 0;
top: 0;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
align-items: center;
overflow-y: scroll;
}
.bodyPhone2{
width: 0;
height: 0;
position: absolute;
right: 0;
top: 0;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
align-items: center;
overflow-y: scroll;
} }
/* 移动端样式 */ /* 移动端样式 */
@@ -914,19 +965,21 @@ export default {
.userVideoPhone { .userVideoPhone {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: yellow; background-color: rgb(124, 124, 104);
position: relative; position: relative;
} }
.userVideoPhone1{
.userVideoPhone1 {
width: 100%; width: 100%;
height: 49%; height: 49%;
background-color: rgb(43, 0, 255); background-color: rgb(161, 160, 169);
position: relative; position: relative;
} }
.userVideoPhone2{
.userVideoPhone2 {
width: 150px; width: 150px;
height: 150px; height: 150px;
background-color: rgb(43, 0, 255); background-color: rgb(161, 160, 169);
position: relative; position: relative;
} }
@@ -958,4 +1011,27 @@ export default {
margin-bottom: 10px; margin-bottom: 10px;
color: #38393b; color: #38393b;
} }
.videoPage {
width: 100%;
height: 100vh;
}
.sharing1 {
width: 100%;
height: 92%;
background: yellow;
}
.sharing {
width: 0;
height: 0;
}
.el-icon-d-arrow-right {
position: absolute;
left: 0;
top: 45%;
z-index: 999;
}
</style> </style>
+2 -2
View File
@@ -1,7 +1,7 @@
<template> <template>
<div class="page"> <div class="page">
<div class="content"> <div class="content">
<div class="screenShare" v-if="screenShareFlag"></div> <div class="screenShare"></div>
<div :class="videoList"> <div :class="videoList">
<div :class="videoClass" v-for="(item, index) in vivdeoList"></div> <div :class="videoClass" v-for="(item, index) in vivdeoList"></div>
</div> </div>
@@ -27,7 +27,7 @@ export default {
methods: { methods: {
screenShare() { screenShare() {
this.videoList = "videoList1"; this.videoList = "videoList1";
this.screenShareFlag = true; // this.screenShareFlag = true;
this.videoClass = "videoItem2"; this.videoClass = "videoItem2";
}, },
screenShareQ(){ screenShareQ(){