(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-wxLogin"],{1925: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=[]},2233:function(t,n,e){"use strict";e.r(n);var o=e("1925"),a=e("7592");for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);e("af42");var c=e("f0c5"),r=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,"bcd91cbe",null,!1,o["a"],void 0);n["default"]=r.exports},"588c":function(t,n,e){var o=e("c2a7");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=e("4f06").default;a("1a0bbc22",o,!0,{sourceMap:!1,shadowMode:!1})},7592:function(t,n,e){"use strict";e.r(n);var o=e("81a1"),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},"81a1":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("ec28"),c=e("dcfd"),r=e("26cb"),u={data:function(){return{userInfo:{},code:"",isclick:!1,iv1:"",encryptedData1:"",hasphone:!1}},onLoad:function(){this.loadData()},computed:{},methods:(0,a.default)((0,a.default)({},(0,r.mapMutations)("user",["login","setUserInfo"])),{},{close:function(){this.$refs.popupsq.close()},getPhoneNumber:function(t){if(console.log(t,"e+++++++++++++++"),"getPhoneNumber:ok"!=t.detail.errMsg)return this.isclick=!1,void uni.showToast({title:"您拒绝了请求,不能正常使用小程序",icon:"error",duration:2e3});console.log("chenggong++++++++++++++"),this.hasphone=!0,this.iv1=t.detail.iv,this.encryptedData1=t.detail.encryptedData,this.$refs.popupsq.open()},loadData:function(){(0,c.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),"微信用户"==t.data.nickname?uni.showModal({title:"提示",content:"您暂未设置用户名，头像。是否前往设置",success:function(t){t.confirm?uni.navigateTo({url:"/pages/set/userinfo"}):t.cancel&&(logout({}).then((function(t){n.logout()})).catch((function(t){console.log(t)})),n.go())}}):n.go()}))},go:function(){var t=uni.getStorageSync("present")||"/pages/index/index";"pages/shop/product"==t&&(t="/pages/index/index"),uni.switchTab({url:t,fail:function(n){uni.navigateTo({url:t,fail:function(t){uni.navigateTo({url:"/pages/index/index"})}})}})}})};n.default=u},af42:function(t,n,e){"use strict";var o=e("588c"),a=e.n(o);a.a},c2a7: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-bcd91cbe],\n.content[data-v-bcd91cbe]{height:100%;background-color:#fff}body.?%PAGE?%[data-v-bcd91cbe]{background-color:#fff}.bg-img[data-v-bcd91cbe],\n.logo-img-box[data-v-bcd91cbe]{position:absolute;top:0;left:0;width:100%;height:100%}.logo-img[data-v-bcd91cbe]{margin-top:20vh;margin-left:%?176?%;width:%?385?%;height:%?394?%}.userInfo[data-v-bcd91cbe]{margin:0 %?100?%;margin-top:%?50?%;color:#fff;border-radius:%?99?%;background-color:#dc262b!important}.nocaction[data-v-bcd91cbe]{background-color:#999}.popupsq-wrap[data-v-bcd91cbe]{width:%?550?%;height:%?450?%;background-color:#fff;border-radius:%?20?%;padding:0 %?30?%}.popupsq-wrap .btn[data-v-bcd91cbe]{width:%?240?%;height:%?90?%;text-align:center;line-height:%?90?%;font-size:%?30?%;border-radius:%?45?%;font-weight:700}.popupsq-wrap .qx[data-v-bcd91cbe]{color:#000;border:#f0f0f0 1px solid}.popupsq-wrap .qr[data-v-bcd91cbe]{color:#fff;background-color:#dc262b}',""]),t.exports=n},ec28: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("dafe"))}}]);