|
@@ -6,6 +6,10 @@
|
|
|
<div class="pec_h_l_title">
|
|
|
<span>{{ courseDetail.title }}</span>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div v-if="tcid && inviteCode" class="inviteBox" style="margin-left: 20px;">
|
|
|
+ <span>随机码:{{ inviteCode }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<div class="pec_h_right">
|
|
@@ -45,7 +49,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="pec_content">
|
|
|
- <iframe :src="iframeSrc" v-if="showIframe" style="width: 100%; height: 100%; border: none"></iframe>
|
|
|
+ <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" frameborder="no" border="0" :src="iframeSrc" v-if="showIframe" style="width: 100%; height: 100%; border: none"></iframe>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -69,7 +73,8 @@ export default {
|
|
|
showIframe: false,
|
|
|
iframeSrc: "",
|
|
|
courseDetail: {},
|
|
|
- pageLoading: false
|
|
|
+ pageLoading: false,
|
|
|
+ inviteCode:"",
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -95,6 +100,26 @@ export default {
|
|
|
this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
|
|
|
this.tcid2 ? this.tcid2.split(",") : []
|
|
|
)[0] || "";
|
|
|
+ if (this.tcid && res.data[1].length) {
|
|
|
+ let _inviteA = [];
|
|
|
+ for (var ik = 0; ik < res.data[1].length; ik++) {
|
|
|
+ _inviteA.push({
|
|
|
+ cid: res.data[1][ik].classid,
|
|
|
+ ic: res.data[1][ik].code,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ for (var ik = 0; ik < _inviteA.length; ik++) {
|
|
|
+ if (
|
|
|
+ this.arrayToArray(
|
|
|
+ _inviteA[ik].cid.split(","),
|
|
|
+ this.tcid.split(",")
|
|
|
+ ).length
|
|
|
+ ) {
|
|
|
+ this.inviteCode = _inviteA[ik].ic;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
this.setPptIframe()
|
|
|
this.pageLoading = false;
|
|
|
})
|
|
@@ -229,4 +254,12 @@ export default {
|
|
|
border-radius: 0 0 12px 12px;
|
|
|
background-color: #fff;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+.inviteBox {
|
|
|
+ font-size: 14px;
|
|
|
+ /* margin-top: 5px; */
|
|
|
+ color: #00000099;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
</style>
|