webpackJsonp([12],{P7ry:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("//Fk"),i=n.n(o),a={data:function(){return{phone:"",onInput:!1,bindType:!1}},created:function(){this.$route.query.bindType&&(this.bindType=!0),this.$route.query.phone&&(window.history.length<=1?this.$router.replace({name:"home",query:{},params:{isNext:1}}):this.$router.go(-1))},computed:{canNext:function(){var t=!1;return this.checkPhone(this.phone)&&(t=!0),t}},methods:{click:function(){var t=this;this.canNext&&(this.bindType?this.checkUsePhone().then(function(e){e?t.$modal.info({msg:"该手机号已使用",duration:1500}):t.$router.replace({name:"loginSe",query:{phone:t.phone,bindType:t.$route.query.bindType},params:{isNext:1}})}):this.$router.replace({name:"loginSe",query:{phone:this.phone},params:{isNext:1}}))},getSend:function(){var t=this;return new i.a(function(e,n){t.$http.get({url:"/rong/sendCode",data:{phone:t.phone}}).then(function(e){e.success?t.$modal.success({msg:"发送成功",duration:1500}):t.$modal.warn({msg:"发送失败",duration:1500})})})},checkUsePhone:function(){var t=this;return this.$store.commit("updateLoading",!0),new i.a(function(e,n){t.$http.get({url:"/userInfo/getOne",data:{phone:t.phone}}).then(function(n){t.$store.commit("updateLoading",!1),n.success?(console.log(n.data),n.data?e(!0):e(!1)):e(!1)})})}},components:{GmButton:n("qkow").a}},s={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"container"},[o("img",{staticClass:"logo",attrs:{src:n("7Otq"),alt:""}}),t._v(" "),o("div",{staticClass:"title"},[t._v("\n        "+t._s(t.bindType?"快速绑定手机号":"手机快捷登录")+"\n    ")]),t._v(" "),o("div",{staticClass:"input"},[o("img",{staticClass:"icon",attrs:{src:n("PyDq"),alt:""}}),t._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:t.phone,expression:"phone"}],attrs:{type:"number",placeholder:"输入手机号"},domProps:{value:t.phone},on:{input:[function(e){e.target.composing||(t.phone=e.target.value)},function(e){t.phone=t.phone.slice(0,11)}],focus:function(e){t.onInput=!0},blur:function(e){t.onInput=!1}}}),t._v(" "),t.onInput&&t.phone?o("img",{staticClass:"del",attrs:{src:n("9F0b"),alt:""},on:{click:function(e){t.phone=""}}}):t._e()]),t._v(" "),o("div",{staticClass:"btn"},[o("gm-button",{attrs:{type:t.canNext?"primary":"dark"},on:{click:t.click}},[t._v("下一步")])],1)])},staticRenderFns:[]};var r=n("VU/8")(a,s,!1,function(t){n("wAaX")},"data-v-c93f9046",null);e.default=r.exports},wAaX:function(t,e){}});
//# sourceMappingURL=12.25eca58d4509f2881818.js.map