(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-wxLogin"],{"090d":function(e,t,n){"use strict";var a=n("3708"),i=n.n(a);i.a},3459:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.MaskShow,expression:"MaskShow"}],staticClass:"Mask"},[n("v-uni-view",{staticClass:"Mask-box"},[n("v-uni-view",{staticClass:"title"},[e._v("申请获取您的手机号")]),n("v-uni-view",{staticClass:"text"},[e._v("为了方便您的取货和我们的送货,并获取更多优惠活动,需要您的手机授权")]),n("v-uni-view",{staticClass:"btn_box"},[n("v-uni-button",{staticClass:"weixin",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.ToIndex()}}},[e._v("取消")]),n("v-uni-button",{staticClass:"weixin",attrs:{"open-type":"getPhoneNumber"},on:{getphonenumber:function(t){arguments[0]=t=e.$handleEvent(t),e.PhoneNumber.apply(void 0,arguments)}}},[e._v("手机号授权")])],1)],1)],1)],1)},o=[]},3708:function(e,t,n){var a=n("4fb8");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("4f06").default;i("068357f3",a,!0,{sourceMap:!1,shadowMode:!1})},4138:function(e,t,n){"use strict";n.r(t);var a=n("3459"),i=n("5db7");for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n("090d");var r,s=n("f0c5"),c=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"bbe238fe",null,!1,a["a"],r);t["default"]=c.exports},"4aa5":function(e,t,n){"use strict";var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.login=o,t.register=r,t.verify=s,t.getUserInfo=c,t.loginMobile=u;var i=a(n("0cb8"));function o(e){return(0,i.default)({url:"/api/login",method:"post",data:e})}function r(e){return(0,i.default)({url:"/api/register",method:"post",data:e})}function s(e){return(0,i.default)({url:"/api/register/verify",method:"post",data:e})}function c(e){return(0,i.default)({url:"/api/userinfo",method:"get",data:e})}function u(e){return(0,i.default)({url:"/api/login/mobile",method:"post",data:e})}},"4fb8":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-bbe238fe],\n.content[data-v-bbe238fe]{height:100%}.Mask[data-v-bbe238fe]{position:fixed;top:0;width:100%;height:100%;background-color:rgba(51,51,51,.7)}.Mask .Mask-box[data-v-bbe238fe]{margin:auto;margin-top:%?320?%;padding:%?50?% %?30?%;width:90%;height:%?450?%;top:%?500?%;left:10%;background-color:#fff;border-radius:%?15?%}.Mask .Mask-box .title[data-v-bbe238fe]{text-align:center;font-size:%?35?%;font-weight:700}.Mask .Mask-box .text[data-v-bbe238fe]{font-size:%?30?%;color:#848484;padding-top:%?50?%}.Mask .Mask-box .btn_box[data-v-bbe238fe]{margin:%?70?% 0 0 0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.weixin[data-v-bbe238fe]{background:#f8dd4f;width:40%;color:#fff;border-radius:%?50?%;border:none;margin:0 %?20?%}.bg-img[data-v-bbe238fe],\n.logo-img-box[data-v-bbe238fe]{position:absolute;top:0;left:0;width:100%;height:100%}.logo-img[data-v-bbe238fe]{margin-top:20vh;margin-left:%?176?%;width:%?385?%;height:%?394?%}.userInfo[data-v-bbe238fe]{margin:0 %?100?%;margin-top:%?50?%;color:#fff;border-radius:%?99?%;background-color:#f8dd4f!important}',""]),e.exports=t},"5db7":function(e,t,n){"use strict";n.r(t);var a=n("fbab"),i=n.n(a);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=i.a},fbab:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("c238"),i=(n("2f62"),n("4aa5")),o={data:function(){return{userInfo:{},code:"",loding:!1,MaskShow:!1}},onLoad:function(e){this.loadData()},methods:{loadData:function(){(0,a.loginWinxin)()},ToIndex:function(){var e=uni.getStorageSync("present")||"/pages/index/index";"pages/product/product"==e&&(e="/pages/index/index"),uni.switchTab({url:e,fail:function(t){uni.navigateTo({url:e,fail:function(e){uni.navigateTo({url:"/pages/index/index"})}})}})},PhoneNumber:function(e){var t=this;t.MaskShow=!1,t.iv=e.detail.iv,t.encryptedData=e.detail.encryptedData,uni.setStorageSync("code",t.code),(0,i.bangding)({flag:1,cache_key:t.cache_key,code:t.code,iv:t.iv,encryptedData:t.encryptedData}).then((function(e){1==e.data.is_bind?(console.log("bangding1"),(0,i.bangding)({flag:1,cache_key:t.cache_key,code:t.code,iv:t.iv,encryptedData:t.encryptedData,step:1}).then((function(e){t.GetUser(),t.$api.msg(e.msg),t.$nextTick((function(){t.ToIndex()}))})).catch((function(e){console.log(e)}))):(console.log("bangding2"),t.$api.msg(e.msg),t.GetUser(),t.$api.msg(e.msg),t.$nextTick((function(){t.ToIndex()})))}))},GetUser:function(){var e=this;(0,i.getUserInfo)({}).then((function(t){var n=t.data;e.setUserInfo(n),console.log(n,11),console.log(uni.getStorageSync("userInfo"),55)})).catch((function(e){console.log(e)}))}}};t.default=o}}]);