1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["downLoad"],{5577:function(t,n,i){t.exports=i.p+"img/wx_bg.74659bff.png"},9792:function(t,n,i){"use strict";var e=i("e3be"),a=i.n(e);a.a},cf45:function(t,n,i){"use strict";i.d(n,"a",(function(){return e})),i.d(n,"b",(function(){return a})),i.d(n,"c",(function(){return o}));var e=function(){var t=navigator.userAgent;return{trident:t.indexOf("Trident")>-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1==t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:t.indexOf("EXAMAPP")>-1||t.indexOf("Adr")>-1,iPhone:t.indexOf("EXAMAPPI")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1==t.indexOf("Safari"),weixin:t.indexOf("MicroMessenger")>-1,qq:" qq"==t.match(/\sQQ/i)}},a=function(t){var n=parseFloat(t);if(isNaN(n))return"0.00";n=Math.round(100*n)/100;var i=n.toString(),e=i.indexOf(".");e<0&&(e=i.length,i+=".");while(i.length<=e+2)i+="0";return i},o=function(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null}},e3be:function(t,n,i){},eb53:function(t,n,i){"use strict";i.r(n);var e=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"studentDownLoad",class:[t.wxStatus?"wxContainer":""]},[e("div",{staticClass:"container"},[e("p",{staticClass:"tips"},[t._v("正在打开酷乐秀~")]),t.isWx?e("p",{staticClass:"ps"},[t._v("ps:若无法自动跳转,请在本地浏览器中打开。")]):t._e()]),t.wxStatus?e("div",{staticClass:"wxpopup",on:{click:function(n){t.wxStatus=!1}}},[e("img",{attrs:{src:i("5577"),alt:""}})]):t._e()])},a=[],o=i("cf45"),s={data:function(){return{isWx:Object(o["a"])().weixin,wxStatus:!1,msg:"此浏览器不支持自动转发,请更换浏览器尝试",src:""}},mounted:function(){this.downloadApp()},methods:{downloadApp:function(){var t=null,n=this.$route.query;n.url&&n.hash&&(t=n.url+"/#/"+n.hash),n.id&&(t+="?id="+n.id),1==n.memo?t+="&memo=1":2==n.memo&&(t="memo=2",n.examRegistrationId&&(t+="&examRegistrationId="+n.examRegistrationId)),t=encodeURIComponent(t),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href="StudentsExam://linkUrl=".concat(t):/(Android)/i.test(navigator.userAgent)?window.location.href="student_exam://html:8888/SplashActivity?url=".concat(t):this.$toast("请用手机或移动设备打开")},downloadClick:function(){Object(o["a"])().weixin?this.wxStatus=!0:/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E8%BF%B7/id1487054260":/(Android)/i.test(navigator.userAgent)?window.location="https://sj.qq.com/myapp/detail.htm?apkName=com.daya.studaya_android":this.$toast("请用手机或移动设备打开")}}},r=s,d=(i("9792"),i("2877")),c=Object(d["a"])(r,e,a,!1,null,"2223e7d7",null);n["default"]=c.exports}}]);
|