Browse Source

修改样式

lex-xin 4 months ago
parent
commit
ea9d9e678f

+ 1 - 1
src/views/coursewarePlay/component/courseware-type/index.module.less

@@ -123,7 +123,7 @@
     &::before {
       content: '';
       position: absolute;
-      left: 5px;
+      left: 0;
       width: 5px;
       height: 100%;
       background: linear-gradient(270deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.03) 100%);

+ 2 - 0
src/views/coursewarePlay/index.module.less

@@ -66,6 +66,7 @@
       font-size: 16px;
       color: #ffffff;
       line-height: 22px;
+      pointer-events: auto;
     }
   }
   .titleContent {
@@ -76,6 +77,7 @@
       font-size: 14px;
       color: #ffffff;
       line-height: 20px;
+      pointer-events: auto;
     }
     span {
       margin-left: 6px;

+ 4 - 7
src/views/coursewarePlay/index.tsx

@@ -1148,14 +1148,11 @@ export default defineComponent({
             ref={headeRef}
           >
             <div class={styles.backBtn}>
-              <Icon name={iconBack} onClick={() => {
-                console.log('back')
-                goback()
-              }} />
+              <Icon name={iconBack} onClick={goback} />
               <div class={styles.titleSection}>
-                <div class={styles.title}>{popupData.tabName}</div>
+                <div class={styles.title} onClick={goback}>{popupData.tabName}</div>
                 <div class={styles.titleContent}>
-                  <p>{data.itemList[popupData.activeIndex]?.name}</p>
+                  <p onClick={goback}>{data.itemList[popupData.activeIndex]?.name}</p>
                   {data.detail?.lessonTargetDesc ? <span onClick={() => onTitleTip('phaseGoals', data.detail?.lessonTargetDesc)}>阶段目标</span>: ""}
                   {data.itemList[popupData.activeIndex]?.checkItem ? <span onClick={() => onTitleTip('checkItem', data.itemList[popupData.activeIndex]?.checkItem)}>检查事项</span> : ""}
                 </div>
@@ -1215,7 +1212,7 @@ export default defineComponent({
 
               // 判断当前选择的课程类型是否开通
               if(item.useStatus === "LOCK") {
-                handleShowVip(item.lessonCoursewareId, "LESSON")
+                handleShowVip(data.currentId, "LESSON")
                 return
               }
 

+ 2 - 3
src/views/lessonCourseware/component/CourseItem/index.module.less

@@ -47,8 +47,7 @@
   margin: 20px 0 0 0;
   padding: 0 8px;
   width: 33.333%;
-  max-width: 126px;
-
+  max-width: 114px;
   .cover {
     position: relative;
     border-radius: 2px;
@@ -124,7 +123,7 @@
     &::before {
       content: '';
       position: absolute;
-      left: 5px;
+      left: 3px;
       width: 5px;
       height: 100%;
       background: linear-gradient(270deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.03) 100%);