(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-wxLogin"],{"079d":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"content"})},a=[]},"09d8":function(t,e,n){var o=n("2d29");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("4f06").default;a("2a021e67",o,!0,{sourceMap:!1,shadowMode:!1})},"2d29":function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-1b892e38],\n.content[data-v-1b892e38]{height:100%;background-color:#fff}body.?%PAGE?%[data-v-1b892e38]{background-color:#fff}.bg-img[data-v-1b892e38],\n.logo-img-box[data-v-1b892e38]{position:absolute;top:0;left:0;width:100%;height:100%}.logo-img[data-v-1b892e38]{margin-top:20vh;margin-left:%?176?%;width:%?385?%;height:%?394?%}.userInfo[data-v-1b892e38]{margin:0 %?100?%;margin-top:%?50?%;color:#fff;border-radius:%?99?%;background-color:#24a17d!important}.nocaction[data-v-1b892e38]{background-color:#999}.popupsq-wrap[data-v-1b892e38]{width:%?550?%;height:%?450?%;background-color:#fff;border-radius:%?20?%;padding:0 %?30?%}.popupsq-wrap .btn[data-v-1b892e38]{width:%?240?%;height:%?90?%;text-align:center;line-height:%?90?%;font-size:%?30?%;border-radius:%?45?%;font-weight:700}.popupsq-wrap .qx[data-v-1b892e38]{color:#000;border:#f0f0f0 1px solid}.popupsq-wrap .qr[data-v-1b892e38]{color:#fff;background-color:#24a17d}',""]),t.exports=e},6509:function(t,e,n){"use strict";n.r(e);var o=n("079d"),a=n("9e98");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("b2c7");var r=n("f0c5"),u=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"1b892e38",null,!1,o["a"],void 0);e["default"]=u.exports},"889a":function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("5530")),i=n("bde5"),r=n("b2b4"),u=n("26cb"),d={data:function(){return{userInfo:{},code:"",isclick:!1,iv1:"",encryptedData1:"",hasphone:!1}},onLoad:function(){this.loadData()},computed:{},methods:(0,a.default)((0,a.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);var n=uni.getStorageSync("present")||"/pages/index/index";"pages/shop/product"==n&&(n="/pages/index/index"),uni.switchTab({url:n,fail:function(t){uni.navigateTo({url:n,fail:function(t){uni.navigateTo({url:"/pages/index/index"})}})}})}))}})};e.default=d},"9e98":function(t,e,n){"use strict";n.r(e);var o=n("889a"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},b2c7:function(t,e,n){"use strict";var o=n("09d8"),a=n.n(o);a.a},bde5:function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.bangding=function(t){return(0,a.default)({url:"/api/binding",method:"POST",data:t})},e.getUserInfo=function(t){return(0,a.default)({url:"/api/userinfo",method:"get",data:t})},e.login=function(t){return(0,a.default)({url:"/api/login",method:"post",data:t})},e.loginMobile=function(t){return(0,a.default)({url:"/api/login/mobile",method:"post",data:t})},e.register=function(t){return(0,a.default)({url:"/api/register",method:"post",data:t})},e.verify=function(t){return(0,a.default)({url:"/api/register/verify",method:"post",data:t})};var a=o(n("78c5"))}}]);