pages-public-wxLogin.377bd9d3.js 5.2 KB

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