(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-wxLogin"],{"0af7":function(t,e,a){"use strict";a.r(e);var n=a("655a"),o=a("8023");for(var i in o)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("96b2");var r=a("f0c5"),u=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"4250e9aa",null,!1,n["a"],void 0);e["default"]=u.exports},"655a":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"content"})},o=[]},8023:function(t,e,a){"use strict";a.r(e);var n=a("a180"),o=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},"96b2":function(t,e,a){"use strict";var n=a("db91"),o=a.n(n);o.a},9753:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.bangding=function(t){return(0,o.default)({url:"/api/binding",method:"POST",data:t})},e.getUserInfo=function(t){return(0,o.default)({url:"/api/userinfo",method:"get",data:t})},e.login=function(t){return(0,o.default)({url:"/api/login",method:"post",data:t})},e.loginMobile=function(t){return(0,o.default)({url:"/api/login/mobile",method:"post",data:t})},e.register=function(t){return(0,o.default)({url:"/api/register",method:"post",data:t})},e.verify=function(t){return(0,o.default)({url:"/api/register/verify",method:"post",data:t})};var o=n(a("e5ac"))},a180:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(a("5530")),i=a("9753"),r=a("eb36"),u=a("26cb"),d={data:function(){return{userInfo:{},code:"",isclick:!1,iv1:"",encryptedData1:"",hasphone:!1}},onLoad:function(){this.loadData()},computed:{},methods:(0,o.default)((0,o.default)({},(0,u.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,r.loginWinxin)()},userInfoData:function(){var t=this;t.isclick||(t.isclick=!0,wx.getUserProfile({desc:"用于完善会员资料",success:function(e){console.log(e,"that.userInfo+++++++++++++++++++"),t.userInfo=e,uni.showLoading({title:"授权中",mask:!0}),t.loadMp()},fail:function(e){t.isclick=!1,uni.showToast({title:"您拒绝了请求,不能正常使用小程序",icon:"error",duration:2e3})}}))},wchatAuth:function(t){var e=this;uni.setStorageSync("token",t.token),console.log(t.token,"token++++++++++++++"),(0,i.getUserInfo)({}).then((function(t){console.log("userInfo+++++++++++",t),e.login(),uni.hideLoading(),e.setUserInfo(t.data),e.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(e){uni.navigateTo({url:t,fail:function(t){uni.navigateTo({url:"/pages/index/index"})}})}})}})};e.default=d},a2fd:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-4250e9aa],\n.content[data-v-4250e9aa]{height:100%;background-color:#fff}body.?%PAGE?%[data-v-4250e9aa]{background-color:#fff}.bg-img[data-v-4250e9aa],\n.logo-img-box[data-v-4250e9aa]{position:absolute;top:0;left:0;width:100%;height:100%}.logo-img[data-v-4250e9aa]{margin-top:20vh;margin-left:%?176?%;width:%?385?%;height:%?394?%}.userInfo[data-v-4250e9aa]{margin:0 %?100?%;margin-top:%?50?%;color:#fff;border-radius:%?99?%;background-color:#ff4e4a!important}.nocaction[data-v-4250e9aa]{background-color:#999}.popupsq-wrap[data-v-4250e9aa]{width:%?550?%;height:%?450?%;background-color:#fff;border-radius:%?20?%;padding:0 %?30?%}.popupsq-wrap .btn[data-v-4250e9aa]{width:%?240?%;height:%?90?%;text-align:center;line-height:%?90?%;font-size:%?30?%;border-radius:%?45?%;font-weight:700}.popupsq-wrap .qx[data-v-4250e9aa]{color:#000;border:#f0f0f0 1px solid}.popupsq-wrap .qr[data-v-4250e9aa]{color:#fff;background-color:#ff4e4a}',""]),t.exports=e},db91:function(t,e,a){var n=a("a2fd");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=a("4f06").default;o("5510a1e3",n,!0,{sourceMap:!1,shadowMode:!1})}}]);