(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/login/login"],{"89bc":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var r=function(){var e=this,t=e.$createElement;e._self._c},a=[]},"9fb8":function(e,t,n){"use strict";n.r(t);var o=n("89bc"),r=n("a824");for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);var c,i=n("f0c5"),u=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);t["default"]=u.exports},a824:function(e,t,n){"use strict";n.r(t);var o=n("bae4"),r=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},bae4:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{}},methods:{},onLoad:function(){var t=this;e.getProvider({service:"oauth",success:function(n){e.login({provider:n.provider[0],success:function(o){if(o.code){var r="";"weixin"==n.provider[0]?r=3:"alipay"==n.provider[0]&&(r=4);var a={code:o.code,source:r};t.$request("wechat/wx/getUserInfoByCode",a).then((function(n){if("00"==n.code){var o=n.data.openid;e.setStorageSync("openid",o);var a=n.data.userId||"",c={openid:o,source:r,userId:a};t.$request("wechatUser/login/findWxUserAndLogin",c).then((function(t){if("00"==t.code){var n=t.data.token||"";e.setStorageSync("token",n);var o=t.data.personId||"";e.setStorageSync("createUserId",o);var r=t.data.userId||"";e.setStorageSync("userId",r);var a=e.getStorageSync("enterUrl");n&&e.redirectTo({url:"/"+a})}else e.showToast({title:t.message,icon:"none"})})).catch((function(t){e.showToast({title:"登录失败",icon:"none"})}))}else e.showToast({title:n.message,icon:"none"})})).catch((function(t){e.showToast({title:"登录失败",icon:"none"})}))}}})}})}};t.default=n}).call(this,n("c11b")["default"])},d263:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");o(n("66fd"));var t=o(n("9fb8"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("c11b")["createPage"])}},[["d263","common/runtime","common/vendor"]]]);