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