1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5cb6b49a"],{1270:function(t,e,a){},"449d":function(t,e,a){"use strict";a.r(e);var s,n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("van-overlay",{attrs:{show:t.show}},[a("div",{attrs:{id:"loading"}},[a("van-loading",{attrs:{type:"spinner"}})],1)])],1)},r=[],o=(a("b0c0"),a("ade3")),i=(a("68ef"),a("e3b3"),a("543e")),u=(a("a71a"),a("6e47")),c={name:"Oauth",components:(s={},Object(o["a"])(s,u["a"].name,u["a"]),Object(o["a"])(s,i["a"].name,i["a"]),s),data:function(){return{show:!0}},created:function(){var t=this;if(this.$tools.isWeiXin()){var e={code:this.$route.query.code,state:this.$route.query.state},a=parseInt(this.$cookie.get("spread_id"));a>0&&(e.spread_id=a),this.$http.sendOauth(e).then((function(e){if(2==e.status){t.$store.commit("UPDATEUSERS",e.data);var a=t.$storage.get("VUE_REFERER");t.$storage.delete("VUE_REFERER"),a||(a="/"),t.$router.push({path:a})}else t.$router.push("/")}))}else this.$router.push("/")},methods:{}},d=c,h=(a("8fb9"),a("2877")),p=Object(h["a"])(d,n,r,!1,null,"07c79e6a",null);e["default"]=p.exports},"8fb9":function(t,e,a){"use strict";var s=a("1270"),n=a.n(s);n.a}}]);
|