|
@@ -279,6 +279,7 @@ export default defineComponent({
|
|
|
};
|
|
|
|
|
|
onMounted(() => {
|
|
|
+ // debugger
|
|
|
// initMoveable();
|
|
|
const query = route.query;
|
|
|
console.log(query, props.preStudentNum, '学生人数');
|
|
@@ -470,6 +471,19 @@ export default defineComponent({
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+ // ppt iframe 点击事件
|
|
|
+ // const iframeClick = () => {
|
|
|
+ // if(document.all) {
|
|
|
+ // document.getElementById("iframe-ppt")?.attachEvent("click", () => {
|
|
|
+ // activeData.model = !activeData.model
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // document.getElementById("iframe-ppt")?.contentWindow?.postMessage({
|
|
|
+ // api: 'onAttendToggleMenu'
|
|
|
+ // }, '*');
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
// 切换播放
|
|
|
// const togglePlay = (m: any, isPlay: boolean) => {
|
|
|
// if (isPlay) {
|
|
@@ -555,6 +569,7 @@ export default defineComponent({
|
|
|
acitveTimer.value = setTimeout(
|
|
|
() => {
|
|
|
const item = data.itemList[index];
|
|
|
+
|
|
|
if (item) {
|
|
|
if (item.type == 'MUSIC') {
|
|
|
activeData.model = true;
|
|
@@ -582,6 +597,9 @@ export default defineComponent({
|
|
|
data.animationState = 'end'
|
|
|
});
|
|
|
}
|
|
|
+ if (item.type === 'PPT') {
|
|
|
+ //
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
activeData.isAnimation ? 800 : 0
|
|
@@ -1090,6 +1108,9 @@ export default defineComponent({
|
|
|
{data.itemList.map((m: any, mIndex: number) => {
|
|
|
const isRender = Math.abs(popupData.activeIndex - mIndex) < 2;
|
|
|
const isEmtry = Math.abs(popupData.activeIndex - mIndex) > 4;
|
|
|
+ // if (isRender && m.type === 'PPT') {
|
|
|
+ // setTimeout(() => iframeClick() ,500)
|
|
|
+ // }
|
|
|
// if (isRender) {
|
|
|
// m.isRender = true;
|
|
|
// }
|
|
@@ -1203,7 +1224,12 @@ export default defineComponent({
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
|
- ) : (
|
|
|
+ )
|
|
|
+ : m.type === 'PPT' ? <div class={styles.iframePpt}>
|
|
|
+ <div class={styles.pptBox}></div>
|
|
|
+ <iframe src={`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(m.content)}`} width='100%' height='100%' frameborder='1'></iframe>
|
|
|
+ </div>
|
|
|
+ : (
|
|
|
<MusicScore
|
|
|
activeModel={activeData.model}
|
|
|
activeStatus={popupData.activeIndex === mIndex}
|