1 |
- !function(){var t=["pn","url","action","pageTag"];function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function a(t,e,n,r,o,a,i){try{var s=t[a](i),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,o)}System.register(["./index-legacy.90c82f08.js","./manage-center-legacy.26597464.js","./wx_bg-legacy.db85001d.js","./index-legacy.eb4bc59e.js"],(function(e){"use strict";var r,i,s,c,u,l,p,d,h,f,y,g,m;return{setters:[function(t){r=t.d,i=t.m,s=t.be,c=t.o,u=t.f,l=t.c,p=t.B},function(t){d=t.s,h=t.t,f=t.m,y=t.a},function(t){g=t.w},function(t){m=t.I}],execute:function(){e("default",r({name:"download-transfer",data:function(){return{wxStatus:!1,type:"student",androidUrl:"",buttonText:"下载管乐团学员端"}},mounted:function(){var e,r=this;return(e=regeneratorRuntime.mark((function e(){var a,u,l,p,d,h,f,y,g,m,w,b,v,O,A,x,E,j,P;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r.$route.query,u=a.pn,l=a.url,p=a.action,d=a.pageTag,h=o(a,t),f=location,y=f.origin,g=f.pathname,m=g,w="BandMusicTeam://linkUrl=",b="orchestrastudent://html:8888/SplashActivity?url=",v="android-student","s"===u?(r.type="student",r.buttonText="下载管乐团学员端",m="/orchestra-student/",w="BandMusicTeam://linkUrl=",b="orchestrastudent://html:8888/SplashActivity?url=",v="android-student"):"t"===u?(r.type="teacher",r.buttonText="下载管乐团伴学端",m="/orchestra-teacher/",w="BandMusicTeamTeacher://linkUrl=",b="orchestrateacher://html:8888/SplashActivity?url=",v="android-student"):"m"===u&&(r.type="manage",r.buttonText="下载管乐团管理端",m="/orchestra-school/",w="BandMusicTeamManager://linkUrl=",b="orchestramanager://html:8888/SplashActivity?url=",v="android-school"),e.prev=7,e.next=10,i.get("/api-student/open/appVersionInfo/queryLatestByPlatform",{params:{platform:v,status:"history"}});case 10:O=e.sent,A=O.data,r.androidUrl=A.downloadUrl,e.next=17;break;case 15:e.prev=15,e.t0=e.catch(7);case 17:if(document.title=r.buttonText,x=y+m+"#/",l||p){e.next=21;break}return e.abrupt("return");case 21:E=s.stringify(n({},h)),j={url:x+=l+(E?"?"+E:""),action:p||"h5",pageTag:d||1},P=encodeURIComponent(JSON.stringify(j)),console.log(j,"iosStr"),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=w+P:/(Android)/i.test(navigator.userAgent)?window.location.href=b+P:c("请用手机或移动设备打开");case 27:case"end":return e.stop()}}),e,null,[[7,15]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(t){a(i,r,o,s,c,"next",t)}function c(t){a(i,r,o,s,c,"throw",t)}s(void 0)}))})()},methods:{onDownload:function(){if(u().weixin)this.wxStatus=!0;else{var t="",e="";location.origin.indexOf("online.lexiaoya.cn")>-1?"student"===this.type?(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2/id1671474346?uo=4 ",e=this.androidUrl):"teacher"===this.type?(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2%E4%BC%B4%E5%AD%A6%E7%AB%AF/id1670584741?uo=4",e=this.androidUrl):"manage"===this.type&&(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2%E7%AE%A1%E7%90%86%E7%AB%AF/id1671473981?uo=4",e=this.androidUrl):"student"===this.type?(t="https://www.pgyer.com/2Wg2",e=this.androidUrl):"teacher"===this.type?(t="https://www.pgyer.com/v5yB",e=this.androidUrl):"manage"===this.type&&(t="https://www.pgyer.com/DGrR",e=this.androidUrl),u().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?t&&(window.location.href=t):/(Android)/i.test(navigator.userAgent)?window.location.href=e:c("请用手机或移动设备打开")}}},render:function(){var t=this;return l("div",{class:[y.downloadContainer]},["teacher"!==this.type&&"manage"!==this.type&&l(m,{src:d},null),"teacher"===this.type&&l(m,{src:h},null),"manage"===this.type&&l(m,{src:f},null),l("div",{class:y.buttonGroup},[l(p,{round:!0,size:"large",color:"#FF8057",class:y.btn,onClick:this.onDownload},{default:function(){return[t.buttonText]}})]),this.wxStatus&&l("div",{class:y.wxpopup,onClick:function(){t.wxStatus=!1}},[l("img",{src:g,alt:""},null)])])}}))}}}))}();
|