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