webpackJsonp([13],{"8zcT":function(e,t){},ImYn:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=s("Dd8w"),n=s.n(o),a=s("qkow"),i=s("NYxO"),r=s("Cpzv"),c=s("PJh5"),d=s.n(c),l={data:function(){return{info:{},rentType:["整租","合租","品牌公寓"],date:"",startTime:"",note:""}},created:function(){var e=this;this.$http.get({url:"/houseInfo/detail",data:{id:this.$route.query.id,statusFlag:1}}).then(function(t){t.success&&(e.info=t.data)}),this.startTime=d()().format("YYYY-MM-DD HH:mm")},computed:n()({},Object(i.b)(["locationInfo","userInfo"])),methods:{open:function(){this.$refs.datetime.open()},click:function(){var e=this;if(this.date&&this.userInfo.nickname&&this.userInfo.phone)if(this.checkPhone(this.userInfo.phone)){this.$store.commit("updateLoading",!0),console.log(this.date),console.log(d()(this.date,"YYYY-MM-DD HH:mm"));var t={userId:this.userInfo.id,houseId:this.$route.query.id,housekeeper:this.info.housekeeper,contact:this.userInfo.nickname,telephone:this.userInfo.phone,leaveMessage:this.note,orderTime:Date.parse(new Date(d()(this.date,"YYYY-MM-DD HH:mm")))};console.log(t),this.$http.post({url:"/seeOrder/save",data:{userId:this.userInfo.id,houseId:this.$route.query.id,housekeeper:this.info.housekeeper,contact:this.userInfo.nickname,telephone:this.userInfo.phone,leaveMessage:this.note,orderTime:Date.parse(new Date(d()(this.date,"YYYY-MM-DD HH:mm")))}}).then(function(t){e.$store.commit("updateLoading",!1),t.success?e.$alert({title:"",content:"预约成功，管家会尽快与您联系",showCancel:!1},function(){history.back()}):e.$modal.info({msg:t.error,duration:1500})})}else this.$modal.info({msg:"手机号格式错误",duration:1500});else this.$modal.info({msg:"信息填写不全不能提交",duration:1500})}},components:{GmButton:a.a,largeGoodsItem:r.a}},u={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"container"},[o("div",{staticClass:"top"},[o("largeGoodsItem",{attrs:{goodsInfo:e.info,type:1}})],1),e._v(" "),o("div",{staticClass:"list"},[o("div",{staticClass:"item",on:{click:e.open}},[o("div",{staticClass:"title"},[e._v("看房时间")]),e._v(" "),o("div",{staticClass:"val",class:[e.date?"":"notSet"]},[e._v(e._s(e.date?e.date:"请选择您方便的时间"))]),e._v(" "),o("img",{attrs:{src:s("AIVy"),alt:""}})]),e._v(" "),o("div",{staticClass:"item"},[o("div",{staticClass:"title"},[e._v("联系人")]),e._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.userInfo.nickname,expression:"userInfo.nickname"}],attrs:{type:"text",placeholder:"请填写联系人",maxlength:"20"},domProps:{value:e.userInfo.nickname},on:{input:function(t){t.target.composing||e.$set(e.userInfo,"nickname",t.target.value)}}})]),e._v(" "),o("div",{staticClass:"item"},[o("div",{staticClass:"title"},[e._v("电话")]),e._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.userInfo.phone,expression:"userInfo.phone"}],attrs:{type:"number",placeholder:"请填写手机号码"},domProps:{value:e.userInfo.phone},on:{input:function(t){t.target.composing||e.$set(e.userInfo,"phone",t.target.value)}}})]),e._v(" "),o("div",{staticClass:"item",staticStyle:{height:"2rem"}},[o("textarea",{directives:[{name:"model",rawName:"v-model",value:e.note,expression:"note"}],attrs:{placeholder:"如有其他需求请备注"},domProps:{value:e.note},on:{input:function(t){t.target.composing||(e.note=t.target.value)}}})])]),e._v(" "),o("div",{staticStyle:{"flex-grow":"1"}}),e._v(" "),o("div",{staticClass:"btn-content"},[o("gm-button",{attrs:{type:"primary"},on:{click:e.click}},[e._v("提交")])],1),e._v(" "),o("yd-datetime",{ref:"datetime",staticStyle:{display:"none"},attrs:{slot:"right","start-date":e.startTime},slot:"right",model:{value:e.date,callback:function(t){e.date=t},expression:"date"}})],1)},staticRenderFns:[]};var m=s("VU/8")(l,u,!1,function(e){s("8zcT")},"data-v-c7565e1e",null);t.default=m.exports}});
//# sourceMappingURL=13.54870e93c85e7b1a55f1.js.map