|
@@ -92,6 +92,16 @@ const beforeCheck = (cb: (status: boolean) => void) => {
|
|
|
}
|
|
|
|
|
|
const back: () => void = () => {
|
|
|
+ // 如果是乐教通,点击返回按钮,需要关闭当前窗口
|
|
|
+ if (window.location.href.includes('isYjt')) {
|
|
|
+ window.parent.postMessage(
|
|
|
+ {
|
|
|
+ api: "api_YjtClose"
|
|
|
+ },
|
|
|
+ "*"
|
|
|
+ );
|
|
|
+ return
|
|
|
+ }
|
|
|
submitMaxScore()
|
|
|
sendBackRecordTotalTime()
|
|
|
postMessage({
|
|
@@ -206,7 +216,10 @@ export default defineComponent({
|
|
|
style={search.headerHeight ? { height: '1rem', paddingTop: '0.25rem' } : ''}
|
|
|
>
|
|
|
<div class={styles.leftButton}>
|
|
|
- {search?.modelType && !search.unitId ? null : <img class={styles.backbtn} src={iconBack} onClick={back} />}
|
|
|
+ {(search?.modelType && !search.unitId) ? null : <img class={styles.backbtn} src={iconBack} onClick={back} />}
|
|
|
+ {
|
|
|
+ search.isHideBack === 'false' ? <img class={styles.backbtn} src={iconBack} onClick={back} /> : null
|
|
|
+ }
|
|
|
<div class={styles.titleWrap}>
|
|
|
<div class={styles.title}>{detailState.activeDetail?.musicSheetName}</div>
|
|
|
{search.albumName && <div class={styles.album}>{search.albumName}</div>}
|
|
@@ -239,7 +252,7 @@ export default defineComponent({
|
|
|
)}
|
|
|
</Transition>
|
|
|
</div>
|
|
|
- <div class={[styles.moreButton]} style={{ opacity: detailState.initRendered ? 1 : 0 }}>
|
|
|
+ <div class={[styles.moreButton]} style={{ opacity: detailState.initRendered ? 1 : 0 }}>
|
|
|
{!search?.modelType && modelType.value !== 'init' && !detailState.frozenMode && !detailState.isLessonTrain && (
|
|
|
<Button
|
|
|
data-step="m0"
|
|
@@ -299,8 +312,8 @@ export default defineComponent({
|
|
|
<div class={classNames(styles['botton-tips'],metronomeData.cursorMode === 3 ? styles.tipSpec : '')}>{metronomeData.cursorTips}</div>
|
|
|
</>}
|
|
|
</span>
|
|
|
- </Button>
|
|
|
- </>
|
|
|
+ </Button>
|
|
|
+ </>
|
|
|
{detailState.initRendered && !search.lessonTrainingId && !search.questionId && detailState.activeDetail?.musicSheetType == 'CONCERT' && (
|
|
|
<Button
|
|
|
class={[styles.button, styles.hasText]}
|
|
@@ -321,7 +334,7 @@ export default defineComponent({
|
|
|
{['practice', 'evaluation'].includes(modelType.value) && (
|
|
|
<>
|
|
|
{
|
|
|
- modelType.value === 'practice' ?
|
|
|
+ modelType.value === 'practice' ?
|
|
|
<Button
|
|
|
data-step="m1"
|
|
|
class={[styles.button, styles.hasText]}
|
|
@@ -353,7 +366,7 @@ export default defineComponent({
|
|
|
</Button>
|
|
|
)}
|
|
|
{
|
|
|
- modelType.value === 'practice' ?
|
|
|
+ modelType.value === 'practice' ?
|
|
|
<Button
|
|
|
data-step="m3"
|
|
|
class={[styles.button, styles.hasText]}
|
|
@@ -365,7 +378,7 @@ export default defineComponent({
|
|
|
>
|
|
|
<ButtonIcon key="music" name={SettingState.sett.fingering ? 'fingeringOn' : 'fingeringOff'} />
|
|
|
<span>指法</span>
|
|
|
- </Button> : null
|
|
|
+ </Button> : null
|
|
|
}
|
|
|
</>
|
|
|
)}
|
|
@@ -421,8 +434,8 @@ export default defineComponent({
|
|
|
|
|
|
<Evaluating ref={evaluatingRef} />
|
|
|
</>
|
|
|
- )}
|
|
|
-
|
|
|
+ )}
|
|
|
+
|
|
|
{['practice', 'evaluation'].includes(modelType.value) && !search.lessonTrainingId && (
|
|
|
<Popover
|
|
|
trigger="manual"
|