(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{1242:function(t,e,n){"use strict";n.r(e);var o=n("3b25"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},"3b25":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{userInfo:{},parmas:{openid:"",mobile:""}}},onLoad:function(e){if(e.q){var n=decodeURIComponent(e.q),o=this.GetUrlParam(n,"pid");this.parmas.user_id=o}getApp().getAddress();var a=t.getStorageSync("userInfo"),i=t.getStorageSync("token");a&&a.id&&i&&(console.log("登录"),t.switchTab({url:"/pages/index/index"}))},methods:{getIphone:function(t){var e=this;this.axiosFromToken("POST","user/getPhoneNumber",{code:t.detail.code},"加载中").then((function(t){e.parmas.mobile=t,e.getLogin()}))},getOpenId:function(){var t=this;wx.login({success:function(e){t.$tools.axios("POST","user/Wechat_openid",{code:e.code},"加载中").then((function(e){console.log(e,"openid"),t.parmas.openid=e}))},fail:function(){t.$tools.showtt("获取失败")}})},getLogin:function(){var e=this;wx.login({success:function(n){e.$tools.axios("POST","user/wechat",e.parmas,"加载中").then((function(e){1==e.code&&(t.setStorageSync("token",e.data.token),t.setStorageSync("userInfo",e.data),getApp().globalData.token=e.data.token,getApp().globalData.userInfo=e.data,t.switchTab({url:"/pages/index/index"}))}))},fail:function(){e.$tools.showtt("获取失败")}})}}};e.default=n}).call(this,n("543d")["default"])},c4d4:function(t,e,n){"use strict";(function(t){var e=n("4ea4");n("0178");e(n("66fd"));var o=e(n("d46a"));wx.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("543d")["createPage"])},d46a:function(t,e,n){"use strict";n.r(e);var o=n("fa3f"),a=n("1242");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);var c=n("f0c5"),r=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,"118da8d2",null,!1,o["a"],void 0);e["default"]=r.exports},fa3f:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},a=[]}},[["c4d4","common/runtime","common/vendor"]]]);