(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login"],{148:function(e,n,t){"use strict";(function(e){t(5);o(t(3));var n=o(t(149));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t(1)["createPage"])},149:function(e,n,t){"use strict";t.r(n);var o=t(150),r=t(152);for(var c in r)"default"!==c&&function(e){t.d(n,e,(function(){return r[e]}))}(c);t(308);var i,u=t(11),s=Object(u["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],i);s.options.__file="pages/login.vue",n["default"]=s.exports},150:function(e,n,t){"use strict";t.r(n);var o=t(151);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},151:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return c})),t.d(n,"components",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},c=!1,i=[];r._withStripped=!0},152:function(e,n,t){"use strict";t.r(n);var o=t(153),r=t.n(o);for(var c in o)"default"!==c&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},153:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;o(t(154));function o(e){return e&&e.__esModule?e:{default:e}}var r={data:function(){return{tips:"获取验证码",value:"",code:"",wxCode:"",session_key:"",phone:"",encryptedData:"",iv:"",openid:"",unionid:"",nickName:""}},onLoad:function(){},methods:{initLogin:function(){var n=this;e.login({success:function(t){t.code?(n.wxCode=t.code,console.log(t.code,"WXcode"),e.request({url:"https://api.weixin.qq.com/sns/jscode2session",method:"GET",data:{appid:"wxdc8ecff90bf3f4c3",secret:"34b1f34ae036053ec183986c3ace7886",js_code:t.code,grant_type:"authorization_code"},success:function(e){console.log(e),n.openid=e.data.openid,n.unionid=e.data.unionid,n.session_key=e.data.session_key}})):console.log("登录失败！"+t.errMsg)}})},getPhoneNumber:function(n){var t=this;"getPhoneNumber:ok"==n.detail.errMsg?e.login({success:function(o){o.code?(t.wxCode=o.code,e.$u.http.post("/api/login/phone",{code:t.code,iv:n.detail.iv,enc:n.detail.encryptedData}).then((function(e){console.log(e)})).catch((function(n){console.log(n),e.showToast({icon:"error",title:n.message})}))):console.log("登录失败！"+o.errMsg)}}):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=r}).call(this,t(1)["default"])},308:function(e,n,t){"use strict";t.r(n);var o=t(309),r=t.n(o);for(var c in o)"default"!==c&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},309:function(e,n,t){}},[[148,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../.sourcemap/mp-weixin/pages/login.js.map