liushengqiang il y a 2 ans
Parent
commit
ddf5b1148b

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/assets/index-42cc1c94.js


+ 1 - 1
dist/assets/index-ebf0bccb.js → dist/assets/index-927e6630.js

@@ -1 +1 @@
-import{d as g,F as w,V as y,bm as i,M as h,U as r,ao as v,j as c,aJ as b,aq as _}from"./index-b3d7adf8.js";import{s as T}from"./instrument-736ab454.js";import"./index-d8c517f3.js";import"./vue3-lottie.es-fc45e0e2.js";import"./index-15dc0da5.js";import"./index-5e0105dd.js";const L="_skeleton_vtlsh_1",x="_detail_vtlsh_12",R="_container_vtlsh_20",l={skeleton:L,detail:x,container:R},k=g({name:"music-list",setup(){const u=w(),e=y({isLoading:!0,isProductLoading:!1,product:[{state:!1,name:"五线谱",type:i.staff,base64:""},{state:!1,name:"首调",type:i.firstTone,base64:""},{state:!1,name:"固定调",type:i.fixedTone,base64:""}]});h(()=>{window.appName="colexiu",r.xmlUrl=u.xmlUrl,r.musicRenderType=i.staff,e.isLoading=!1,v({message:"生成中",duration:0})});const m=async()=>{var o;const s=e.product.find(n=>n.type===r.musicRenderType);if(!s)return;s.state=!0,s.base64=await p();const t=e.product.find(n=>!n.state);if(t){r.musicRenderType=t.type,e.isLoading=!0,setTimeout(()=>e.isLoading=!1,500);return}_(),console.log(e.product),(o=window.parent)==null||o.postMessage({api:"webApi_renderSvg",product:JSON.stringify(e.product)},"*")},p=()=>new Promise(s=>{setTimeout(async()=>{var d;const t=(d=document.getElementById("osmdSvgPage1"))==null?void 0:d.cloneNode(!0);if(!t){s("");return}const o=t.width.animVal.value,n=t.height.animVal.value,a=document.createElementNS("http://www.w3.org/2000/svg","rect");a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("width",`${o*2}`),a.setAttribute("height",`${n*2}`),a.setAttribute("fill","#fff"),t.prepend(a);const f=T(t.outerHTML).toDataURL("image/png",1);s(f)},500)});return()=>c("div",{class:l.detail},[c("div",{id:"scrollContainer",class:[l.container,"hideCursor"]},[!e.isLoading&&c(b,{showSelection:!1,onRendered:m},null)])])}});export{k as default};
+import{d as g,F as w,V as y,bm as i,M as h,U as r,ao as v,j as c,aJ as b,aq as _}from"./index-b3d7adf8.js";import{s as T}from"./instrument-cf38a6e9.js";import"./index-d8c517f3.js";import"./vue3-lottie.es-fc45e0e2.js";import"./index-15dc0da5.js";import"./index-5e0105dd.js";const L="_skeleton_vtlsh_1",x="_detail_vtlsh_12",R="_container_vtlsh_20",l={skeleton:L,detail:x,container:R},k=g({name:"music-list",setup(){const u=w(),e=y({isLoading:!0,isProductLoading:!1,product:[{state:!1,name:"五线谱",type:i.staff,base64:""},{state:!1,name:"首调",type:i.firstTone,base64:""},{state:!1,name:"固定调",type:i.fixedTone,base64:""}]});h(()=>{window.appName="colexiu",r.xmlUrl=u.xmlUrl,r.musicRenderType=i.staff,e.isLoading=!1,v({message:"生成中",duration:0})});const m=async()=>{var o;const s=e.product.find(n=>n.type===r.musicRenderType);if(!s)return;s.state=!0,s.base64=await p();const t=e.product.find(n=>!n.state);if(t){r.musicRenderType=t.type,e.isLoading=!0,setTimeout(()=>e.isLoading=!1,500);return}_(),console.log(e.product),(o=window.parent)==null||o.postMessage({api:"webApi_renderSvg",product:JSON.stringify(e.product)},"*")},p=()=>new Promise(s=>{setTimeout(async()=>{var d;const t=(d=document.getElementById("osmdSvgPage1"))==null?void 0:d.cloneNode(!0);if(!t){s("");return}const o=t.width.animVal.value,n=t.height.animVal.value,a=document.createElementNS("http://www.w3.org/2000/svg","rect");a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("width",`${o*2}`),a.setAttribute("height",`${n*2}`),a.setAttribute("fill","#fff"),t.prepend(a);const f=T(t.outerHTML).toDataURL("image/png",1);s(f)},500)});return()=>c("div",{class:l.detail},[c("div",{id:"scrollContainer",class:[l.container,"hideCursor"]},[!e.isLoading&&c(b,{showSelection:!1,onRendered:m},null)])])}});export{k as default};

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/assets/index-legacy-6509b9c4.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/assets/index-legacy-660922be.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/assets/instrument-cf38a6e9.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/assets/instrument-legacy-25fe24ac.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/assets/polyfills-legacy-cb5223e9.js


