(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-wxLogin"],{"4bb9":function(n,t,e){var o=e("60cb");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);var a=e("4f06").default;a("3c6d1e3c",o,!0,{sourceMap:!1,shadowMode:!1})},"60cb":function(n,t,e){var o=e("24fb");t=o(!1),t.push([n.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-f5992a32],\n.content[data-v-f5992a32]{height:100%;background-color:#fff}.bg-img[data-v-f5992a32],\n.logo-img-box[data-v-f5992a32]{position:absolute;top:0;left:0;width:100%;height:100%}.logo-img[data-v-f5992a32]{margin-top:20vh;margin-left:%?176?%;width:%?385?%;height:%?394?%}.userInfo[data-v-f5992a32]{margin:0 %?100?%;margin-top:%?50?%;color:#fff;border-radius:%?99?%;background-color:#ff4e4a!important}.nocaction[data-v-f5992a32]{background-color:#999}body.?%PAGE?%[data-v-f5992a32]{background-color:#fff}',""]),n.exports=t},6317:function(n,t,e){"use strict";var o=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(e("5530")),i=e("7751"),r=e("de25"),u=e("26cb"),f={data:function(){return{userInfo:{},code:"",isclick:!1}},onLoad:function(n){this.loadData()},computed:{},methods:(0,a.default)((0,a.default)({},(0,u.mapMutations)("user",["login","setUserInfo"])),{},{loadData:function(){(0,r.loginWinxin)()},userInfoData:function(){var n=this;n.isclick||(n.isclick=!0,wx.getUserProfile({desc:"用于完善会员资料",success:function(t){console.log(t,"that.userInfo+++++++++++++++++++"),n.userInfo=t,uni.showLoading({title:"授权中",mask:!0}),n.loadMp()},fail:function(t){n.isclick=!1,uni.showToast({title:"您拒绝了请求,不能正常使用小程序",icon:"error",duration:2e3})}}))},wchatAuth:function(n){var t=this;uni.setStorageSync("token",n.token),console.log(n.token,"token++++++++++++++"),(0,i.getUserInfo)({}).then((function(n){console.log("userInfo+++++++++++",n),t.login(),uni.hideLoading(),t.setUserInfo(n.data);var e=uni.getStorageSync("present")||"/pages/index/index";"pages/shop/product"==e&&(e="/pages/index/index"),uni.switchTab({url:e,fail:function(n){uni.navigateTo({url:e,fail:function(n){uni.navigateTo({url:"/pages/index/index"})}})}})}))}})};t.default=f},7473:function(n,t,e){"use strict";e.r(t);var o=e("6317"),a=e.n(o);for(var i in o)"default"!==i&&function(n){e.d(t,n,(function(){return o[n]}))}(i);t["default"]=a.a},7751:function(n,t,e){"use strict";var o=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.login=i,t.register=r,t.verify=u,t.getUserInfo=f,t.loginMobile=c,t.bangding=d;var a=o(e("559e"));function i(n){return(0,a.default)({url:"/api/login",method:"post",data:n})}function r(n){return(0,a.default)({url:"/api/register",method:"post",data:n})}function u(n){return(0,a.default)({url:"/api/register/verify",method:"post",data:n})}function f(n){return(0,a.default)({url:"/api/userinfo",method:"get",data:n})}function c(n){return(0,a.default)({url:"/api/login/mobile",method:"post",data:n})}function d(n){return(0,a.default)({url:"/api/binding",method:"POST",data:n})}},8211:function(n,t,e){"use strict";var o;e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){return o}));var a=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("v-uni-view",{staticClass:"content"})},i=[]},a52e:function(n,t,e){"use strict";var o=e("4bb9"),a=e.n(o);a.a},ffc7:function(n,t,e){"use strict";e.r(t);var o=e("8211"),a=e("7473");for(var i in a)"default"!==i&&function(n){e.d(t,n,(function(){return a[n]}))}(i);e("a52e");var r,u=e("f0c5"),f=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,"f5992a32",null,!1,o["a"],r);t["default"]=f.exports}}]);