(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{2062:function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=a(n("c7eb")),o=a(n("1da1"));n("99af"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("25f0");var r={data:function(){return{ocode:"1015730314",appkey:"9D6ACFE8CF9AFD07",URL:"https://chtech.ncjti.edu.cn/campusclock/app/"}},onLoad:function(){this.loginFilter()},methods:{loginFilter:function(){var e=uni.getStorageSync("clockIn_token");if(e)uni.reLaunch({url:"/pages/home/home"});else{var t=this.getQueryString("wxcode");t?this.login(t):window.location.href="https://open.wecard.qq.com/connect/oauth/authorize?app_key=".concat(this.appkey,"&response_type=code&scope=snsapi_base&ocode=").concat(this.ocode,"&redirect_uri=").concat(this.URL,"&state=wxcode")}},login:function(e){var t=this;return(0,o.default)((0,c.default)().mark((function n(){var a;return(0,c.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$myRequest_clockIn({url:"/attendance/api/system/user/login/app",method:"post",header:{"content-type":"application/json",platform:2,"Accept-Language":"zh-CN,zh;q=0.9"},data:{redirect_uri:t.URL,wxcode:e}});case 2:a=n.sent,200==a.code&&(uni.setStorageSync("clockIn_token",a.data.token),uni.reLaunch({url:"/pages/home/home"}));case 4:case"end":return n.stop()}}),n)})))()},getQueryString:function(e){var t=window.location.href,n=new RegExp("[?&]"+e+"=([^&]+)","i"),a=n.exec(t);return!(null==a||a.length<1)&&decodeURIComponent(a[1])}}};t.default=r},"584a":function(e,t,n){"use strict";n.r(t);var a=n("5b1a"),c=n("a4d8");for(var o in c)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(o);var r=n("f0c5"),i=Object(r["a"])(c["default"],a["b"],a["c"],!1,null,"725204c6",null,!1,a["a"],void 0);t["default"]=i.exports},"5b1a":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view")},c=[]},a4d8:function(e,t,n){"use strict";n.r(t);var a=n("2062"),c=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=c.a}}]);