|
@@ -38,6 +38,7 @@ import { initSmoothAnimation } from "./smoothAnimation"
|
|
|
import EmptyMusic, { isEmptyMusicShow } from "./emptyMusic"
|
|
|
import { position } from "html2canvas/dist/types/css/property-descriptors/position";
|
|
|
import Loading from "./loading"
|
|
|
+import bgJson from "./images/index.json";
|
|
|
|
|
|
// const DelayCheck = defineAsyncComponent(() =>
|
|
|
// import('/src/page-instrument/evaluat-model/delay-check')
|
|
@@ -143,7 +144,8 @@ export default defineComponent({
|
|
|
if (state.isPreView) {
|
|
|
state.zoom = 0.65
|
|
|
}
|
|
|
- state.isSingleLine = query.isSingleLine === "true" ? true : false; // 一行谱模式
|
|
|
+ // 只有总控平台和预览 默认是多行谱
|
|
|
+ (state.isPreView || query.isCbs) && (state.isSingleLine = false)
|
|
|
// Promise.all([sysMusicScoreAccompanimentQueryPage(id)]).then((values) => {
|
|
|
// getMusicInfo(values[0]);
|
|
|
// });
|
|
@@ -251,24 +253,8 @@ export default defineComponent({
|
|
|
);
|
|
|
throw new Error("webApi_beatTimes 完成");
|
|
|
}
|
|
|
- // 根据当前文件有没有 设置当前的播放模式
|
|
|
- if(!state.music){
|
|
|
- if(state.accompany){
|
|
|
- state.playSource = "background"
|
|
|
- }else{
|
|
|
- if(state.fanSong){
|
|
|
- state.playType = "sing"
|
|
|
- state.playSource = "music"
|
|
|
- }else if(state.banSong){
|
|
|
- state.playType = "sing"
|
|
|
- state.playSource = "background"
|
|
|
- }else if(state.mingSong){
|
|
|
- state.playType = "sing"
|
|
|
- state.playSource = "mingSong"
|
|
|
- }
|
|
|
- handlerModeChange("play", "music")
|
|
|
- }
|
|
|
- }
|
|
|
+ // 刷新时值
|
|
|
+ handlerModeChange("play", "music")
|
|
|
/**
|
|
|
* 2024.1.25
|
|
|
* 设置节拍器,跟练需要播放系统节拍器,所以不需要判断needTick状态
|
|
@@ -467,6 +453,11 @@ export default defineComponent({
|
|
|
background: state.setting.camera ? `rgba(${state.setting.eyeProtection ? "253,244,229" : "255,255,255"} ,${state.setting.cameraOpacity / 100}) !important` : "",
|
|
|
}}
|
|
|
>
|
|
|
+ <img
|
|
|
+ style={{opacity: state.setting.camera && state.modeType === 'evaluating' ? state.setting.cameraOpacity / 100 : 1}}
|
|
|
+ class={styles.pageBg}
|
|
|
+ src={state.modeType === 'practise' ? bgJson[1] : state.modeType === 'evaluating' ? bgJson[2] : state.modeType === 'follow' ? bgJson[3] : ''}
|
|
|
+ />
|
|
|
{/* 骨架屏 */}
|
|
|
{/* <Transition name="van-fade">
|
|
|
{detailData.skeletonLoading && (
|