|
@@ -26,10 +26,12 @@ import iconFollowEndBtn from '../popups/follow/icons/icon-followEndBtn.png'
|
|
|
import iconEvaluatingEnd from './icons/icon-evaluatingEnd.png'
|
|
|
import iconCameraOff from './icons/icon-camera-off.png'
|
|
|
import iconCameraOn from './icons/icon-camera-on.png'
|
|
|
+import iconToggle from './icons/icon_toggle.png'
|
|
|
import store from 'store'
|
|
|
import styles from './index.module.less'
|
|
|
import { sendBackRecordTotalTime } from '../App'
|
|
|
import { unitTestData } from '../unitTest'
|
|
|
+import { toggleMusicSheet } from '../plugins/toggleMusicSheet'
|
|
|
export const confirmShow: Ref<boolean> = ref(false)
|
|
|
|
|
|
/**评测开始按钮状态 */
|
|
@@ -201,7 +203,7 @@ export default defineComponent({
|
|
|
evaluatingRef.value?.playerStop?.()
|
|
|
}}
|
|
|
>
|
|
|
- <img style={{width: '100%', display: 'block'}} src={iconEvaluatingEnd} />
|
|
|
+ <img style={{ width: '100%', display: 'block' }} src={iconEvaluatingEnd} />
|
|
|
</Button>
|
|
|
)}
|
|
|
</Transition>
|
|
@@ -213,7 +215,7 @@ export default defineComponent({
|
|
|
followRef.value?.handleEnd?.()
|
|
|
}}
|
|
|
>
|
|
|
- <img style={{width: '100%', display: 'block'}} src={iconFollowEndBtn} />
|
|
|
+ <img style={{ width: '100%', display: 'block' }} src={iconFollowEndBtn} />
|
|
|
</Button>
|
|
|
)}
|
|
|
</Transition>
|
|
@@ -254,6 +256,22 @@ export default defineComponent({
|
|
|
<span>模式</span>
|
|
|
</Button>
|
|
|
)}
|
|
|
+ {detailState.initRendered && !search.lessonTrainingId && !search.questionId && detailState.activeDetail?.musicSheetType == 'CONCERT' && (
|
|
|
+ <Button
|
|
|
+ class={[styles.button, styles.hasText]}
|
|
|
+ onClick={() => {
|
|
|
+ toggleMusicSheet.toggle(true)
|
|
|
+ }}
|
|
|
+ disabled={
|
|
|
+ (runtime.evaluatingStatus && !startButtonShow.value) ||
|
|
|
+ runtime.playState === 'play' ||
|
|
|
+ followRef.value?.data.start
|
|
|
+ }
|
|
|
+ >
|
|
|
+ <img src={iconToggle} />
|
|
|
+ <span>声轨</span>
|
|
|
+ </Button>
|
|
|
+ )}
|
|
|
{modelType.value === 'evaluation' && (
|
|
|
<>
|
|
|
<Popover
|
|
@@ -264,9 +282,11 @@ export default defineComponent({
|
|
|
show-arrow={false}
|
|
|
vSlots={{
|
|
|
reference: () => (
|
|
|
- <div onClick={(e: Event) => {
|
|
|
- if (!startButtonShow.value) e.stopPropagation()
|
|
|
- }}>
|
|
|
+ <div
|
|
|
+ onClick={(e: Event) => {
|
|
|
+ if (!startButtonShow.value) e.stopPropagation()
|
|
|
+ }}
|
|
|
+ >
|
|
|
<Button class={[styles.button, styles.hasText]} disabled={!startButtonShow.value}>
|
|
|
<img src={SettingState.sett.camera ? iconCameraOn : iconCameraOff} />
|
|
|
<span>摄像头</span>
|
|
@@ -288,7 +308,7 @@ export default defineComponent({
|
|
|
{SettingState.sett.camera && (
|
|
|
<Cell class="cameraOpacity" center title="透明度">
|
|
|
<Slider
|
|
|
- style={{width: '90%'}}
|
|
|
+ style={{ width: '90%' }}
|
|
|
min={0}
|
|
|
max={100}
|
|
|
v-model:modelValue={SettingState.sett.opacity}
|
|
@@ -446,7 +466,11 @@ export default defineComponent({
|
|
|
onClick={() => {
|
|
|
settingPopup.value?.onShow()
|
|
|
}}
|
|
|
- disabled={(runtime.evaluatingStatus && !startButtonShow.value) || runtime.playState === 'play' || followRef.value?.data.start }
|
|
|
+ disabled={
|
|
|
+ (runtime.evaluatingStatus && !startButtonShow.value) ||
|
|
|
+ runtime.playState === 'play' ||
|
|
|
+ followRef.value?.data.start
|
|
|
+ }
|
|
|
>
|
|
|
<ButtonIcon name="setting" />
|
|
|
<span>设置</span>
|