(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/services/property/property"],{"08ab":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,n=function(){Promise.all([i.e("common/vendor"),i.e("comps/mp-time/index")]).then(function(){return resolve(i("a3ea"))}.bind(null,i)).catch(i.oe)},s=getApp(),o={components:{timeSelector:n},data:function(){return{defaultValue:[],platform:"",maskShow:!1,imgList:[],data:{handleStatus:0,memberId:"",userId:"",residentialId:"",residentialName:"",reportPosition:"",beginTime:"",endTime:"",phone:"",reportDetail:"",pic:""},base64_image:[],residentialShow:!1,residentialList:[],timeShow:!1,dateTimeStr:""}},onLoad:function(){this.initData()},onShow:function(){this.data.phone=getApp().globalData.member.tel},methods:{initData:function(){var e=this;a=this,this.platform=this.$u.os()||"android",this.data.userId=s.globalData.userId;try{a.data.memberId=s.globalData.member.id}catch(i){console.log(i)}if(this.$isEmpty(this.data.memberId))return console.log("系统异常"),void s.globalData.oneFailHint("系统异常",(function(){t.navigateBack({delta:1})}));this.residentialList=t.getStorageSync("residentialList"),this.data.residentialName=t.getStorageSync("plotName"),this.data.residentialId=t.getStorageSync("residentialId"),this.residentialList.forEach((function(t,i){t.residentialId!==e.data.residentialId||e.defaultValue.push(i)}))},submit:function(){this.$isEmpty(this.data.residentialName)?this.$u.toast("请选择小区"):this.$isEmpty(this.data.reportPosition)?this.$u.toast("请填写具体位置"):this.$isEmpty(this.data.phone)?this.$u.toast("请输入联系方式"):this.$u.test.mobile(this.data.phone)?this.$isEmpty(this.data.beginTime)||this.$isEmpty(this.data.endTime)?this.$u.toast("请选择预约时间"):this.$util.createDate(this.data.beginTime).getTime()>this.$util.createDate(this.data.endTime).getTime()?this.$u.toast("开始时间不能小于结束时间"):this.$isEmpty(this.data.reportDetail)?this.$u.toast("请输入故障描述"):(this.data.pic=JSON.stringify(this.base64_image),console.log(this.data),a.$http.addEstateRepair(this.data).then((function(t){t.data.add_result?s.globalData.oneFailHint("提交成功"):s.globalData.oneFailHint("提交失败")}))):this.$u.toast("请输入正确的联系方式")},showMask:function(){console.log(this.platform),"ios"!=this.platform&&(this.maskShow=!0)},confirm:function(){this.maskShow=!1},residentialConfirm:function(t){this.data.residentialId=t[0].value,this.data.residentialName=t[0].label},keyboardheightchange:function(t){console.log(t.detail.height),console.log(this.maskShow),0==t.detail.height&&(this.maskShow=!1)},timeConfirm:function(t){this.timeShow=!1,this.data.beginTime=t.beginTime,this.data.endTime=t.endTime,this.dateTimeStr=this.data.beginTime+"   至   "+this.data.endTime},chooseImage:function(){var e=this;t.chooseImage({count:4-this.imgList.length,sizeType:["original","compressed"],sourceType:["album"],success:function(i){var a=i.tempFilePaths;for(var n in a)e.imgList.push(a[n]),t.getFileSystemManager().readFile({filePath:a[n],encoding:"base64",success:function(t){e.base64_image.push("data:image/jpeg;base64,"+t.data)}})}})},viewImage:function(e){t.previewImage({urls:this.imgList,current:e})},DelImg:function(e){var i=this;t.showModal({title:"提示",content:"确定要删除这张照片吗？",cancelText:"取消",confirmText:"确定",success:function(t){t.confirm&&(i.imgList.splice(e,1),i.base64_image.splice(e,1))}})}}};e.default=o}).call(this,i("543d")["default"])},"4f0c":function(t,e,i){"use strict";(function(t){i("4518");a(i("66fd"));var e=a(i("c64f"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,i("543d")["createPage"])},5733:function(t,e,i){"use strict";i.r(e);var a=i("08ab"),n=i.n(a);for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},9591:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var a={uInput:function(){return Promise.all([i.e("common/vendor"),i.e("uview-ui/components/u-input/u-input")]).then(i.bind(null,"3de1"))},uMask:function(){return i.e("uview-ui/components/u-mask/u-mask").then(i.bind(null,"5c0e"))},uPopup:function(){return i.e("uview-ui/components/u-popup/u-popup").then(i.bind(null,"4d7c"))},uSelect:function(){return i.e("uview-ui/components/u-select/u-select").then(i.bind(null,"0ae5"))}},n=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.residentialShow=!0},t.e1=function(e){t.timeShow=!0},t.e2=function(e){t.maskShow=!1})},s=[]},aa9f:function(t,e,i){"use strict";var a=i("e343"),n=i.n(a);n.a},c64f:function(t,e,i){"use strict";i.r(e);var a=i("9591"),n=i("5733");for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("aa9f");var o,u=i("f0c5"),r=Object(u["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=r.exports},e343:function(t,e,i){}},[["4f0c","common/runtime","common/vendor"]]]);