(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-wxLogin"],{"144f":function(t,n,a){"use strict";var e=a("5fcd"),o=a.n(e);o.a},"48f1":function(t,n,a){"use strict";a("7a82");var e=a("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e(a("5530")),i=a("a54f"),r=a("5a4c"),u=a("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 a=uni.getStorageSync("present")||"/pages/index/index";"pages/shop/product"==a&&(a="/pages/index/index"),uni.switchTab({url:a,fail:function(t){uni.navigateTo({url:a,fail:function(t){uni.navigateTo({url:"/pages/index/index"})}})}})}))}})};n.default=f},"5fcd":function(t,n,a){var e=a("c131");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var o=a("4f06").default;o("1eb5515a",e,!0,{sourceMap:!1,shadowMode:!1})},"744a":function(t,n,a){"use strict";a.d(n,"b",(function(){return e})),a.d(n,"c",(function(){return o})),a.d(n,"a",(function(){}));var e=function(){var t=this.$createElement,n=this._self._c||t;return n("v-uni-view",{staticClass:"content"})},o=[]},"8a2d":function(t,n,a){"use strict";a.r(n);var e=a("48f1"),o=a.n(e);for(var i in e)["default"].indexOf(i)<0&&function(t){a.d(n,t,(function(){return e[t]}))}(i);n["default"]=o.a},a54f:function(t,n,a){"use strict";a("7a82");var e=a("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=e(a("f051"))},bf53:function(t,n,a){"use strict";a.r(n);var e=a("744a"),o=a("8a2d");for(var i in o)["default"].indexOf(i)<0&&function(t){a.d(n,t,(function(){return o[t]}))}(i);a("144f");var r=a("f0c5"),u=Object(r["a"])(o["default"],e["b"],e["c"],!1,null,"f5992a32",null,!1,e["a"],void 0);n["default"]=u.exports},c131:function(t,n,a){var e=a("24fb");n=e(!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}}]);