(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login"],{"2ec5":function(t,e,i){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"30f5":function(t,e,i){t.exports=i.p+"static/lbg.png"},3882:function(t,e,i){"use strict";i.r(e);var n=i("c832"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"5f42":function(t,e,i){"use strict";i.r(e);var n=i("d560"),o=i("3882");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("891d");var r=i("828b"),c=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"2bf2d7a0",null,!1,n["a"],void 0);e["default"]=c.exports},"891d":function(t,e,i){"use strict";var n=i("8c1d"),o=i.n(n);o.a},"8c1d":function(t,e,i){var n=i("9e2e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("967d").default;o("47d4bc5e",n,!0,{sourceMap:!1,shadowMode:!1})},"9e2e":function(t,e,i){var n=i("c86c"),o=i("2ec5"),a=i("30f5");e=n(!1);var r=o(a);e.push([t.i,"uni-page-body[data-v-2bf2d7a0]{background-image:url("+r+")!important;background-size:100% 100%}body.?%PAGE?%[data-v-2bf2d7a0]{background-image:url("+r+")!important;background-size:100% 100%}",""]),t.exports=e},c832:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{logoimg:i("c9cb"),codeimg:"",form:{verify_code:"",uuid:"",phone:"",mobilecode:""},loading:!1,codemsg:"发送验证码"}},onLoad:function(){this.getcode()},methods:{getcode:function(){var t=this;this.api.getcode().then((function(e){t.codeimg=e.data.data.img,t.form.uuid=e.data.data.uuid}))},getshouji:function(){var t=this;if(""==this.form.mobile)return uni.showToast({title:"手机号不能为空",icon:"none"}),!1;"发送验证码"!=this.codemsg&&"重新发送"!=this.codemsg||(this.getphonecode(),this.codemsg=5,this.int=setInterval((function(){t.codemsg-=1,0==t.codemsg&&(clearInterval(t.int),t.codemsg="重新发送")}),1e3))},getphonecode:function(){this.api.getpp({phone:this.form.phone}).then((function(t){console.log(t),"200"==t.data.code?uni.showToast({title:"发送成功"}):uni.showToast({title:t.data.message,icon:"none"})}))},gologin:function(){var t=this;this.loading=!0,this.api.login(this.form).then((function(e){console.log(e),200==e.data.code?(uni.setStorageSync("token",e.data.data.token),uni.setStorageSync("site_id",e.data.data.site_id),uni.setStorageSync("user_id",e.data.data.id),uni.setStorageSync("adminname",e.data.data.name),uni.setStorageSync("nickname",e.data.data.nickname),uni.switchTab({url:"/pages/index/index"})):(t.loading=!1,uni.showToast({title:e.data.message,icon:"none"}))}))}}};e.default=n},c9cb:function(t,e,i){t.exports=i.p+"static/logo.png"},d560:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"logo flex_column flex_items"},[i("v-uni-image",{staticStyle:{width:"226rpx",height:"226rpx","margin-top":"100rpx"},attrs:{src:t.logoimg}}),i("v-uni-text",{staticClass:"f44",staticStyle:{color:"#333"}},[t._v("欢迎来到分发平台")]),i("v-uni-view",{staticClass:"mt60 plr30"},[i("v-uni-view",{staticClass:"mt30 flex_start flex_items",staticStyle:{width:"696rpx",background:"#F7F6FF","border-radius":"24rpx",height:"110rpx","line-height":"78rpx"}},[i("van-field",{staticStyle:{width:"696rpx",background:"#F7F6FF","border-radius":"24rpx",height:"110rpx","line-height":"78rpx"},attrs:{label:"",placeholder:"手机号"},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}}),i("v-uni-view",{staticClass:"f28",staticStyle:{color:"#1676FE",width:"200rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getshouji.apply(void 0,arguments)}}},[t._v(t._s(t.codemsg))])],1),i("van-field",{staticClass:"mt30",staticStyle:{width:"696rpx",background:"#F7F6FF","border-radius":"24rpx",height:"110rpx","line-height":"78rpx"},attrs:{label:"",placeholder:"手机验证码"},model:{value:t.form.mobile_code,callback:function(e){t.$set(t.form,"mobile_code",e)},expression:"form.mobile_code"}}),i("v-uni-view",{staticClass:"mt30 flex_start flex_items",staticStyle:{width:"696rpx",background:"#F7F6FF","border-radius":"24rpx",height:"110rpx","line-height":"78rpx"}},[i("van-field",{staticStyle:{width:"696rpx",background:"#F7F6FF","border-radius":"24rpx",height:"110rpx","line-height":"78rpx"},attrs:{label:"",placeholder:"验证码"},model:{value:t.form.verify_code,callback:function(e){t.$set(t.form,"verify_code",e)},expression:"form.verify_code"}}),i("v-uni-image",{staticClass:"ml20",staticStyle:{width:"500rpx",height:"90rpx"},attrs:{src:t.codeimg,mode:""},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getcode.apply(void 0,arguments)}}})],1)],1),i("van-button",{staticClass:"f32 f-center mt60",staticStyle:{"margin-top":"60rpx",width:"696rpx",height:"108rpx","line-height":"108rpx",color:"#fff",background:"linear-gradient(90deg, #B72027 0%, #0D0E5C 100%)","border-radius":"12rpx"},attrs:{loading:t.loading,"loading-text":"登录中..."},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.gologin.apply(void 0,arguments)}}},[t._v("立即登录")])],1)},o=[]}}]);