(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-wxLogin"],{"0818":function(n,t,e){"use strict";e("7a82");var a=e("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(e("5530")),i=e("5971"),r=e("9fcb"),u=e("26cb"),d={data:function(){return{userInfo:{},code:"",isclick:!1,logo:""}},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/shop/product"==e&&(e="/pages/index/index"),uni.setStorageSync("jynickname",1),uni.switchTab({url:e,fail:function(n){uni.navigateTo({url:e,fail:function(n){uni.navigateTo({url:"/pages/index/index"})}})}})}))}})};t.default=d},"3c69":function(n,t,e){"use strict";e.r(t);var a=e("a084"),o=e("9ed0");for(var i in o)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(i);e("8819");var r=e("f0c5"),u=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"a2785bd2",null,!1,a["a"],void 0);t["default"]=u.exports},5971:function(n,t,e){"use strict";e("7a82");var a=e("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.bangding=function(n){return(0,o.default)({url:"/api/binding",method:"POST",data:n})},t.getUserInfo=function(n){return(0,o.default)({url:"/api/userinfo",method:"get",data:n})},t.login=function(n){return(0,o.default)({url:"/api/login",method:"post",data:n})},t.loginMobile=function(n){return(0,o.default)({url:"/api/login/mobile",method:"post",data:n})},t.register=function(n){return(0,o.default)({url:"/api/register",method:"post",data:n})},t.verify=function(n){return(0,o.default)({url:"/api/register/verify",method:"post",data:n})};var o=a(e("4caf"))},8819:function(n,t,e){"use strict";var a=e("8a1d"),o=e.n(a);o.a},"8a1d":function(n,t,e){var a=e("ec1e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);var o=e("4f06").default;o("647f4490",a,!0,{sourceMap:!1,shadowMode:!1})},"9ed0":function(n,t,e){"use strict";e.r(t);var a=e("0818"),o=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(i);t["default"]=o.a},a084:function(n,t,e){"use strict";e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){}));var a=function(){var n=this.$createElement,t=this._self._c||n;return t("v-uni-view",{staticClass:"content"})},o=[]},ec1e: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-a2785bd2],\n.content[data-v-a2785bd2]{height:100%;background-color:#fff}body.?%PAGE?%[data-v-a2785bd2]{background-color:#fff}.bg-img[data-v-a2785bd2],\n.logo-img-box[data-v-a2785bd2]{position:absolute;top:0;left:0;width:100%;height:100%}.logo-img[data-v-a2785bd2]{margin-top:20vh;margin-left:%?176?%;width:%?385?%;height:%?394?%}.userInfo[data-v-a2785bd2]{margin:0 %?100?%;margin-top:%?50?%;color:#fff;border-radius:%?99?%;background-color:#f75022!important}.nocaction[data-v-a2785bd2]{background-color:#999}',""]),n.exports=t}}]);