|
@@ -15,6 +15,7 @@ import Hammer from "hammerjs";
|
|
import { Button, Icon, Popup, Space } from "vant";
|
|
import { Button, Icon, Popup, Space } from "vant";
|
|
import GuideIndex from "./guide/guide-index";
|
|
import GuideIndex from "./guide/guide-index";
|
|
import { getQuery } from "/src/utils/queryString";
|
|
import { getQuery } from "/src/utils/queryString";
|
|
|
|
+import { browser } from "/src/utils";
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: "viewFigner",
|
|
name: "viewFigner",
|
|
@@ -31,6 +32,7 @@ export default defineComponent({
|
|
},
|
|
},
|
|
setup(props, { emit }) {
|
|
setup(props, { emit }) {
|
|
const query = getQuery();
|
|
const query = getQuery();
|
|
|
|
+ const browsInfo = browser();
|
|
const subject = props.isComponent ? props.subject || "pan-flute" : query.code || "pan-flute";
|
|
const subject = props.isComponent ? props.subject || "pan-flute" : query.code || "pan-flute";
|
|
const data = reactive({
|
|
const data = reactive({
|
|
loading: true,
|
|
loading: true,
|
|
@@ -198,7 +200,14 @@ export default defineComponent({
|
|
: relationship;
|
|
: relationship;
|
|
const canTizhi = Array.isArray(relationship[1]);
|
|
const canTizhi = Array.isArray(relationship[1]);
|
|
return (
|
|
return (
|
|
- <div class={styles.fingerBox}>
|
|
|
|
|
|
+ <div
|
|
|
|
+ class={[
|
|
|
|
+ styles.fingerBox,
|
|
|
|
+ !query.modelType && fingerData.fingeringInfo.orientation === 1
|
|
|
|
+ ? styles.fingerBottom
|
|
|
|
+ : styles.fingerRight,
|
|
|
|
+ ]}
|
|
|
|
+ >
|
|
<div class={styles.head}>
|
|
<div class={styles.head}>
|
|
<div class={styles.left}>
|
|
<div class={styles.left}>
|
|
<button
|
|
<button
|
|
@@ -239,12 +248,7 @@ export default defineComponent({
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class={[
|
|
|
|
- styles.fingerContent,
|
|
|
|
- !query.modelType && fingerData.fingeringInfo.orientation === 1 ? styles.fingerBottom : styles.fingerRight,
|
|
|
|
- ]}
|
|
|
|
- >
|
|
|
|
|
|
+ <div class={styles.fingerContent}>
|
|
<div class={styles.wrapFinger}>
|
|
<div class={styles.wrapFinger}>
|
|
<div id="fingeringContainer" class={styles.boxFinger}>
|
|
<div id="fingeringContainer" class={styles.boxFinger}>
|
|
<div
|
|
<div
|
|
@@ -278,7 +282,7 @@ export default defineComponent({
|
|
<Button class={styles.noteBtn}>
|
|
<Button class={styles.noteBtn}>
|
|
<Icon name="arrow-left" />
|
|
<Icon name="arrow-left" />
|
|
</Button>
|
|
</Button>
|
|
- <div class={styles.noteContent}>
|
|
|
|
|
|
+ <div class={[styles.noteContent, browsInfo.ios ? '' : styles.noteContentWrap]}>
|
|
<div class={styles.noteBox}>
|
|
<div class={styles.noteBox}>
|
|
{data.notes.map((note: IFIGNER_INSTRUMENT_Note, index: number) => {
|
|
{data.notes.map((note: IFIGNER_INSTRUMENT_Note, index: number) => {
|
|
const steps = new Array(Math.abs(note.step)).fill(1);
|
|
const steps = new Array(Math.abs(note.step)).fill(1);
|
|
@@ -377,7 +381,9 @@ export default defineComponent({
|
|
<Popup
|
|
<Popup
|
|
class="tonePopup"
|
|
class="tonePopup"
|
|
v-model:show={data.tnoteShow}
|
|
v-model:show={data.tnoteShow}
|
|
- position={!query.modelType && fingerData.fingeringInfo.orientation === 1 ? "bottom" : "right"}
|
|
|
|
|
|
+ position={
|
|
|
|
+ !query.modelType && fingerData.fingeringInfo.orientation === 1 ? "bottom" : "right"
|
|
|
|
+ }
|
|
>
|
|
>
|
|
<div class={styles.tones}>
|
|
<div class={styles.tones}>
|
|
<div class={styles.toneTitle}>
|
|
<div class={styles.toneTitle}>
|