Files
PropertyDeployment/resources/Web/WechatOwnerService/html/static/js/pages-my-myHouse.433a8d24.js
2025-12-09 22:27:35 +08:00

1 line
5.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-myHouse"],{"27c3":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=n("1c9a"),i=n("766f"),s=o(n("d5d0")),u=(s.default.constant,{data:function(){return{rooms:""}},components:{},props:{},onLoad:function(t){s.default.onLoad(t),console.log("123123"),this.loadOwnerHouse()},onReady:function(){},onShow:function(){},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){this.loadOwnerHouse(),uni.stopPullDownRefresh()},onReachBottom:function(){},onShareAppMessage:function(){},methods:{myHouseDetail:function(t){this.vc.navigateTo({url:"/pages/my/myHouseDetail?room="+JSON.stringify(t)})},loadOwnerHouse:function(){var t=this;(0,i.getRooms)({communityId:(0,a.getCommunityId)()}).then((function(e){t.rooms=e.rooms}))}}});e.default=u},"29e9":function(t,e,n){var o=n("ef6e");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("967d").default;a("05414b0c",o,!0,{sourceMap:!1,shadowMode:!1})},"766f":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("a7bc"),i=o(n("79d4"));o(n("bce4")),n("1803")},"83a6":function(t,e,n){"use strict";var o=n("29e9"),a=n.n(o);a.a},"9b96":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.myHouseDetail(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(e.unitNum)+"-"+t._s(e.roomNum)+" ")],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.my.myHouse.暂无房屋信息")))])],1),n("v-uni-view",{staticClass:"action"})],1):t._e()],2)],1)},a=[]},cfe4:function(t,e,n){"use strict";n.r(e);var o=n("27c3"),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},ecaa:function(t,e,n){"use strict";n.r(e);var o=n("9b96"),a=n("cfe4");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("83a6");var s=n("828b"),u=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,"0ad60032",null,!1,o["a"],void 0);e["default"]=u.exports},ef6e:function(t,e,n){var o=n("c86c");e=o(!1),e.push([t.i,".tab-container[data-v-0ad60032]{\n\t/*border: 1px solid black;*/margin-top:%?30?%}.tab-item[data-v-0ad60032]{padding:%?20?% %?30?%;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.tab-item-hover[data-v-0ad60032]{background-color:#e6e6e6}.tab-icon[data-v-0ad60032]{width:%?30?%;height:%?30?%}.tab-text[data-v-0ad60032]{display:inline-block;margin-left:%?10?%;color:#1e1e1e}.tab-arrow[data-v-0ad60032]{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-0ad60032]{font-size:%?38?%;line-height:%?38?%}",""]),t.exports=e}}]);