|
@@ -1,25 +1,11 @@
|
|
|
import OEmpty from '@/components/o-empty'
|
|
|
import { postMessage } from '@/helpers/native-message'
|
|
|
import request from '@/helpers/request'
|
|
|
-import { browser } from '@/helpers/utils'
|
|
|
import { state } from '@/state'
|
|
|
-import { useRect } from '@vant/use'
|
|
|
import OFullRefresh from '@/components/o-full-refresh'
|
|
|
-import {
|
|
|
- Cell,
|
|
|
- CellGroup,
|
|
|
- DropdownItem,
|
|
|
- DropdownMenu,
|
|
|
- Icon,
|
|
|
- List,
|
|
|
- Popover,
|
|
|
- PullRefresh,
|
|
|
- Search,
|
|
|
- showConfirmDialog,
|
|
|
- Sticky
|
|
|
-} from 'vant'
|
|
|
+import { Cell, CellGroup, DropdownItem, DropdownMenu, Icon, List } from 'vant'
|
|
|
import { defineComponent, reactive, ref, onMounted, nextTick, computed } from 'vue'
|
|
|
-import { useRoute, useRouter } from 'vue-router'
|
|
|
+import { useRoute } from 'vue-router'
|
|
|
import { getImage } from './images'
|
|
|
import styles from './index.module.less'
|
|
|
import OSticky from '@/components/o-sticky'
|
|
@@ -34,9 +20,8 @@ export default defineComponent({
|
|
|
default: () => []
|
|
|
}
|
|
|
},
|
|
|
- setup(props, ctx) {
|
|
|
+ setup() {
|
|
|
const route = useRoute()
|
|
|
- const router = useRouter()
|
|
|
const imgDefault = getImage('icon-music.svg')
|
|
|
const userInfo = ref<any>({})
|
|
|
const data = reactive({
|
|
@@ -74,7 +59,9 @@ export default defineComponent({
|
|
|
try {
|
|
|
const res: any = await request.get(`/api-student/student/member`)
|
|
|
userInfo.value = res.data || {}
|
|
|
- } catch (error) {}
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error)
|
|
|
+ }
|
|
|
}
|
|
|
const option1 = computed(() => {
|
|
|
const v1: any = data.musicTree.find((n: any) => n.id == route.query.categorieid)
|
|
@@ -147,7 +134,8 @@ export default defineComponent({
|
|
|
}
|
|
|
//进入云教练
|
|
|
const openView = (item: any) => {
|
|
|
- let src = `${location.origin}/orchestra-music-score/?id=${item.id}`
|
|
|
+ const src = `${location.origin}/orchestra-music-score/?id=${item.id}`
|
|
|
+ console.log("🚀 ~ src:", src)
|
|
|
postMessage({
|
|
|
api: 'openAccompanyWebView',
|
|
|
content: {
|
|
@@ -160,7 +148,9 @@ export default defineComponent({
|
|
|
})
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
- getUserInfo()
|
|
|
+ if(state.platformType == 'STUDENT'){
|
|
|
+ getUserInfo()
|
|
|
+ }
|
|
|
getTree()
|
|
|
})
|
|
|
return () => (
|
|
@@ -178,7 +168,7 @@ export default defineComponent({
|
|
|
<DropdownItem
|
|
|
v-model:modelValue={data.value1}
|
|
|
options={option1.value}
|
|
|
- onChange={(val: any) => {
|
|
|
+ onChange={() => {
|
|
|
data.value2 = null
|
|
|
onSearch()
|
|
|
}}
|