(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-auth-login"],{"2ef7":function(t,n,e){"use strict";e.r(n);var o=e("ab3d"),i=e("e120");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("d73a");var r=e("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"3a5407d8",null,!1,o["a"],void 0);n["default"]=c.exports},8612:function(t,n,e){"use strict";e("6a54"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("5c47"),e("2c10"),e("a1c1"),e("af8f"),e("5ef2");var o=e("4b39"),i=function(){return"micromessenger"===String(navigator.userAgent.toLowerCase().match(/MicroMessenger/i))},a={data:function(){return{sortLink:"",appid:"",code:null,realLink:"",headerImg:""}},onLoad:function(t){this.sortLink=t.sortLink||"",this.code=t.code||"",this.getRealLink()},methods:{getRealLink:function(){var t=this;(0,o.getRealLink)({sortLink:this.sortLink}).then((function(n){t.headerImg=n.headerImg||"",200==n.code&&n.realLink?(t.realLink=n.realLink,t.appid=n.config.mpAppId,t.code&&t.loginByMp()):uni.showToast({title:"课程已过期或链接无效",icon:"none"})})).catch((function(t){"ECONNABORTED"===t.code?uni.showToast({title:"请求超时,请检查网络后重试",icon:"none"}):uni.showToast({title:"发生错误,请稍后再试",icon:"none"})}))},loginByMp:function(){if(null!=this.code&&this.code){var t=this.realLink+"&code="+this.code;window.location.replace(t)}else this.getWechatCode()},getWechatCode:function(){if(i){var t=this.appid,n=this.getUrlCode().code,e=window.location.href;null==n||""===n?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+t+"&redirect_uri="+encodeURIComponent(e)+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":this.code=n}},getUrlCode:function(){var t=location.search,n=new Object;if(-1!=t.indexOf("?"))for(var e=t.substr(1),o=e.split("&"),i=0;i