(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-wxLogin"],{"00a7":function(n,t,e){"use strict";var a=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(e("5530")),i=e("6e3c"),r=e("fa93"),u=e("26cb"),c={data:function(){return{userInfo:{},code:"",isclick:!1}},onLoad:function(n){this.loadData()},computed:{},methods:(0,o.default)((0,o.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/product/product"!=e&&"/pages/public/wxLogin"!=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=c},"5c91":function(n,t,e){"use strict";var a;e.d(t,"b",(function(){return o})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){return a}));var o=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("v-uni-view",{staticClass:"content"})},i=[]},6384:function(n,t,e){"use strict";var a=e("bc50"),o=e.n(a);o.a},"6e3c":function(n,t,e){"use strict";var a=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.login=i,t.register=r,t.verify=u,t.getUserInfo=c,t.loginMobile=d,t.bangding=f;var o=a(e("4bb5"));function i(n){return(0,o.default)({url:"/api/login",method:"post",data:n})}function r(n){return(0,o.default)({url:"/api/register",method:"post",data:n})}function u(n){return(0,o.default)({url:"/api/register/verify",method:"post",data:n})}function c(n){return(0,o.default)({url:"/api/userinfo",method:"get",data:n})}function d(n){return(0,o.default)({url:"/api/login/mobile",method:"post",data:n})}function f(n){return(0,o.default)({url:"/api/binding",method:"POST",data:n})}},"7d99":function(n,t,e){"use strict";e.r(t);var a=e("5c91"),o=e("d88b");for(var i in o)"default"!==i&&function(n){e.d(t,n,(function(){return o[n]}))}(i);e("6384");var r,u=e("f0c5"),c=Object(u["a"])(o["default"],a["b"],a["c"],!1,null,"99a263c8",null,!1,a["a"],r);t["default"]=c.exports},bc50:function(n,t,e){var a=e("ee2c");"string"===typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);var o=e("4f06").default;o("463e5ad6",a,!0,{sourceMap:!1,shadowMode:!1})},d88b:function(n,t,e){"use strict";e.r(t);var a=e("00a7"),o=e.n(a);for(var i in a)"default"!==i&&function(n){e.d(t,n,(function(){return a[n]}))}(i);t["default"]=o.a},ee2c:function(n,t,e){var a=e("24fb");t=a(!1),t.push([n.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-99a263c8],\n.content[data-v-99a263c8]{height:100%;background-color:#fff}.bg-img[data-v-99a263c8],\n.logo-img-box[data-v-99a263c8]{position:absolute;top:0;left:0;width:100%;height:100%}.logo-img[data-v-99a263c8]{margin-top:20vh;margin-left:%?176?%;width:%?385?%;height:%?394?%}.userInfo[data-v-99a263c8]{margin:0 %?100?%;margin-top:%?50?%;color:#fff;border-radius:%?99?%;background-color:#f65067!important}.nocaction[data-v-99a263c8]{background-color:#999}body.?%PAGE?%[data-v-99a263c8]{background-color:#fff}',""]),n.exports=t}}]);