music.ce788382.js 757 B

1
  1. import{f as a,y as t,n as s}from"./index.e6d6174e.js";const c=a(),u=()=>""+new Date().getTime()+Math.floor(Math.random()*1e6),g=(e,i,o={})=>{const r=localStorage.getItem("behaviorId")||"",n=t.stringifyUrl({url:location.origin+"/accompany",query:{id:e.id,behaviorId:r,client:c.isStudent?"student":"teacher",...o}});console.log(n),s({api:"openAccompanyWebView",content:{url:n,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})},p=e=>{const i=t.stringify({...t.parse(location.hash.split("?")[1]),id:e.id}),o=location.origin+"/music-score/#/?"+i;console.log("\u{1F680} ~ \u4E91\u6559\u7EC3URL:",o),s({api:"openAccompanyWebView",content:{url:o,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};export{u as g,p as h,g as m};