1 |
- !function(){const 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=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;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:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}System.register(["./index-legacy-e1ea41b7.js","./student-center-legacy-36c198da.js","./index-legacy-01b7024c.js"],(function(o,i){"use strict";var a,s,c,u,l,p,f,d,g,w;return{setters:[t=>{a=t.d,s=t.W,c=t.E,u=t.R,l=t.a,p=t.C},t=>{f=t.s,d=t.a,g=t.w},t=>{w=t.I}],execute:function(){o("default",a({name:"download-transfer",data:()=>({wxStatus:!1}),mounted(){const o=this.$route.query,{pn:i,url:a,action:u,pageTag:l}=o,p=r(o,t),{origin:f,pathname:d}=location;let g=f+d+"#/";if(!a&&!u)return;const w=s.stringify(function(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(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}({},p));g+=a+(w?"?"+w:"");const y={url:g,action:u||"h5",pageTag:l||1},b=encodeURIComponent(JSON.stringify(y));console.log(y,"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:c("请用手机或移动设备打开")},methods:{onDownload(){if(u().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="https://appstore.ks3-cn-beijing.ksyuncs.com/kt_cooleshow_student.apk"):(t="https://www.pgyer.com/dzRRNN",e="https://www.pgyer.com/2meenh"),u().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?t&&(window.location.href=t):/(Android)/i.test(navigator.userAgent)?window.location.href=e:c("请用手机或移动设备打开")}},render(){return l("div",{class:[d.downloadContainer]},[l(w,{src:f},null),l("div",{class:d.buttonGroup},[l(p,{round:!0,size:"large",class:d.btn,onClick:this.onDownload},null)]),this.wxStatus&&l("div",{class:d.wxpopup,onClick:()=>{this.wxStatus=!1}},[l("img",{src:g,alt:""},null)])])}}))}}}))}();
|