|
@@ -304,6 +304,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)
|
|
@@ -317,6 +321,10 @@ export default defineComponent({
|
|
|
window.addEventListener('message', showLoading)
|
|
|
})
|
|
|
onUnmounted(() => {
|
|
|
+ postMessage({
|
|
|
+ api: 'setStatusBarTextColor',
|
|
|
+ content: { statusBarTextColor: false }
|
|
|
+ })
|
|
|
window.removeEventListener('message', showLoading)
|
|
|
})
|
|
|
|
|
@@ -362,7 +370,7 @@ export default defineComponent({
|
|
|
const removeCourse = async () => {
|
|
|
Dialog.confirm({
|
|
|
title: '提示',
|
|
|
- message: '您是否确定移除课件',
|
|
|
+ message: '您是否确定移出课件',
|
|
|
confirmButtonColor: '#269a93',
|
|
|
cancelButtonText: '取消',
|
|
|
confirmButtonText: '确定'
|
|
@@ -376,7 +384,7 @@ export default defineComponent({
|
|
|
}
|
|
|
)
|
|
|
setTimeout(() => {
|
|
|
- Toast('移除成功')
|
|
|
+ Toast('移出成功')
|
|
|
musicDetail.value.coursewareStatus = 0
|
|
|
}, 100)
|
|
|
} catch {
|
|
@@ -612,23 +620,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(
|
|
@@ -802,8 +810,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>
|
|
@@ -823,16 +845,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()}
|
|
|
>
|