Files
PropertyDeployment/resources/Web/WechatOwnerService/html/static/js/pages-renovation-roomRenovation.97857da5.js
2025-12-09 20:22:03 +08:00

1 line
5.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-renovation-roomRenovation"],{"2e44":function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.appointmentRoom=function(t){return new Promise((function(e,n){var o="";""==t.tenantName?o="名称不能为空":""==t.tenantSex?o="性别不能空":""==t.tenantTel?o="手机号不能为空":""==t.appointmentTime?o="请填写预约时间":""==t.appointmentRoomId&&(o="预约房屋为空"),""!=o?n(o):(0,a.request)({url:i.default.saveRentingAppointment,method:"POST",data:t,success:function(t){var o=t.data;0!=o.code?n(o.msg):e(o)},fail:function(t){n("服务异常")}})}))},e.getRentingPool=function(t){return new Promise((function(e,n){(0,a.request)({url:i.default.queryRentingPool,method:"GET",data:t,success:function(t){var o=t.data;0==o.code?e(o.data):n(o.msg)},fail:function(t){n(t)}})}))},e.getRooms=function(t){return new Promise((function(e,n){(0,a.request)({url:i.default.queryRoomsByOwner,method:"GET",data:t,success:function(t){e(t.data)},fail:function(t){n(t)}})}))},e.hireRoom=function(t){return new Promise((function(e,n){var o="";""==t.rentingName?o="出租标题不能为空":""==t.roomId?o="请选择房屋":""==t.communityId?o="未找到小区信息":""==t.price?o="请填写租金(元)":""==t.paymentType?o="请选择付费类型":""==t.rentingConfigId?o="请选择出租方式":""==t.rentingDesc?o="请填写出租说明":t.photos.length<1?o="请选择图片":""==t.checkIn&&(o="请选择入住日期"),""!=o?n(o):(0,a.request)({url:i.default.saveRentingPool,method:"POST",data:t,success:function(t){var o=t.data;0!=o.code?n(o.msg):e(o)},fail:function(t){n("服务异常")}})}))},e.queryRentingConfig=function(){return new Promise((function(t,e){(0,a.request)({url:i.default.queryRentingConfig,method:"GET",data:{page:1,row:10},success:function(n){var o=n.data;0==o.code?t(o.data):e(o.msg)},fail:function(t){e(t)}})}))},n("bf0f");var a=n("60c2"),i=o(n("feaa"));o(n("f3cf")),n("70543")},"31d7":function(t,e,n){var o=n("c86c");e=o(!1),e.push([t.i,".tab-container[data-v-33ce571d]{\n\t/*border: 1px solid black;*/margin-top:%?30?%}.tab-item[data-v-33ce571d]{padding:%?20?% %?30?%;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.tab-item-hover[data-v-33ce571d]{background-color:#e6e6e6}.tab-icon[data-v-33ce571d]{width:%?30?%;height:%?30?%}.tab-text[data-v-33ce571d]{display:inline-block;margin-left:%?10?%;color:#1e1e1e}.tab-arrow[data-v-33ce571d]{display:inline-block;width:%?20?%;height:%?20?%;border:1px solid #cdcdcd;border-left:none;border-bottom:none;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.border-bottom .icon[data-v-33ce571d]{font-size:%?38?%;line-height:%?38?%}",""]),t.exports=e},"592f":function(t,e,n){"use strict";n.r(e);var o=n("cc01"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},8151:function(t,e,n){var o=n("31d7");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("967d").default;a("6c95f20e",o,!0,{sourceMap:!1,shadowMode:!1})},"9cd5":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"tab-container bg-white"},[n("v-uni-view",{staticClass:"cu-list menu"},[t._l(t.rooms,(function(e,o){return t.rooms.length>0?n("v-uni-view",{key:o,staticClass:"cu-item arrow",attrs:{"data-item":e},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toApplyDetail(e)}}},[n("v-uni-view",{staticClass:"content padding-tb-sm"},[n("v-uni-view",[n("v-uni-text",{staticClass:"cuIcon-homefill text-green margin-right-xs"}),t._v(" "+t._s(e.floorNum)+" "+t._s(t.$t("pages.renovation.roomRenovation.号楼"))+t._s(e.unitNum)+" "+t._s(t.$t("pages.renovation.roomRenovation.单元"))+t._s(e.roomNum)+" "+t._s(t.$t("pages.renovation.roomRenovation.室")))],1),n("v-uni-view",{staticClass:"text-gray text-sm"},[n("v-uni-text",{staticClass:"cuIcon-right margin-right-xs"}),t._v(" "+t._s(e.roomId))],1)],1),n("v-uni-view",{staticClass:"action"})],1):t._e()})),0===t.rooms.length?n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-warn text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v(" "+t._s(t.$t("pages.renovation.roomRenovation.暂无房屋信息")))])],1),n("v-uni-view",{staticClass:"action"})],1):t._e()],2)],1)},a=[]},ba2b:function(t,e,n){"use strict";n.r(e);var o=n("9cd5"),a=n("592f");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("fc62");var r=n("828b"),c=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"33ce571d",null,!1,o["a"],void 0);e["default"]=c.exports},cc01:function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d4b5");var a=o(n("9a2cc")),i=n("2e44"),r=n("ea51"),c={data:function(){return{rooms:[],curRoom:{},moreRooms:[]}},components:{},onLoad:function(t){a.default.onLoad(t)},onShow:function(){var t=this,e=this;(0,i.getRooms)({communityId:(0,r.getCommunityId)()}).then((function(n){var o=n.rooms;t.rooms=o,e.moreRooms=[],0!=o.length&&(e.curRoom=o[0])}))},methods:{toApplyDetail:function(t){this.vc.navigateTo({url:"/pages/renovation/roomRenovationDetail?room="+encodeURIComponent(JSON.stringify(t))})}}};e.default=c},fc62:function(t,e,n){"use strict";var o=n("8151"),a=n.n(o);a.a}}]);