1 |
- !function(){const t=["pn","url","action","pageTag"];function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function o(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(c){return void r(c)}s.done?e(l):Promise.resolve(l).then(n,o)}System.register(["./index-legacy-e5f315bc.js","./student-center-legacy-36c198da.js","./index-legacy-2d653f1c.js"],(function(i,a){"use strict";var s,l,c,u,d,p,f,g,y,w,v;return{setters:[t=>{s=t.d,l=t.D,c=t.W,u=t.E,d=t.R,p=t.a,f=t.C},t=>{g=t.s,y=t.a,w=t.w},t=>{v=t.I}],execute:function(){i("default",s({name:"download-transfer",data:()=>({wxStatus:!1,androidUrl:""}),mounted(){var i,a=this;return(i=function*(){try{const{data:t}=yield l.get("/edu-app/open/appVersionInfo/queryLatestByPlatform",{params:{platform:"android-kt",status:"history"}});a.androidUrl=t.downloadUrl}catch(m){console.log(m)}const o=a.$route.query,{pn:i,url:s,action:d,pageTag:p}=o,f=n(o,t),{origin:g,pathname:y}=location;let w=g+y+"#/";if(!s&&!d)return;const v=c.stringify(function(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}({},f));w+=s+(v?"?"+v:"");const h={url:w,action:d||"h5",pageTag:p||1},b=encodeURIComponent(JSON.stringify(h));console.log(h,"iosStr"),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href="BandInstrumentTeam://linkUrl="+b:/(Android)/i.test(navigator.userAgent)?window.location.href="colexiukt://html:8888/SplashActivity?url="+b:u("请用手机或移动设备打开")},function(){var t=this,e=arguments;return new Promise((function(r,n){var a=i.apply(t,e);function s(t){o(a,r,n,s,l,"next",t)}function l(t){o(a,r,n,s,l,"throw",t)}s(void 0)}))})()},methods:{onDownload(){if(d().weixin)return void(this.wxStatus=!0);let t="",e="";location.origin.indexOf("kt.colexiu.com")>-1?(t="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",e=this.androidUrl):(t="https://www.pgyer.com/dzRRNN",e=this.androidUrl),d().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?t&&(window.location.href=t):/(Android)/i.test(navigator.userAgent)?window.location.href=e:u("请用手机或移动设备打开")}},render(){return p("div",{class:[y.downloadContainer]},[p(v,{src:g},null),p("div",{class:y.buttonGroup},[p(f,{round:!0,size:"large",class:y.btn,onClick:this.onDownload},null)]),this.wxStatus&&p("div",{class:y.wxpopup,onClick:()=>{this.wxStatus=!1}},[p("img",{src:w,alt:""},null)])])}}))}}}))}();
|