Ver Fonte

Merge branch 'master' of http://git.dayaedu.com/lex/orchestra-app

lex há 2 anos atrás
pai
commit
df38849b3f

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

@@ -69,7 +69,7 @@ export default defineComponent({
         return
       }
       if (!item.hasCache) {
-        if (browserInfo.isStudent || /(192|localhost)/.test(location.origin)) {
+        if (browserInfo.isStudent || route.query.isdev) {
           try {
             await showConfirmDialog({
               message: '当前课程没有缓存是否缓存'
@@ -79,7 +79,6 @@ export default defineComponent({
             return
           }
         }
-        item.downloadStatus = 1
         downCatch(item)
         return
       }
@@ -189,6 +188,8 @@ export default defineComponent({
                             <div class={styles.num}>下载中 {item.progress || 0}%</div>
                           ) : item.downloadStatus === 2 ? (
                             <div class={styles.num}>下载成功</div>
+                          ) : item.downloadStatus === 3 ? (
+                            <div class={styles.num}>重新下载</div>
                           ) : (
                             <div class={styles.num}>下载</div>
                           )}

+ 3 - 2
src/views/coursewarePlay/index.tsx

@@ -206,8 +206,9 @@ export default defineComponent({
     })
     // 返回
     const goback = () => {
-      // history.go(-1)
-      postMessage({ api: 'back' })
+      history.go(-1)
+
+      // postMessage({ api: 'back' })
     }
 
     const swipeRef = ref()

+ 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>
     )