webpackJsonp([14],{"0kD6":function(t,e){},zBaJ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Dd8w"),o=a.n(n),l=a("qkow"),s=a("NYxO"),i={data:function(){return{input:{name:{val:"",focus:!1,maxlength:10,type:"text",placeholder:"请输入您的姓名",name:"姓名"},phone:{val:"",focus:!1,maxlength:11,type:"number",placeholder:"请输入您的联系方式",name:"联系方式"},address:{val:"",focus:!1,maxlength:30,type:"text",placeholder:"请输入房屋区域",name:"房屋区域"},addressDetail:{val:"",focus:!1,maxlength:30,type:"text",placeholder:"请输入具体位置",name:"具体位置"}}}},watch:{},created:function(){},computed:o()({},Object(s.b)(["userInfo"])),methods:{click:function(){var t=this;this.checkPhone(this.input.phone.val)?(this.$store.commit("updateLoading",!0),this.$http.post({url:"/housingTrust/save",data:{userName:this.userInfo.nickname,userId:this.userInfo.id,realName:this.input.name.val,telephone:this.input.phone.val,address:this.input.address.val,addressDetail:this.input.addressDetail.val}}).then(function(e){t.$store.commit("updateLoading",!1),e.success?t.$alert({title:"",content:"感谢您的信任，平台将尽快与您联系",showCancel:!1},function(){history.back()}):t.$modal.info({msg:"失败",duration:1500})})):this.$modal.info({msg:"手机号格式错误",duration:1500})},content:function(t){var e=this;"number"==this.input[t].type&&(console.log(this.input[t].val.slice(0,11)),setTimeout(function(){e.input[t].val=e.input[t].val.slice(0,11)},100))}},components:{GmButton:l.a}},c={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},[n("img",{staticClass:"logo",attrs:{src:a("7Otq"),alt:""}}),t._v(" "),n("div",{staticClass:"content"},t._l(t.input,function(e,o){return n("div",{staticClass:"item"},[n("div",{staticClass:"title"},[t._v(t._s(e.name))]),t._v(" "),n("div",{staticClass:"val"},["checkbox"===e.type?n("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"item.val"}],attrs:{placeholder:e.placeholder,maxlength:e.maxlength,type:"checkbox"},domProps:{checked:Array.isArray(e.val)?t._i(e.val,null)>-1:e.val},on:{keydown:function(e){t.content(o)},focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:function(a){var n=e.val,o=a.target,l=!!o.checked;if(Array.isArray(n)){var s=t._i(n,null);o.checked?s<0&&t.$set(e,"val",n.concat([null])):s>-1&&t.$set(e,"val",n.slice(0,s).concat(n.slice(s+1)))}else t.$set(e,"val",l)}}}):"radio"===e.type?n("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"item.val"}],attrs:{placeholder:e.placeholder,maxlength:e.maxlength,type:"radio"},domProps:{checked:t._q(e.val,null)},on:{keydown:function(e){t.content(o)},focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:function(a){t.$set(e,"val",null)}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"item.val"}],attrs:{placeholder:e.placeholder,maxlength:e.maxlength,type:e.type},domProps:{value:e.val},on:{keydown:function(e){t.content(o)},focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},input:function(a){a.target.composing||t.$set(e,"val",a.target.value)}}}),t._v(" "),e.val&&e.focus?n("img",{attrs:{src:a("9F0b"),alt:""},on:{click:function(t){e.val=""}}}):t._e()])])})),t._v(" "),n("div",{staticClass:"btn-content"},[n("gm-button",{attrs:{type:"primary"},on:{click:t.click}},[t._v("提交信息")])],1)])},staticRenderFns:[]};var u=a("VU/8")(i,c,!1,function(t){a("0kD6")},"data-v-aea64dfa",null);e.default=u.exports}});
//# sourceMappingURL=14.7c7d271ecf38b7d367b4.js.map