|
@@ -27,6 +27,7 @@ import TCPlayer from 'tcplayer.js';
|
|
|
import 'tcplayer.js/dist/tcplayer.min.css';
|
|
|
import { handleShowVip, state } from '@/state';
|
|
|
import { showToast, Slider } from 'vant';
|
|
|
+import { vaildCurrentUrl } from '@/helpers/validate';
|
|
|
|
|
|
// 秒转分
|
|
|
export const getSecondRPM = (second: number, type?: string) => {
|
|
@@ -361,10 +362,7 @@ export default defineComponent({
|
|
|
// item.value.materialMusicId
|
|
|
// }?Authorization=${Authorization}&isHideTitle=true`;
|
|
|
|
|
|
- const origin = /(localhost|192)/.test(location.host)
|
|
|
- ? 'https://test.gym.lexiaoya.cn/'
|
|
|
- : location.origin;
|
|
|
- const src = `${origin}/gym-music-score/?id=${item.value.materialMusicId}&isHideMusicList=true&systemType=${ state.platformType === 'TEACHER' ? 'teacher' : 'student'}`
|
|
|
+ const src = `${vaildCurrentUrl()}/gym-music-score/?id=${item.value.materialMusicId}&isHideMusicList=true&systemType=${ state.platformType === 'TEACHER' ? 'teacher' : 'student'}`
|
|
|
|
|
|
postMessage({
|
|
|
api: 'openAccompanyWebView',
|