408249787@qq.com 1 week ago
parent
commit
7f7ef48f0b
2 changed files with 3 additions and 6 deletions
  1. 1 2
      pages/practice/detail.uvue
  2. 2 4
      pages/practice/index.uvue

+ 1 - 2
pages/practice/detail.uvue

@@ -6,8 +6,7 @@ const progress = ref(1)
 const webviewSrc = ref('')
 const webviewSrc = ref('')
 var isLoading = ref(true)
 var isLoading = ref(true)
 onMounted(() => {
 onMounted(() => {
-  webviewSrc.value = router.query().src
-  progress.value = router.query().progress
+  webviewSrc.value = 'https://oss.xiaoxiongcode.com/physics-unit-practice/index.html?num=' + router.query().num
 })
 })
 function handleMessage(e) {
 function handleMessage(e) {
   var pages = getCurrentPages();
   var pages = getCurrentPages();

+ 2 - 4
pages/practice/index.uvue

@@ -30,12 +30,10 @@ onMounted(async () => {
   }
   }
 })
 })
 function handleDetail(item: any) {
 function handleDetail(item: any) {
-  console.log('https://oss.xiaoxiongcode.com/physics-unit-practice/index.html?num=' + item.sortNum)
   router.push({
   router.push({
-    path: "/pages/catalog/web-view",
+    path: "/pages/practice/detail",
     query: {
     query: {
-      src: 'https://oss.xiaoxiongcode.com/physics-unit-practice/index.html?num=' + item.sortNum,
-      progress: 2,
+      num: item.sortNum,
     }
     }
   });
   });
 }
 }