skyblued 2 年之前
父節點
當前提交
e39f7ce3a3
共有 2 個文件被更改,包括 10 次插入2 次删除
  1. 9 1
      src/views/mine-orchestra/my-class/index.tsx
  2. 1 1
      src/views/mine-orchestra/photo-list/index.tsx

+ 9 - 1
src/views/mine-orchestra/my-class/index.tsx

@@ -32,7 +32,15 @@ export default defineComponent({
       })
     }
     const openClassDetail = (item: any) => {
-      openDefaultWebView(`/classDetail?classId=${item.id}`)
+      postMessage({
+        api: 'open_app_page',
+        content: {
+          action: 'app',
+          pageTag: 'classDetail',
+          url: '',
+          params: JSON.stringify({ classId: item.id })
+        }
+      })
     }
     const { list } = toRefs(props)
     return () => (

+ 1 - 1
src/views/mine-orchestra/photo-list/index.tsx

@@ -36,7 +36,7 @@ export default defineComponent({
         const res = await request.post(`${state.platformApi}/orchestraPhotoAlbum/page`, {
           data: {
             ...data.pages,
-            orchestraId: props.orchestraId,
+            orchestraId: props.orchestraId || route.query.orchestraId,
             parentId: route.query.id
           }
         })