skyblued 2 years ago
parent
commit
f2d6de9d0c

+ 3 - 0
src/views/courseList/index.tsx

@@ -208,6 +208,9 @@ export default defineComponent({
             )
           })}
         </Grid>
+        {/* <Button onClick={() => {
+          location.href = 'http://192.168.1.10:1000/#/coursewarePlay?id=1610595720511209474&kId=1610115960752414721'
+        }}>胜强测试</Button> */}
         {!data.loading && !data.list.length && <Empty description="空空如也" />}
       </div>
     )

+ 13 - 0
src/views/coursewarePlay/component/point.module.less

@@ -51,10 +51,23 @@
   }
 }
 .item {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
   padding: 4px 5px;
   border-radius: 6px;
+  :global{
+    .van-icon{
+        display: none;
+    }
+  }
 }
 .itemActive {
   background: rgba(0, 0, 0, 0.15);
   color: var(--van-primary);
+  :global{
+    .van-icon{
+        display: block;
+    }
+  }
 }

+ 8 - 3
src/views/coursewarePlay/component/points.tsx

@@ -1,8 +1,9 @@
-import { defineComponent, reactive } from 'vue'
+import { defineComponent, reactive, watch } from 'vue'
 import styles from './point.module.less'
 import iconMulv from '../image/icon-mulv.svg'
 import iconArrow from '../image/icon-arrow.svg'
-import { Collapse, CollapseItem } from 'vant'
+import iconZhibo from '../image/icon-zhibo.svg'
+import { Collapse, CollapseItem, Icon } from 'vant'
 export default defineComponent({
   name: 'points',
   props: {
@@ -22,7 +23,10 @@ export default defineComponent({
   emits: ['handleSelect'],
   setup(props, { emit }) {
     const pointData = reactive({
-      active: props.tabActive || '1610827376354500609' || ''
+      active: props.tabActive || ''
+    })
+    watch(() => props.tabActive, () => {
+      pointData.active = props.tabActive
     })
     return () => (
       <div class={styles.container}>
@@ -58,6 +62,7 @@ export default defineComponent({
                                 }}
                               >
                                 {n.name}
+                                <Icon name={iconZhibo} />
                               </div>
                             )
                           })}

+ 1 - 0
src/views/coursewarePlay/image/icon-zhibo.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1673454396647" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1930" width="32" height="32" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M74.666667 853.333333c-17.066667 0-32-14.933333-32-32v-426.666666c0-17.066667 14.933333-32 32-32s32 14.933333 32 32v426.666666c0 17.066667-14.933333 32-32 32zM366.933333 853.333333c-17.066667 0-32-14.933333-32-32v-618.666666c0-17.066667 14.933333-32 32-32s32 14.933333 32 32v618.666666c0 17.066667-14.933333 32-32 32zM657.066667 853.333333c-17.066667 0-32-14.933333-32-32v-341.333333c0-17.066667 14.933333-32 32-32s32 14.933333 32 32v341.333333c0 17.066667-12.8 32-32 32zM949.333333 853.333333c-17.066667 0-32-14.933333-32-32v-512c0-17.066667 14.933333-32 32-32s32 14.933333 32 32v512c0 17.066667-14.933333 32-32 32z" fill="#FF8057" p-id="1931"></path></svg>

+ 1 - 1
src/views/coursewarePlay/index.tsx

@@ -473,7 +473,7 @@ export default defineComponent({
                                     />
                                   )}
                                 </div>
-                                <div>{popupData.itemName}</div>
+                                <div>{m.name}</div>
                               </div>
                             </div>
                           )}

+ 2 - 2
src/views/lessonCourseware/index.tsx

@@ -91,9 +91,9 @@ export default defineComponent({
             )
           })}
         </Grid>
-        <Button onClick={() => {
+        {/* <Button onClick={() => {
           location.href = 'http://192.168.3.114:1000/teacher.html#/courseList?id=1610595624868495362'
-        }}>胜强测试</Button>
+        }}>胜强测试</Button> */}
         {!data.loading && !data.list.length && <OEmpty tips="没有课件" />}
       </div>
     )