(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-wxLogin"],{"64b3":function(e,t,n){var o=n("755c");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=n("4f06").default;a("1845a582",o,!0,{sourceMap:!1,shadowMode:!1})},"755c":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-0ee61859],\n.content[data-v-0ee61859]{height:100%;background-color:#fff}.bg-img[data-v-0ee61859],\n.logo-img-box[data-v-0ee61859]{position:absolute;top:0;left:0;width:100%;height:100%}.logo-img[data-v-0ee61859]{margin-top:20vh;margin-left:%?176?%;width:%?385?%;height:%?394?%}.userInfo[data-v-0ee61859]{margin:0 %?100?%;margin-top:%?50?%;color:#fff;border-radius:%?99?%;background-color:#637bef!important}.nocaction[data-v-0ee61859]{background-color:#999}.popupsq-wrap[data-v-0ee61859]{width:%?550?%;height:%?450?%;background-color:#fff;border-radius:%?20?%;padding:0 %?30?%}.popupsq-wrap .btn[data-v-0ee61859]{width:%?240?%;height:%?90?%;text-align:center;line-height:%?90?%;font-size:%?30?%;border-radius:%?45?%;font-weight:700}.popupsq-wrap .qx[data-v-0ee61859]{color:#000;border:#f0f0f0 1px solid}.popupsq-wrap .qr[data-v-0ee61859]{color:#fff;background-color:#637bef}body.?%PAGE?%[data-v-0ee61859]{background-color:#fff}',""]),e.exports=t},a666:function(e,t,n){"use strict";var o=n("64b3"),a=n.n(o);a.a},b7d4:function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"content"})},i=[]},c6ae:function(e,t,n){"use strict";n.r(t);var o=n("e13a"),a=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=a.a},ca0f:function(e,t,n){"use strict";var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.login=i,t.register=r,t.verify=u,t.getUserInfo=c,t.loginMobile=d,t.bangding=s;var a=o(n("653b"));function i(e){return(0,a.default)({url:"/api/login",method:"post",data:e})}function r(e){return(0,a.default)({url:"/api/register",method:"post",data:e})}function u(e){return(0,a.default)({url:"/api/register/verify",method:"post",data:e})}function c(e){return(0,a.default)({url:"/api/userinfo",method:"get",data:e})}function d(e){return(0,a.default)({url:"/api/login/mobile",method:"post",data:e})}function s(e){return(0,a.default)({url:"/api/binding",method:"POST",data:e})}},e13a:function(e,t,n){"use strict";var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n("5530")),i=n("ca0f"),r=n("b094"),u=n("26cb"),c={data:function(){return{userInfo:{},code:"",isclick:!1,iv1:"",encryptedData1:"",hasphone:!1}},onLoad:function(){this.loadData()},computed:{},methods:(0,a.default)((0,a.default)({},(0,u.mapMutations)("user",["login","setUserInfo"])),{},{close:function(){this.$refs.popupsq.close()},getPhoneNumber:function(e){var t=this;if(console.log(e,"e+++++++++++++++"),"getPhoneNumber:ok"!=e.detail.errMsg)return t.isclick=!1,void uni.showToast({title:"您拒绝了请求,不能正常使用小程序",icon:"error",duration:2e3});console.log("chenggong++++++++++++++"),t.hasphone=!0,t.iv1=e.detail.iv,t.encryptedData1=e.detail.encryptedData,t.$refs.popupsq.open()},loadData:function(){(0,r.loginWinxin)()},userInfoData:function(){var e=this;e.isclick||(e.isclick=!0,wx.getUserProfile({desc:"用于完善会员资料",success:function(t){console.log(t,"that.userInfo+++++++++++++++++++"),e.userInfo=t,uni.showLoading({title:"授权中",mask:!0}),e.loadMp()},fail:function(t){e.isclick=!1,uni.showToast({title:"您拒绝了请求,不能正常使用小程序",icon:"error",duration:2e3})}}))},wchatAuth:function(e){var t=this;uni.setStorageSync("token",e.token),console.log(e.token,"token++++++++++++++"),(0,i.getUserInfo)({}).then((function(e){console.log("userInfo+++++++++++",e),t.login(),uni.hideLoading(),t.setUserInfo(e.data);var n=uni.getStorageSync("present")||"/pages/index/index";"pages/shop/product"==n&&(n="/pages/index/index"),uni.switchTab({url:n,fail:function(e){uni.navigateTo({url:n,fail:function(e){uni.navigateTo({url:"/pages/index/index"})}})}})}))}})};t.default=c},f3bb:function(e,t,n){"use strict";n.r(t);var o=n("b7d4"),a=n("c6ae");for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("a666");var r,u=n("f0c5"),c=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,"0ee61859",null,!1,o["a"],r);t["default"]=c.exports}}]);