(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-wxLogin"],{"027d":function(t,n,e){"use strict";var a=e("e98a"),o=e.n(a);o.a},"056c":function(t,n,e){"use strict";e("7a82");var a=e("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(e("5530")),i=e("7f51"),r=e("8664"),u=e("26cb"),f={data:function(){return{userInfo:{},code:"",isclick:!1}},onLoad:function(t){this.loadData()},computed:{},methods:(0,o.default)((0,o.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},"1d30":function(t,n,e){"use strict";e.r(n);var a=e("056c"),o=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=o.a},6582:function(t,n,e){"use strict";e.r(n);var a=e("7425"),o=e("1d30");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("027d");var r=e("f0c5"),u=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"f5992a32",null,!1,a["a"],void 0);n["default"]=u.exports},"6a50":function(t,n,e){var a=e("24fb");n=a(!1),n.push([t.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}body.?%PAGE?%[data-v-f5992a32]{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}',""]),t.exports=n},7425:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var a=function(){var t=this.$createElement,n=this._self._c||t;return n("v-uni-view",{staticClass:"content"})},o=[]},"7f51":function(t,n,e){"use strict";e("7a82");var a=e("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.bangding=function(t){return(0,o.default)({url:"/api/binding",method:"POST",data:t})},n.getUserInfo=function(t){return(0,o.default)({url:"/api/userinfo",method:"get",data:t})},n.login=function(t){return(0,o.default)({url:"/api/login",method:"post",data:t})},n.loginMobile=function(t){return(0,o.default)({url:"/api/login/mobile",method:"post",data:t})},n.register=function(t){return(0,o.default)({url:"/api/register",method:"post",data:t})},n.verify=function(t){return(0,o.default)({url:"/api/register/verify",method:"post",data:t})};var o=a(e("4398"))},e98a:function(t,n,e){var a=e("6a50");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("4f06").default;o("33b629e6",a,!0,{sourceMap:!1,shadowMode:!1})}}]);