skyblued 2 years ago
parent
commit
765b8c751d
2 changed files with 5 additions and 2 deletions
  1. 5 1
      src/views/courseList/index.tsx
  2. 0 1
      src/views/coursewarePlay/index.tsx

+ 5 - 1
src/views/courseList/index.tsx

@@ -1,6 +1,6 @@
 import request from '@/helpers/request'
 import { state } from '@/state'
-import { Empty, Grid, GridItem, Icon } from 'vant'
+import { Button, Empty, Grid, GridItem, Icon } from 'vant'
 import { defineComponent, onMounted, reactive } from 'vue'
 import styles from './index.module.less'
 import iconLook from './image/look.svg'
@@ -62,6 +62,7 @@ export default defineComponent({
                     查看
                     <Icon name="play-circle-o" />
                   </div>
+                 
                   {item.unlock && (
                     <div class={styles.look}>
                       <Icon name={iconLook} /> 未解锁
@@ -72,6 +73,9 @@ export default defineComponent({
             )
           })}
         </Grid>
+        <Button onClick={() => {
+          location.href = 'http://192.168.3.114:1000/teacher.html#/coursewarePlay?id=1610595720511209474'
+        }}>测试</Button>
         {!data.list.length && <Empty description="空空如也" />}
       </div>
     )

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

@@ -100,7 +100,6 @@ export default defineComponent({
     })
     return () => (
       <div class={styles.coursewarePlay}>
-        <OHeader />
         <div class={styles.backBtn} onClick={() => goback()}>
           <Icon name={iconBack} />
           返回