(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login"],{"19eb":function(e,n,t){"use strict";var o=t("f224"),i=t.n(o);i.a},"808a":function(e,n,t){"use strict";t.r(n);var o=t("f4d4"),i=t("b035");for(var c in i)"default"!==c&&function(e){t.d(n,e,(function(){return i[e]}))}(c);t("19eb");var u,r=t("f0c5"),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=a.exports},"842f":function(e,n,t){"use strict";(function(e){t("7a99");o(t("66fd"));var n=o(t("808a"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},b035:function(e,n,t){"use strict";t.r(n);var o=t("f4ec"),i=t.n(o);for(var c in o)"default"!==c&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=i.a},f224:function(e,n,t){},f4d4:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return o}));var i=function(){var e=this,n=e.$createElement;e._self._c},c=[]},f4ec:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;o(t("bd87"));function o(e){return e&&e.__esModule?e:{default:e}}var i={data:function(){return{tips:"获取验证码",value:"",code:"",wxCode:"",session_key:"",phone:"",encryptedData:"",iv:"",openid:"",unionid:"",nickName:""}},onLoad:function(){this.initLogin()},methods:{initLogin:function(){var n=this;e.login({success:function(e){e.code?(n.wxCode=e.code,console.log(e.code,"WXcode")):console.log("登录失败！"+e.errMsg)}})},getPhoneNumber:function(n){var t=this;"getPhoneNumber:ok"==n.detail.errMsg?e.$u.http.post("/api/login/phone",{code:this.wxCode,iv:n.detail.iv,enc:n.detail.encryptedData}).then((function(n){console.log(n),e.setStorageSync("token",n.token),e.setStorageSync("phone",n.user.phone),t.$store.commit("setToken",n.token),t.$store.commit("loginState",n.token),t.$store.commit("getUserInfo",{phone:n.user.phone}),e.showToast({title:"登录成功",icon:"success",duration:1e3}),e.reLaunch({url:"/pages/index/index"})})).catch((function(n){console.log(n),e.showToast({icon:"error",title:n.message})})):console.log("用户点击了拒绝")},gootherNuber:function(){e.navigateTo({url:"otherNumlogin"})},Policy:function(){e.navigateTo({url:"/pages/userCenter/Policy"})},terms:function(){e.navigateTo({url:"/pages/userCenter/Terms"})}}};n.default=i}).call(this,t("543d")["default"])}},[["842f","common/runtime","common/vendor"]]]);