index-legacy.75ea1e3f.js 2.9 KB

1
  1. !function(){function t(t,e,n,r,a,o,i){try{var u=t[o](i),c=u.value}catch(s){return void n(s)}u.done?e(c):Promise.resolve(c).then(r,a)}function e(e){return function(){var n=this,r=arguments;return new Promise((function(a,o){var i=e.apply(n,r);function u(e){t(i,a,o,u,c,"next",e)}function c(e){t(i,a,o,u,c,"throw",e)}u(void 0)}))}}System.register(["./index-legacy.90c82f08.js","./manage-center-legacy.26597464.js","./wx_bg-legacy.db85001d.js","./index-legacy.eb4bc59e.js"],(function(t){"use strict";var n,r,a,o,i,u,c,s,d,p,l,f,y,w,g;return{setters:[function(t){n=t.d,r=t.ah,a=t.r,o=t.$,i=t.m,u=t.c,c=t.B,s=t.f,d=t.o},function(t){p=t.s,l=t.t,f=t.m,y=t.a},function(t){w=t.w},function(t){g=t.I}],execute:function(){t("default",n({name:"download",setup:function(){var t=r(),n=a({wxStatus:!1,androidUrl:"",type:"student",buttonText:"下载管乐团学员端"}),m=function(){if(s().weixin)n.wxStatus=!0;else{var t="",e="";location.origin.indexOf("online.lexiaoya.cn")>-1?"student"===n.type?(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2/id1671474346?uo=4 ",e=n.androidUrl):"teacher"===n.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=n.androidUrl):"manage"===n.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=n.androidUrl):"student"===n.type?(t="https://www.pgyer.com/2Wg2",e=n.androidUrl):"teacher"===n.type?(t="https://www.pgyer.com/v5yB",e=n.androidUrl):"manage"===n.type&&(t="https://www.pgyer.com/DGrR",e=n.androidUrl),s().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?t&&(window.location.href=t):/(Android)/i.test(navigator.userAgent)?window.location.href=e:d("请用手机或移动设备打开")}};return o(e(regeneratorRuntime.mark((function e(){var r,a,o,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.query.type,n.type=r||"student",a="android-student","student"===r?(n.buttonText="下载管乐团学员端",a="android-student"):"teacher"===r?(n.buttonText="下载管乐团伴学端",a="android-teacher"):"manage"===r&&(n.buttonText="下载管乐团管理端",a="android-school"),e.prev=4,e.next=7,i.get("/api-student/open/appVersionInfo/queryLatestByPlatform",{params:{platform:a,status:"history"}});case 7:o=e.sent,u=o.data,n.androidUrl=u.downloadUrl,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(4);case 14:document.title=n.buttonText;case 15:case"end":return e.stop()}}),e,null,[[4,12]])})))),function(){return u("div",{class:[y.downloadContainer]},["teacher"!==n.type&&"manage"!==n.type&&u(g,{src:p},null),"teacher"===n.type&&u(g,{src:l},null),"manage"===n.type&&u(g,{src:f},null),u("div",{class:y.buttonGroup},[u(c,{round:!0,size:"large",color:"#FF8057",class:y.btn,onClick:m},{default:function(){return[n.buttonText]}})]),n.wxStatus&&u("div",{class:y.wxpopup,onClick:function(){n.wxStatus=!1}},[u("img",{src:w,alt:""},null)])])}}}))}}}))}();