(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-wxLogin"],{"046d":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=[]},"36c6":function(n,t,e){"use strict";e.r(t);var o=e("046d"),a=e("ec2b");for(var i in a)"default"!==i&&function(n){e.d(t,n,(function(){return a[n]}))}(i);e("5025");var r,u=e("f0c5"),d=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,"ffdd1b66",null,!1,o["a"],r);t["default"]=d.exports},"422d":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-ffdd1b66],\n.content[data-v-ffdd1b66]{height:100%;background-color:#fff}.bg-img[data-v-ffdd1b66],\n.logo-img-box[data-v-ffdd1b66]{position:absolute;top:0;left:0;width:100%;height:100%}.logo-img[data-v-ffdd1b66]{margin-top:20vh;margin-left:%?176?%;width:%?385?%;height:%?394?%}.userInfo[data-v-ffdd1b66]{margin:0 %?100?%;margin-top:%?50?%;color:#fff;border-radius:%?99?%;background-color:#2ed8db!important}.nocaction[data-v-ffdd1b66]{background-color:#999}body.?%PAGE?%[data-v-ffdd1b66]{background-color:#fff}',""]),n.exports=t},5025:function(n,t,e){"use strict";var o=e("5dca"),a=e.n(o);a.a},"50aa":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=d,t.loginMobile=f,t.bangding=c;var a=o(e("56e3"));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 d(n){return(0,a.default)({url:"/api/userinfo",method:"get",data:n})}function f(n){return(0,a.default)({url:"/api/login/mobile",method:"post",data:n})}function c(n){return(0,a.default)({url:"/api/binding",method:"POST",data:n})}},"5dca":function(n,t,e){var o=e("422d");"string"===typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);var a=e("4f06").default;a("0d5ed7c0",o,!0,{sourceMap:!1,shadowMode:!1})},"96eb":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("50aa"),r=e("5b09"),u=e("26cb"),d={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){console.log(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=d},ec2b:function(n,t,e){"use strict";e.r(t);var o=e("96eb"),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}}]);