| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/auth"],{3710:function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return u}));var u={faNavbar:function(){return e.e("components/fa-navbar/fa-navbar").then(e.bind(null,"6858"))},uModal:function(){return e.e("uview-ui/components/u-modal/u-modal").then(e.bind(null,"165c"))},uLoading:function(){return e.e("uview-ui/components/u-loading/u-loading").then(e.bind(null,"e1ef"))}},r=function(){var t=this,n=t.$createElement;t._self._c},i=[]},"438f":function(t,n,e){"use strict";e.r(n);var u=e("5210"),r=e.n(u);for(var i in u)"default"!==i&&function(t){e.d(n,t,(function(){return u[t]}))}(i);n["default"]=r.a},5210:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=i(e("a34a")),r=e("59de");function i(t){return t&&t.__esModule?t:{default:t}}function a(t,n,e,u,r,i,a){try{var o=t[i](a),c=o.value}catch(s){return void e(s)}o.done?n(c):Promise.resolve(c).then(u,r)}function o(t){return function(){var n=this,e=arguments;return new Promise((function(u,r){var i=t.apply(n,e);function o(t){a(i,u,r,o,c,"next",t)}function c(t){a(i,u,r,o,c,"throw",t)}o(void 0)}))}}var c={mixins:[r.loginfunc],onLoad:function(){this.state=this.$util.getQueryString("state"),this.code=this.$util.getQueryString("code"),this.state&&this.code?this.goWxAuth():this.content="授权登录失败!"},data:function(){return{state:"",code:"",show:!0,content:"授权登录中..."}},methods:{goWxAuth:function(){var t=o(u.default.mark((function t(){var n,e;return u.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={code:this.code,state:this.state,platform:"wechat"},t.next=3,this.$api.goAuthCallback(n);case 3:if(e=t.sent,e){t.next=7;break}return this.content="授权登录失败!",t.abrupt("return");case 7:if(!e.data.user){t.next=11;break}return this.$u.vuex("vuex_token",e.data.user.token),this.success(),t.abrupt("return");case 11:this.$u.vuex("vuex_third",e.data.third),this.$Router.push({path:"/pages/login/register",query:{bind:"bind"}});case 13:case"end":return t.stop()}}),t,this)})));function n(){return t.apply(this,arguments)}return n}(),confirm:function(){window.history.go(-2)}}};n.default=c},6592:function(t,n,e){"use strict";e.r(n);var u=e("3710"),r=e("438f");for(var i in r)"default"!==i&&function(t){e.d(n,t,(function(){return r[t]}))}(i);var a,o=e("f0c5"),c=Object(o["a"])(r["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],a);n["default"]=c.exports},bf8c:function(t,n,e){"use strict";(function(t){e("630e");u(e("66fd"));var n=u(e("6592"));function u(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("f266")["createPage"])}},[["bf8c","common/runtime","common/vendor"]]]);
|