liuyu 5 years ago
parent
commit
fef84b2d7c
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/layout/live/detailInfo.vue

+ 5 - 1
src/layout/live/detailInfo.vue

@@ -51,7 +51,7 @@
                 <div id="main-video" class="video-box col-div" style="justify-content: flex-end"></div>
               </el-col>
               <el-col :span="6" class="two">
-                <el-col :span="24" class="twoOne" v-for="(item, index) in zjrList" :key="index">
+                <el-col v-show="zjrshow" :span="24" class="twoOne" v-for="(item, index) in zjrList" :key="index">
                   <p>
                     <span class="zjr-sel-info">{{ item.zjrname }}</span>
                     <span class="twobtn">
@@ -186,6 +186,7 @@ export default {
       showbtn_: false,
       roomdetail: {},
       zjrList: [],
+      zjrshow: false,
     };
   },
   created() {
@@ -231,6 +232,9 @@ export default {
       if (this.$checkRes(res)) {
         console.log(res.data);
         this.$set(this, `roomdetail`, res.data);
+        if (res.data.anchorid === this.user.uid) {
+          this.zjrshow = true;
+        }
         for (const elm of res.data.zjr) {
           const ru = await this.roomuserfetch(elm);
           if (this.$checkRes(ru)) {