;(function(){System.register(['./index.module-legacy.28209fba.js','./wx_bg-legacy.105835c9.js','./index-legacy.101dd5f6.js','./vendor-legacy.b3aeff6a.js'],function(exports){'use strict';var styles,__glob_6_0,__glob_6_1,__glob_6_2,__glob_6_3,__glob_6_4,__glob_6_5,browser,defineComponent,Toast,createVNode,Button,createTextVNode;return{setters:[function(module){styles=module.s;__glob_6_0=module._;__glob_6_1=module.a;__glob_6_2=module.b;__glob_6_3=module.c;__glob_6_4=module.d;},function(module){__glob_6_5=module._;},function(module){browser=module.b;},function(module){defineComponent=module.d;Toast=module.T;createVNode=module.a;Button=module.B;createTextVNode=module.j;}],execute:function execute(){var getAssetsHomeFile=exports('getAssetsHomeFile',function(fileName){var path="./images/".concat(fileName);var modules={"./images/bg.png":__glob_6_0,"./images/logo.png":__glob_6_1,"./images/student_bg.png":__glob_6_2,"./images/teacher_bg.png":__glob_6_3,"./images/teacher_logo.png":__glob_6_4,"./images/wx_bg.png":__glob_6_5};return modules[path].default;});var transfer=exports('default',defineComponent({name:'transfer',data:function data(){return{wxStatus:false};},mounted:function mounted(){var _location=location,origin=_location.origin,pathname=_location.pathname;var str=origin+pathname+'#/';var params=this.$route.query;// 判断是否有跳转连接, 如果连接和动作没有时, 则不跳转
if(!params.url&&!params.action){return;}str+=params.url;var query={url:str,action:params.action||'h5',// app, h5
pageTag:params.pageTag||1// 页面标识
// params: {}
};var iosStr=encodeURIComponent(JSON.stringify(query));if(/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)){// ColexiuStudent 唤起学生端
// ColexiuTeacher 唤起老师端
window.location.href="ColexiuStudent://linkUrl=".concat(iosStr);}else if(/(Android)/i.test(navigator.userAgent)){window.location.href="colexiustudent://html:8888/SplashActivity?url=".concat(iosStr);}else{Toast('请用手机或移动设备打开');}},methods:{downLoadApp:function downLoadApp(){if(browser().weixin){this.wxStatus=true;return;}// clx-teacher-domain.apk
// clx-student-domain.apk
if(browser().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)){window.location.href='https://itunes.apple.com/cn/app/id1626971695?mt=8';}else if(/(Android)/i.test(navigator.userAgent)){window.location.href='https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk';}else{this.$toast('请用手机或移动设备打开');}}},render:function render(){var _this=this;return createVNode("div",{"class":styles.downContainer},[createVNode("div",{"class":styles.logo},[createVNode("img",{"src":getAssetsHomeFile('logo.png'),"alt":""},null)]),createVNode("div",{"class":styles.down},[createVNode(Button,{"type":"primary","round":true,"plain":true,"onClick":this.downLoadApp},{default:function _default(){return[createTextVNode("\u70B9\u51FB\u4E0B\u8F7DApp")];}})]),createVNode("div",{"class":styles.mainImg},[createVNode("img",{"src":getAssetsHomeFile('student_bg.png'),"alt":""},null)]),this.wxStatus&&createVNode("div",{"class":styles.wxpopup,"onClick":function onClick(){_this.wxStatus=false;}},[createVNode("img",{"src":getAssetsHomeFile('wx_bg.png'),"alt":""},null)])]);}}));}};});})();
