skyblued 2 anos atrás
pai
commit
d339d12948

+ 12 - 0
src/teacher/screen-projection/index.tsx

@@ -79,6 +79,18 @@ export default defineComponent({
             {data.knowledgePointList.map((item: any) => {
               return (
                 <>
+                    <Cell title='胜强测试' isLink center onClick={() => hanldeOpenPlay({a :1610595720511209474})}>
+                          {{
+                            icon: () => (
+                              <Image
+                                style={{ marginRight: '12px' }}
+                                width={36}
+                                height={36}
+                                src={icons.music}
+                              />
+                            )
+                          }}
+                </Cell>
                   {Array.isArray(item.materialList) &&
                     item.materialList.map((n: any) => {
                       return (

+ 11 - 1
src/views/coursewarePlay/index.module.less

@@ -9,11 +9,12 @@
   left: 0;
   right: 0;
   z-index: 1;
-  padding: 10px 10px 0 40px;
+  padding: 10px 10px 0 10px;
   display: flex;
   align-items: center;
 }
 .backBtn {
+  position: absolute;
   color: #fff;
   width: 40px;
   height: 26px;
@@ -116,6 +117,15 @@
     border-top-right-radius: 0;
   }
 }
+.leftFixedBtns{
+  position: fixed;
+  top: 50%;
+  transform: translateY(-50%);
+  left: 20px;
+  .prePoint{
+    margin-bottom: 8px;
+  }
+}
 .fullBtn {
   width: 38px;
   height: 55px;

+ 8 - 0
src/views/coursewarePlay/index.tsx

@@ -291,6 +291,14 @@ export default defineComponent({
             </>
           )}
         </div>
+        <div class={styles.leftFixedBtns}>
+          <div class={[styles.fullBtn , styles.prePoint]} >
+            <span style={{textAlign: 'center'}}>上一<br />知识点</span>
+          </div>
+          <div class={styles.fullBtn} >
+            <span style={{textAlign: 'center'}}>下一<br />知识点</span>
+          </div>
+        </div>
         <Popup
           class={styles.popup}
           overlayClass={styles.overlayClass}