(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{8108:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var c=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view")},o=[]},a9c4:function(e,t,n){"use strict";n("7a82");var c=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n("c7eb")),a=c(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,a.default)((0,o.default)().mark((function n(){var c;return(0,o.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:c=n.sent,200==c.code&&(uni.setStorageSync("clockIn_token",c.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"),c=n.exec(t);return!(null==c||c.length<1)&&decodeURIComponent(c[1])}}};t.default=r},e228:function(e,t,n){"use strict";n.r(t);var c=n("a9c4"),o=n.n(c);for(var a in c)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(a);t["default"]=o.a},e30b:function(e,t,n){"use strict";n.r(t);var c=n("8108"),o=n("e228");for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);var r=n("f0c5"),i=Object(r["a"])(o["default"],c["b"],c["c"],!1,null,"725204c6",null,!1,c["a"],void 0);t["default"]=i.exports}}]);