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