|
@@ -8,6 +8,7 @@ import { api_closeCamera, api_openCamera, api_savePicture } from "/src/helpers/c
|
|
|
import { smoothAnimationState} from "/src/page-instrument/view-detail/smoothAnimation"
|
|
|
import Recommendation from "../../custom-plugins/helper-model/recommendation";
|
|
|
import { resetRenderMusicScore } from "/src/view/music-score";
|
|
|
+import ScreenModel from "../../custom-plugins/helper-model/screen-model";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: "settting",
|
|
@@ -31,7 +32,7 @@ export default defineComponent({
|
|
|
}
|
|
|
const formatterTimeMs = (value: any) => value = String(Math.min(3000, value));
|
|
|
return () => (
|
|
|
- <div class={styles.settting}>
|
|
|
+ <div class={[styles.settting, styles[state.modeType]]}>
|
|
|
<div class={styles.head}>
|
|
|
<img class={styles.headTit} src={headImg("settingName.png")} />
|
|
|
<img class={styles.closeImg} src={headImg("closeImg.png")} onClick={()=>{ headTopData.settingMode = false }} />
|
|
@@ -46,10 +47,13 @@ export default defineComponent({
|
|
|
<div class={styles.tit}>循环播放</div>
|
|
|
<Switch v-model={state.setting.repeatAutoPlay}></Switch>
|
|
|
</div>
|
|
|
- <div class={styles.cellBox}>
|
|
|
- <div class={styles.tit}>旋律线</div>
|
|
|
- <Switch v-model={smoothAnimationState.isShow.value}></Switch>
|
|
|
- </div>
|
|
|
+ {
|
|
|
+ state.isSingleLine &&
|
|
|
+ <div class={styles.cellBox}>
|
|
|
+ <div class={styles.tit}>旋律线</div>
|
|
|
+ <Switch v-model={smoothAnimationState.isShow.value}></Switch>
|
|
|
+ </div>
|
|
|
+ }
|
|
|
<div class={styles.cellBox}>
|
|
|
<div class={styles.tit}>延迟检测</div>
|
|
|
<Switch v-model={state.setting.soundEffect}></Switch>
|
|
@@ -139,7 +143,7 @@ export default defineComponent({
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class={styles.cellBtnBox}>
|
|
|
- <img src={headImg("tpbz.png")} />
|
|
|
+ <img src={headImg("tpbz.png")} onClick={() => (helperData.screenModelShow = true)} />
|
|
|
<img src={headImg("yjfk.png")} onClick={() => (helperData.recommendationShow = true)} />
|
|
|
</div>
|
|
|
</div>
|
|
@@ -157,6 +161,21 @@ export default defineComponent({
|
|
|
}}
|
|
|
/>
|
|
|
</Popup>
|
|
|
+ <Popup
|
|
|
+ class={["popup-custom"]}
|
|
|
+ v-model:show={helperData.screenModelShow}
|
|
|
+ onClose={() => {
|
|
|
+ helperData.screenModelShow = false;
|
|
|
+ }}
|
|
|
+ position="right"
|
|
|
+ teleport="body"
|
|
|
+ >
|
|
|
+ <ScreenModel
|
|
|
+ onClose={(open: Boolean) => {
|
|
|
+ helperData.screenModelShow = false;
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ </Popup>
|
|
|
</div>
|
|
|
);
|
|
|
},
|