|
@@ -305,6 +305,10 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
onMounted(async () => {
|
|
|
+ postMessage({
|
|
|
+ api: 'setStatusBarTextColor',
|
|
|
+ content: { statusBarTextColor: true }
|
|
|
+ })
|
|
|
await FetchList()
|
|
|
const { height } = useRect(headers as any)
|
|
|
const footer = useRect(footers as any)
|
|
@@ -318,6 +322,10 @@ export default defineComponent({
|
|
|
window.addEventListener('message', showLoading)
|
|
|
})
|
|
|
onUnmounted(() => {
|
|
|
+ postMessage({
|
|
|
+ api: 'setStatusBarTextColor',
|
|
|
+ content: { statusBarTextColor: false }
|
|
|
+ })
|
|
|
window.removeEventListener('message', showLoading)
|
|
|
})
|
|
|
|
|
@@ -363,7 +371,7 @@ export default defineComponent({
|
|
|
const removeCourse = async () => {
|
|
|
Dialog.confirm({
|
|
|
title: '提示',
|
|
|
- message: '您是否确定移除课件',
|
|
|
+ message: '您是否确定移出课件',
|
|
|
confirmButtonColor: '#269a93',
|
|
|
cancelButtonText: '取消',
|
|
|
confirmButtonText: '确定'
|
|
@@ -377,7 +385,7 @@ export default defineComponent({
|
|
|
}
|
|
|
)
|
|
|
setTimeout(() => {
|
|
|
- Toast('移除成功')
|
|
|
+ Toast('移出成功')
|
|
|
musicDetail.value.coursewareStatus = 0
|
|
|
}, 100)
|
|
|
} catch {
|
|
@@ -613,23 +621,23 @@ export default defineComponent({
|
|
|
try {
|
|
|
nextTick(() => {
|
|
|
if (musicPdfUrl.value) {
|
|
|
- // const url = `${location.origin}/pdf/web/viewer-pdf.html?file=${encodeURIComponent(
|
|
|
- // musicPdfUrl.value
|
|
|
- // )}&t=${Date.now()}`
|
|
|
- const url = `${location.origin}${
|
|
|
- location.pathname
|
|
|
- }pdf/web/viewer-pdf.html?file=${encodeURIComponent(
|
|
|
+ const url = `${location.origin}/pdf/web/viewer-pdf.html?file=${encodeURIComponent(
|
|
|
musicPdfUrl.value
|
|
|
)}&t=${Date.now()}`
|
|
|
+ // const url = `${location.origin}${
|
|
|
+ // location.pathname
|
|
|
+ // }pdf/web/viewer-pdf.html?file=${encodeURIComponent(
|
|
|
+ // musicPdfUrl.value
|
|
|
+ // )}&t=${Date.now()}`
|
|
|
|
|
|
const iframeRef = document.querySelector('#staffIframeRef') as any
|
|
|
iframeRef.contentWindow.location.replace(url)
|
|
|
staffData.iframeSrc = url
|
|
|
} else {
|
|
|
- const url = `${location.origin}${
|
|
|
- location.pathname
|
|
|
- }osmd/index.html?t=${new Date().getTime()}`
|
|
|
- // const url = `${location.origin}/osmd/index.html`
|
|
|
+ // const url = `${location.origin}${
|
|
|
+ // location.pathname
|
|
|
+ // }osmd/index.html?t=${new Date().getTime()}`
|
|
|
+ const url = `${location.origin}/osmd/index.html`
|
|
|
|
|
|
const iframeRef = document.querySelector('#staffIframeRef') as any
|
|
|
iframeRef.contentWindow.location.replace(
|
|
@@ -803,8 +811,22 @@ export default defineComponent({
|
|
|
src={getAssetsHomeFile('icon_album_active.png')}
|
|
|
/>
|
|
|
)}
|
|
|
- <span class={styles.coomposer}>
|
|
|
- {musicDetail.value?.composer}
|
|
|
+ <span class={styles.coomposer} onClick={() => {
|
|
|
+ if (
|
|
|
+ browser().isApp &&
|
|
|
+ musicDetail.value?.sourceType === 'TEACHER' &&
|
|
|
+ state.platformType === 'STUDENT'
|
|
|
+ ) {
|
|
|
+ router.push({
|
|
|
+ path: '/teacherHome',
|
|
|
+ query: {
|
|
|
+ teacherId: musicDetail.value?.userId,
|
|
|
+ tabs: 'music'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }}>
|
|
|
+ {musicDetail.value?.userName}
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -824,16 +846,10 @@ export default defineComponent({
|
|
|
}
|
|
|
}}
|
|
|
>
|
|
|
- <img src={iconAddCourse} />
|
|
|
+ <img src={musicDetail.value?.coursewareStatus?iconRemoveCourse: iconAddCourse} />
|
|
|
<span>添加课件</span>
|
|
|
</span>
|
|
|
<span
|
|
|
- style={{
|
|
|
- display:
|
|
|
- musicDetail.value?.musicSheetType === 'CONCERT'
|
|
|
- ? ''
|
|
|
- : 'none'
|
|
|
- }}
|
|
|
class={styles.download}
|
|
|
onClick={() => toggleFavorite()}
|
|
|
>
|