+ 1 - 1
dist/colexiu.html

@@ -55,7 +55,7 @@
   <img id="loading" class="show" src="./loading.svg" alt="loading" />
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-7f55fc7f.js"></script>
+  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-cb5223e9.js"></script>
   <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/colexiu-legacy-3fd9bcd2.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 

+ 1 - 1
dist/index.html

@@ -98,7 +98,7 @@
   <img id="loading" class="show" src="./loading.svg" alt="loading" />
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-7f55fc7f.js"></script>
+  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-cb5223e9.js"></script>
   <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-ac3702c7.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 

+ 3 - 3
dist/instrument.html

@@ -36,7 +36,7 @@
       },
     })
   </script>
-  <script type="module" crossorigin src="./assets/instrument-736ab454.js"></script>
+  <script type="module" crossorigin src="./assets/instrument-cf38a6e9.js"></script>
   <link rel="modulepreload" crossorigin href="./assets/index-b3d7adf8.js">
   <link rel="modulepreload" crossorigin href="./assets/index-d8c517f3.js">
   <link rel="modulepreload" crossorigin href="./assets/vue3-lottie.es-fc45e0e2.js">
@@ -54,8 +54,8 @@
   <img id="loading" class="show" src="./loading.svg" alt="loading" />
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-7f55fc7f.js"></script>
-  <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/instrument-legacy-c1a7480d.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-cb5223e9.js"></script>
+  <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/instrument-legacy-25fe24ac.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 
 </html>

+ 1 - 1
dist/orchestra.html

@@ -70,7 +70,7 @@
   </script>
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-7f55fc7f.js"></script>
+  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-cb5223e9.js"></script>
   <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/orchestra-legacy-698edda9.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 

+ 1 - 1
dist/report-share.html

@@ -49,7 +49,7 @@
   </script>
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-7f55fc7f.js"></script>
+  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-cb5223e9.js"></script>
   <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/report-share-legacy-5cbde029.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 

+ 9 - 1
src/page-instrument/header-top/index.tsx

@@ -25,6 +25,7 @@ import { storeData } from "/src/store";
 import TeacherTop from "../custom-plugins/guide-page/teacher-top";
 import StudentTop from "../custom-plugins/guide-page/student-top";
 import { HANDLE_WORK_ADD } from "../custom-plugins/work-index";
+import { browser } from "/src/utils";
 
 /** 头部数据和方法 */
 export const headTopData = reactive({
@@ -63,6 +64,7 @@ export default defineComponent({
 	name: "header-top",
 	emits: ["close"],
 	setup(props, { emit }) {
+		const query = getQuery();
 		// 是否显示引导
 		const showGuide = ref(false);
 		const showStudentGuide = ref(false);
@@ -246,6 +248,7 @@ export default defineComponent({
 
 			return flag;
 		});
+		const browInfo = browser();
 		/** 返回 */
 		const handleBack = () => {
 			HANDLE_WORK_ADD();
@@ -254,12 +257,17 @@ export default defineComponent({
 				window.close();
 				return;
 			}
+			if ((browInfo.iPhone || browInfo.ios) && query.workRecord){
+				setTimeout(() => {
+					api_back();
+				}, 550)
+				return
+			}
 			api_back();
 		};
 
 		/** 根据参数设置模式 */
 		const getQueryModelSetModelType = () => {
-			const query: any = getQuery();
 			/** 作业模式 start, 如果为作业模式不处理,让作业模块处理 */
 			if (query.workRecord) {
 				return;

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff