Commit f9e3856c by 胡悦

fix(Study): 调整课程标签位置并延迟刷新学习时长

将课程标签向左微调2像素以避免显示问题
添加200ms延迟确保学习时长刷新在正确时机执行
1 parent 8a15652f

3.11 KB | W: | H:

2.64 KB | W: | H:

assets/images/studyCenter/Elective.png
assets/images/studyCenter/Elective.png
assets/images/studyCenter/Elective.png
assets/images/studyCenter/Elective.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -273,7 +273,7 @@ export default { ...@@ -273,7 +273,7 @@ export default {
// 左上角标签 // 左上角标签
.course-tag-left { .course-tag-left {
position: absolute; position: absolute;
left: 0; left: toRpx(-2);
top: 0; top: 0;
width: toRpx(94); width: toRpx(94);
height: toRpx(48); height: toRpx(48);
......
...@@ -380,7 +380,9 @@ export default { ...@@ -380,7 +380,9 @@ export default {
this.getLevelExamInfo() this.getLevelExamInfo()
// 关闭后刷新学习中心的学习时长 // 关闭后刷新学习中心的学习时长
if (this.$refs.pointRef && typeof this.$refs.pointRef.getMyStudyTime === 'function') { if (this.$refs.pointRef && typeof this.$refs.pointRef.getMyStudyTime === 'function') {
this.$refs.pointRef.getMyStudyTime() setTimeout(() => {
this.$refs.pointRef.getMyStudyTime()
}, 200)
} }
} else { } else {
this.examPopInfo.isExamLoading = false this.examPopInfo.isExamLoading = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!