transfer-legacy.e1aaf952.js 4.2 KB

1
  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.47bc1690.js","./manage-center-legacy.e314e1e5.js","./index-legacy.0ebc214d.js"],(function(i){"use strict";var o,a,s,c,p,u,l,h,g,y,d,f;return{setters:[function(t){o=t.d,a=t.be,s=t.o,c=t.f,p=t.c,u=t.B},function(t){l=t.s,h=t.t,g=t.m,y=t.a,d=t.w},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,c=i.url,p=i.action,u=i.pageTag,l=r(i,t),h=location,g=h.origin,y=h.pathname,d="BandMusicTeam://linkUrl=",f="orchestrastudent://html:8888/SplashActivity?url=";"s"===o?(this.type="student",this.buttonText="下载管乐团学员端",y="/orchestra-student/",d="BandMusicTeam://linkUrl=",f="orchestrastudent://html:8888/SplashActivity?url="):"t"===o?(this.type="teacher",this.buttonText="下载管乐团伴学端",y="/orchestra-teacher/",d="BandMusicTeamTeacher://linkUrl=",f="orchestrateacher://html:8888/SplashActivity?url="):"m"===o&&(this.type="manage",this.buttonText="下载管乐团管理端",y="/orchestra-school/",d="BandMusicTeamManager://linkUrl=",f="orchestramanager://html:8888/SplashActivity?url="),document.title=this.buttonText;var w=g+y+"#/";if(c||p){var m=a.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}({},l)),b={url:w+=c+(m?"?"+m:""),action:p||"h5",pageTag:u||1},O=encodeURIComponent(JSON.stringify(b));console.log(b,"iosStr"),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=d+O:/(Android)/i.test(navigator.userAgent)?window.location.href=f+O:s("请用手机或移动设备打开")}},methods:{onDownload:function(){if(c().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"),c().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?t&&(window.location.href=t):/(Android)/i.test(navigator.userAgent)?window.location.href=e:s("请用手机或移动设备打开")}}},render:function(){var t=this;return p("div",{class:[y.downloadContainer]},["teacher"!==this.type&&"manage"!==this.type&&p(f,{src:l},null),"teacher"===this.type&&p(f,{src:h},null),"manage"===this.type&&p(f,{src:g},null),p("div",{class:y.buttonGroup},[p(u,{round:!0,size:"large",color:"#FF8057",class:y.btn,onClick:this.onDownload},{default:function(){return[t.buttonText]}})]),this.wxStatus&&p("div",{class:y.wxpopup,onClick:function(){t.wxStatus=!1}},[p("img",{src:d,alt:""},null)])])}}))}}}))}();