|
@@ -15,6 +15,7 @@ import {
|
|
|
Popover,
|
|
|
PullRefresh,
|
|
|
Search,
|
|
|
+ showConfirmDialog,
|
|
|
Sticky
|
|
|
} from 'vant'
|
|
|
import { defineComponent, reactive, ref, onMounted, nextTick, computed } from 'vue'
|
|
@@ -33,6 +34,7 @@ export default defineComponent({
|
|
|
},
|
|
|
setup(props, ctx) {
|
|
|
const route = useRoute()
|
|
|
+ const router = useRouter()
|
|
|
const imgDefault = getImage('icon-music.svg')
|
|
|
const data = reactive({
|
|
|
loading: false,
|
|
@@ -157,6 +159,17 @@ export default defineComponent({
|
|
|
}
|
|
|
//进入云教练
|
|
|
const openView = (item: any) => {
|
|
|
+ if (!state.user.data.vipMember && state.platformType == 'STUDENT') {
|
|
|
+ showConfirmDialog({
|
|
|
+ message: '您暂未开通团练宝,请开通后使用'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ router.push({
|
|
|
+ path: '/memberCenter'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
let src = `${location.origin}/orchestra-music-score/?id=${item.id}`
|
|
|
console.log('🚀 ~ 去云教练的src', src)
|
|
|
postMessage({
|
|
@@ -176,7 +189,7 @@ export default defineComponent({
|
|
|
return () => (
|
|
|
<div class={styles['accompany-music-list']}>
|
|
|
<OSticky
|
|
|
- mode='sticky'
|
|
|
+ mode="sticky"
|
|
|
class={styles.heade}
|
|
|
onGetHeight={(height: number) => {
|
|
|
document.documentElement.style.setProperty('--header-height', height + 'px')
|