ソースを参照

feat: 唤起app修改

TIANYONG 4 ヶ月 前
コミット
4e1ed3df56

+ 6 - 5
src/views/creation/index-share.tsx

@@ -32,6 +32,7 @@ import iconUpward from './images/upward.png';
 import vipIcon from './images/vip_icon.png';
 import svipIcon from './images/svip_icon.png';
 import wxBg from './images/wx_bg.png';
+import tyBg from './images/ty.png';
 import {
   browser,
   getAuth,
@@ -307,7 +308,7 @@ export default defineComponent({
         shareCall(str)
         setTimeout(() => {
           if(Date.now() - t < 3500){
-            window.location.href = location.origin + '/classroom-app/#/transfer'
+            window.location.href = location.origin + '/#/transfer'
           }
         }, 3000)
       }
@@ -322,9 +323,9 @@ export default defineComponent({
       const userAgent = navigator.userAgent || navigator.vendor;
       const platform = navigator.platform || 'unknown';
       if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent) || (platform === 'MacIntel')) {
-        window.location.href = `BandInstrumentTeam://linkUrl=${iosStr}`
+        window.location.href = `ColexiuStudent://linkUrl=${iosStr}`
       } else if (/(Android)/i.test(userAgent)) {
-        window.location.href = `colexiukt://html:8888/SplashActivity?url=${iosStr}`
+        window.location.href = `colexiustudent://html:8888/SplashActivity?url=${iosStr}`
       } else {
         Toast('请用手机或移动设备打开')
       }
@@ -647,8 +648,8 @@ export default defineComponent({
                           playsinline
                           webkit-playsinline
                         />
-                        <img src="./img/ty.png" class={styles.tyBg} />
-                        <div class="audioBoxBg">
+                        <img src={tyBg} class={styles.tyBg} />
+                        <div class={styles.audioBoxBg}>
                             <div class={[styles.audioPan,  plyrState.playIngShow && styles.imgRotate]}>
                               <img class={styles.audioImg} src={state.musicDetail.img || musicBg} />
                             </div>

+ 1 - 1
src/views/creation/index.module.less

@@ -671,7 +671,7 @@
   min-height: calc(var(--creationHeight, 100vh) - var(--barheight) - 20vh - 210px - 55px);
 }
 .likeShareItem{
-  background-color: initial;
+  background-color: initial !important;
   padding: 0;
   margin-top: 25px;
   &:first-child{

+ 2 - 2
src/views/creation/index.tsx

@@ -424,8 +424,8 @@ export default defineComponent({
     }
     // 初始化五线谱
     function initStaff(){
-      // const src = `/klx-music-score/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
-      const src = `http://192.168.3.68:3000/instrument.html#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
+      const src = `/klx-music-score/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
+      // const src = `http://192.168.3.68:3000/instrument.html#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
       staffState.staffSrc = src
       window.addEventListener('message', (event) => {
         const { api, height } = event.data;