transfer-legacy.cb9937c5.js 4.3 KB

12
  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,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}System.register(["./index-legacy.c1f63540.js","./manage-center-legacy.e314e1e5.js","./index-legacy.c75fe8a2.js","./index-legacy.45d07924.js"],(function(i){"use strict";var o,a,s,c,u,p,l,h,g,y,d,f;return{setters:[function(t){o=t.d,a=t.o,s=t.f,c=t.c,u=t.B},function(t){p=t.s,l=t.t,h=t.m,g=t.a,y=t.w},function(t){d=t.q},function(t){f=t.I}],execute:function(){i("default",o({name:"download-transfer",data:function(){return{wxStatus:!1,type:"student",buttonText:"下载管乐团学员端"}},mounted:function(){var i=this.$route.query,o=i.pn,s=i.url,c=i.action,u=i.pageTag,p=r(i,t),l=location,h=l.origin,g=l.pathname,y="BandMusicTeam://linkUrl=",f="orchestrastudent://html:8888/SplashActivity?url=";"s"===o?(this.type="student",this.buttonText="下载管乐团学员端",g="/orchestra-student/",y="BandMusicTeam://linkUrl=",f="orchestrastudent://html:8888/SplashActivity?url="):"t"===o?(this.type="teacher",this.buttonText="下载管乐团伴学端",g="/orchestra-teacher/",y="BandMusicTeamTeacher://linkUrl=",f="orchestrateacher://html:8888/SplashActivity?url="):"m"===o&&(this.type="manage",this.buttonText="下载管乐团管理端",g="/orchestra-school/",y="BandMusicTeamManager://linkUrl=",f="orchestramanager://html:8888/SplashActivity?url="),document.title=this.buttonText;var w=h+g+"#/";if(s||c){var m=d.stringify(function(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},p)),b={url:w+=s+(m?"?"+m:""),action:c||"h5",pageTag:u||1},O=encodeURIComponent(JSON.stringify(b));console.log(b,"iosStr"),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=y+O:/(Android)/i.test(navigator.userAgent)?window.location.href=f+O:a("请用手机或移动设备打开")}},methods:{onDownload:function(){if(s().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="https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-student.apk"):"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="https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-teacher.apk"):"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="https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-manager.apk"):"student"===this.type?(t="https://www.pgyer.com/2Wg2",e="https://www.pgyer.com/9NBz"):"teacher"===this.type?(t="https://www.pgyer.com/v5yB",e="https://www.pgyer.com/BQeE"):"manage"===this.type&&(t="https://www.pgyer.com/DGrR",e="https://www.pgyer.com/TEWv"),s().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?t&&(window.location.href=t):/(Android)/i.test(navigator.userAgent)?window.location.href=e:a("请用手机或移动设备打开")}}},render:function(){var t=this;return c("div",{class:[g.downloadContainer]},["teacher"!==this.type&&"manage"!==this.type&&c(f,{src:p},null),"teacher"===this.type&&c(f,{src:l},null),"manage"===this.type&&c(f,{src:h},null),c("div",{class:g.buttonGroup},[c(u,{round:!0,size:"large",color:"#FF8057",class:g.btn,onClick:this.onDownload},{default:function(){return[t.buttonText]}})]),this.wxStatus&&c("div",{class:g.wxpopup,onClick:function(){t.wxStatus=!1}},[c("img",{src:y,alt:""},null)])])}}))}}}))}();