index-legacy-fb5520f5.js 1.6 KB

1
  1. !function(){function t(t,n,o,e,i,r,a){try{var s=t[r](a),d=s.value}catch(u){return void o(u)}s.done?n(d):Promise.resolve(d).then(e,i)}function n(n){return function(){var o=this,e=arguments;return new Promise((function(i,r){var a=n.apply(o,e);function s(n){t(a,i,r,s,d,"next",n)}function d(n){t(a,i,r,s,d,"throw",n)}s(void 0)}))}}System.register(["./index-legacy-a314c7dd.js","./student-center-legacy-36c198da.js","./index-legacy-72dfb7ed.js"],(function(t,o){"use strict";var e,i,r,a,s,d,u,l,c,p,w,f;return{setters:[t=>{e=t.d,i=t.x,r=t.y,a=t.D,s=t.a,d=t.C,u=t.R,l=t.E},t=>{c=t.s,p=t.a,w=t.w},t=>{f=t.I}],execute:function(){t("default",e({name:"download",setup(){const t=i({wxStatus:!1,androidUrl:""}),o=()=>{if(u().weixin)return void(t.wxStatus=!0);let n="",o="";location.origin.indexOf("kt.colexiu.com")>-1?(n="https://apps.apple.com/us/app/%E9%9F%B3%E4%B9%90%E6%95%B0%E5%AD%97%E8%AF%BE%E5%A0%82/id6452725878",o=t.androidUrl):(n="https://www.pgyer.com/dzRRNN",o=t.androidUrl),u().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?n&&(window.location.href=n):/(Android)/i.test(navigator.userAgent)?window.location.href=o:l("请用手机或移动设备打开")};return r(n((function*(){try{const{data:n}=yield a.get("/edu-app/open/appVersionInfo/queryLatestByPlatform",{params:{platform:"android-kt",status:"history"}});t.androidUrl=n.downloadUrl}catch(n){}}))),()=>s("div",{class:[p.downloadContainer]},[s(f,{src:c},null),s("div",{class:p.buttonGroup},[s(d,{round:!0,size:"large",class:p.btn,onClick:o},null)]),t.wxStatus&&s("div",{class:p.wxpopup,onClick:()=>{t.wxStatus=!1}},[s("img",{src:w,alt:""},null)])])}}))}}}))}();