(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c2290dfc"],{"12b3":function(e,t,o){},2296:function(e,t,o){"use strict";var i=o("12b3"),s=o.n(i);s.a},a49b:function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"relativeItem",attrs:{id:"txidphone"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:0===e.next,expression:"next === 0"}],staticClass:"phone"},[o("div",{staticClass:"inputshell flex-box"},[o("span",{staticClass:"s1"},[e._v("手机号")]),o("input",{directives:[{name:"model",rawName:"v-model",value:e.phone,expression:"phone"}],attrs:{type:"number",placeholder:"请输入手机号",maxlength:"11"},domProps:{value:e.phone},on:{input:function(t){t.target.composing||(e.phone=t.target.value)}}})]),o("div",{staticClass:"inputshell flex-box"},[o("span",{staticClass:"s1"},[e._v("图片验证码")]),o("input",{directives:[{name:"model",rawName:"v-model",value:e.imgcode,expression:"imgcode"}],attrs:{type:"text",placeholder:"请输入图片验证码"},domProps:{value:e.imgcode},on:{input:function(t){t.target.composing||(e.imgcode=t.target.value)}}}),o("img",{attrs:{src:e.imgcodeurl},on:{click:e.getImgCode}})]),o("div",{staticClass:"inputshell flex-box"},[o("span",{staticClass:"s1"},[e._v("验证码")]),o("input",{directives:[{name:"model",rawName:"v-model",value:e.yzm,expression:"yzm"}],attrs:{type:"number",placeholder:"请输入验证码"},domProps:{value:e.yzm},on:{input:function(t){t.target.composing||(e.yzm=t.target.value)}}}),o("span",{staticClass:"s2 commonBk",class:{disable:!e.getCode},on:{click:e.gcode}},[e._v(e._s(e.codeText))])])]),o("div",{staticClass:"an absoluteItem overHidden commonBk centerX",on:{click:e.bind_phone}},[e.click_able?e._e():o("div",{staticClass:"allA"}),e._v("\n    "+e._s(e.an_text)+"\n  ")])])},s=[],n={name:"txidphone",components:{},data:function(){return{next:0,an_text:"绑定手机",info:{},click_able:!1,name:"",idcode:"",phone:"",yzm:"",imgcode:"",imgcodeurl:"",codeText:"获取验证码",getCode:!1,is:0}},methods:{getInfo:function(){var e=this,t={};this.$jsonp(this.$apis("me"),t,function(t){e.info=t.data.data.result})},gcode:function(){if(this.getCode){this.getCode=!1;var e=this,t={phone:this.phone,code:this.imgcode.toLowerCase()};this.$jsonp(this.$apis("code"),t,function(t){if(200==t.data.data.status){e.$tool.tip("验证码已发送"),e.getCode=!1;var o=59,i=setInterval(function(){o--,e.codeText="已发送("+o+")",0==o&&(clearInterval(i),e.codeText="发送验证码",e.getCode=!0)},1e3)}else e.getCode=!0,e.$tool.tip(t.data.data.msg)})}},getImgCode:function(){var e=this;this.$jsonp(this.$apis("imgcode"),{},function(t){200==t.data.data.status?e.imgcodeurl=t.data.data.data:e.$tool.tip(t.data.data.msg)})},bind_phone:function(){if(!this.click_able)return!1;this.click_able=!0;var e={phone:this.phone,code:this.yzm,imgcode:this.imgcode};console.log(e)},able_db:function(){this.$tool.checkPhone(this.phone)&&""!=this.imgcode&&6==this.yzm.length?this.click_able=!0:this.click_able=!1}},mounted:function(){this.getImgCode(),this.$tool.setTitle("手机绑定")},watch:{yzm:function(){this.able_db()},phone:function(){this.able_db()},imgcode:function(){this.$tool.checkPhone(this.phone)&&4===this.imgcode.length?this.getCode=!0:this.getCode=!1}}},a=n,c=(o("2296"),o("2877")),l=Object(c["a"])(a,i,s,!1,null,"f64ffc56",null);t["default"]=l.exports}}]);
//# sourceMappingURL=chunk-c2290dfc.21ae5e26.js.map