Bläddra i källkod

课件播放指法预览样式

liushengqiang 2 år sedan
förälder
incheckning
232dcfd23a

+ 5 - 3
src/page-instrument/view-detail/index.tsx

@@ -338,8 +338,10 @@ export default defineComponent({
 		});
 		const browsInfo = browser();
 		const handleOpenFignerView = () => {
-			detailData.orientation = state.fingeringInfo.orientation || 0;
-			api_setRequestedOrientation(detailData.orientation);
+			if (!query.modelType){
+				detailData.orientation = state.fingeringInfo.orientation || 0;
+				api_setRequestedOrientation(detailData.orientation);
+			}
 			// const url = `${
 			// 	/(192|localhost)/.test(location.origin)
 			// 		? "http://192.168.3.114:3000/instrument.html"
@@ -353,7 +355,7 @@ export default defineComponent({
 			detailData.fingerPreView = true;
 		};
 		const handleCloseFignerView = () => {
-			if (detailData.orientation == 1) {
+			if (!query.modelType && detailData.orientation == 1){
 				api_setRequestedOrientation(0);
 			}
 			detailData.fingerPreView = false;

+ 2 - 2
src/page-instrument/view-figner/index.tsx

@@ -242,7 +242,7 @@ export default defineComponent({
 					<div
 						class={[
 							styles.fingerContent,
-							fingerData.fingeringInfo.orientation === 1 ? styles.fingerBottom : styles.fingerRight,
+							!query.modelType && fingerData.fingeringInfo.orientation === 1 ? styles.fingerBottom : styles.fingerRight,
 						]}
 					>
 						<div class={styles.wrapFinger}>
@@ -377,7 +377,7 @@ export default defineComponent({
 					<Popup
 						class="tonePopup"
 						v-model:show={data.tnoteShow}
-						position={fingerData.fingeringInfo.orientation === 1 ? "bottom" : "right"}
+						position={!query.modelType && fingerData.fingeringInfo.orientation === 1 ? "bottom" : "right"}
 					>
 						<div class={styles.tones}>
 							<div class={styles.toneTitle}>