|
@@ -25,7 +25,7 @@ import MusicScore from './component/musicScore';
|
|
|
// import iconDian from './image/icon-dian.svg';
|
|
|
// import iconPoint from './image/icon-point.svg';
|
|
|
// import qs from 'query-string';
|
|
|
-import { iconUp, iconDown, iconPen, iconTouping, iconMenu, iconCourseType } from './image/icons.json';
|
|
|
+import { iconUp, iconDown, iconTouping, iconMenu, iconCourseType } from './image/icons.json';
|
|
|
import Points from './component/points';
|
|
|
import { browser } from '@/helpers/utils';
|
|
|
import { Vue3Lottie } from 'vue3-lottie';
|
|
@@ -60,17 +60,17 @@ export default defineComponent({
|
|
|
const parentContainer = reactive({
|
|
|
width: '100vw'
|
|
|
});
|
|
|
- const setContainer = () => {
|
|
|
- const min = Math.min(screen.width, screen.height);
|
|
|
- const max = Math.max(screen.width, screen.height);
|
|
|
- const width = min * (16 / 9);
|
|
|
- if (width > max) {
|
|
|
- parentContainer.width = '100vw';
|
|
|
- return;
|
|
|
- } else {
|
|
|
- parentContainer.width = width + 'px';
|
|
|
- }
|
|
|
- };
|
|
|
+ // const setContainer = () => {
|
|
|
+ // const min = Math.min(screen.width, screen.height);
|
|
|
+ // const max = Math.max(screen.width, screen.height);
|
|
|
+ // const width = min * (16 / 9);
|
|
|
+ // if (width > max) {
|
|
|
+ // parentContainer.width = '100vw';
|
|
|
+ // return;
|
|
|
+ // } else {
|
|
|
+ // parentContainer.width = width + 'px';
|
|
|
+ // }
|
|
|
+ // };
|
|
|
const handleInit = (type = 0) => {
|
|
|
//设置容器16:9
|
|
|
// setContainer();
|
|
@@ -358,6 +358,7 @@ export default defineComponent({
|
|
|
);
|
|
|
getItemList();
|
|
|
}
|
|
|
+ return true
|
|
|
} catch (error) {
|
|
|
console.log(error);
|
|
|
}
|
|
@@ -368,9 +369,9 @@ export default defineComponent({
|
|
|
popupData.pointOpen = true
|
|
|
popupData.pointContent = text
|
|
|
if(type === "checkItem") {
|
|
|
- popupData.pointTitle = '阶段目标'
|
|
|
- } else if(type === "phaseGoals") {
|
|
|
popupData.pointTitle = '检查事项'
|
|
|
+ } else if(type === "phaseGoals") {
|
|
|
+ popupData.pointTitle = '阶段目标'
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -470,8 +471,8 @@ export default defineComponent({
|
|
|
lessonCoursewareDetailId: id || route.query.id
|
|
|
}
|
|
|
})
|
|
|
- console.log(res.data, '1212')
|
|
|
data.refLevelList = res.data || []
|
|
|
+ return true
|
|
|
} catch {
|
|
|
//
|
|
|
}
|
|
@@ -592,15 +593,11 @@ export default defineComponent({
|
|
|
}, 4000);
|
|
|
};
|
|
|
/** 立即收起所有的模态框 */
|
|
|
- const clearModel = () => {
|
|
|
- clearTimeout(activeData.timer);
|
|
|
- closeToast();
|
|
|
- activeData.model = false;
|
|
|
- };
|
|
|
- const toggleModel = (type = true) => {
|
|
|
- activeData.model = type;
|
|
|
- };
|
|
|
-
|
|
|
+ // const clearModel = () => {
|
|
|
+ // clearTimeout(activeData.timer);
|
|
|
+ // closeToast();
|
|
|
+ // activeData.model = false;
|
|
|
+ // };
|
|
|
|
|
|
// 双击
|
|
|
const handleDbClick = () => {
|
|
@@ -1146,7 +1143,10 @@ export default defineComponent({
|
|
|
ref={headeRef}
|
|
|
>
|
|
|
<div class={styles.backBtn}>
|
|
|
- <Icon name={iconBack} onClick={() => goback()} />
|
|
|
+ <Icon name={iconBack} onClick={() => {
|
|
|
+ console.log('back')
|
|
|
+ goback()
|
|
|
+ }} />
|
|
|
<div class={styles.titleSection}>
|
|
|
<div class={styles.title}>{popupData.tabName}</div>
|
|
|
<div class={styles.titleContent}>
|
|
@@ -1208,13 +1208,15 @@ export default defineComponent({
|
|
|
return
|
|
|
}
|
|
|
data.currentId = item.id;
|
|
|
- await getDetail(item.id);
|
|
|
- await getRefLevel(item.id);
|
|
|
- popupData.coursewareOpen = false;
|
|
|
- popupData.activeIndex = 0;
|
|
|
- nextTick(() => {
|
|
|
- popupData.open = true
|
|
|
- })
|
|
|
+ const n = await getDetail(item.id);
|
|
|
+ const s = await getRefLevel(item.id);
|
|
|
+ if(n && s) {
|
|
|
+ popupData.coursewareOpen = false;
|
|
|
+ popupData.activeIndex = 0;
|
|
|
+ nextTick(() => {
|
|
|
+ popupData.open = true
|
|
|
+ })
|
|
|
+ }
|
|
|
}} />
|
|
|
</Popup>
|
|
|
|
|
@@ -1231,10 +1233,12 @@ export default defineComponent({
|
|
|
<Popup
|
|
|
class={[styles.popup, styles.popupCoursewarePlay, styles.popupPoint]}
|
|
|
round
|
|
|
- closeable
|
|
|
+ style={{ background: 'transparent !important' }}
|
|
|
v-model:show={popupData.pointOpen}
|
|
|
onClose={handleClosePopup}>
|
|
|
- <CoursewareTips content={popupData.pointContent} titleName={popupData.pointTitle} />
|
|
|
+ <CoursewareTips onClose={() => {
|
|
|
+ popupData.pointOpen = false
|
|
|
+ }} content={popupData.pointContent} titleName={popupData.pointTitle} />
|
|
|
</Popup>
|
|
|
|
|
|
<GlobalTools />
|