liuyu il y a 4 ans
Parent
commit
1bb019cb0e
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/views/live/roomDetail.vue

+ 3 - 0
src/views/live/roomDetail.vue

@@ -33,6 +33,7 @@
           <span>直播中:{{ total }}</span>
         </el-col>
         <el-col :span="12" class="meetBtn">
+          <span>在线人数:{{ onlinetotal }}</span>
           <!-- <el-button type="warning" round size="small" @click="recordSave()">签到退出<i class="el-icon-time el-icon--right"></i></el-button> -->
           <!-- <el-button v-show="switchbtn" type="warning" round size="small" @click="roomMeetBtn()"
             >苹果用户互动<i class="el-icon-camera el-icon--right"></i
@@ -221,6 +222,7 @@ export default {
       swichzjrstatus: false,
       order: {},
       supportShow: false,
+      onlinetotal: 0,
     };
   },
   created() {
@@ -646,6 +648,7 @@ export default {
       if (this.$checkRes(result)) {
         console.log(result.total);
         this.$set(this, `total`, result.total);
+        this.$set(this, `onlinetotal`, result.onlinetotal);
       }
     },
     onSubmit() {