|
@@ -9,7 +9,7 @@ import { Badge, Circle, Popover, Popup, showConfirmDialog, showToast, NoticeBar
|
|
|
import Speed from "./speed";
|
|
|
import { evaluatingData, handleStartEvaluat } from "/src/view/evaluating";
|
|
|
import Settting from "./settting";
|
|
|
-import state, { IPlatform, handleChangeSection, handleResetPlay, handleRessetState, togglePlay, IPlayState, refreshMusicSvg } from "/src/state";
|
|
|
+import state, { IPlatform, handleChangeSection, handleResetPlay, handleRessetState, togglePlay, IPlayState, refreshMusicSvg, EnumMusicRenderType } from "/src/state";
|
|
|
import { getAudioCurrentTime } from "/src/view/audio-list";
|
|
|
import { followData, toggleFollow } from "/src/view/follow-practice";
|
|
|
import { api_back } from "/src/helpers/communication";
|
|
@@ -905,7 +905,21 @@ export default defineComponent({
|
|
|
playBtn.value.disabled && styles.disabled,
|
|
|
state.platform === IPlatform.PC && state.musicScoreBtnDirection === "left" ? styles.playLeftButton : state.platform === IPlatform.PC && state.musicScoreBtnDirection === "right" ? styles.playRightButton : "",
|
|
|
]}
|
|
|
- onClick={() => togglePlay(state.playState === "play" ? "paused" : "play")}
|
|
|
+ onClick={() => {
|
|
|
+ // C调能播放唱名,非C调时,只有谱面类型是首调时,才能播放唱名
|
|
|
+ if (!state.isCTone && state.playSource === 'mingSong') {
|
|
|
+ const notPlayDesc = state.musicRenderType === EnumMusicRenderType.staff ? '该曲目的五线谱目前还不支持播放唱名' : state.musicRenderType === EnumMusicRenderType.fixedTone ? '该曲目的固定调目前还不支持播放唱名' : '';
|
|
|
+ if (notPlayDesc) {
|
|
|
+ showToast({
|
|
|
+ message: notPlayDesc,
|
|
|
+ position: "top",
|
|
|
+ className: "selectionToast",
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ togglePlay(state.playState === "play" ? "paused" : "play")
|
|
|
+ }}
|
|
|
>
|
|
|
<div class={styles.btnWrap}>
|
|
|
<img style={{ display: state.playState === "play" ? "none" : "" }} class={styles.iconBtn} src={headImg("icon_play.png")} />
|