1 line
7.1 KiB
JavaScript
1 line
7.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-renovation-myRoomList"],{"0a7d":function(t,n,e){"use strict";e.r(n);var a=e("5f78"),o=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=o.a},"2e44":function(t,n,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.appointmentRoom=function(t){return new Promise((function(n,e){var a="";""==t.tenantName?a="名称不能为空":""==t.tenantSex?a="性别不能空":""==t.tenantTel?a="手机号不能为空":""==t.appointmentTime?a="请填写预约时间":""==t.appointmentRoomId&&(a="预约房屋为空"),""!=a?e(a):(0,o.request)({url:i.default.saveRentingAppointment,method:"POST",data:t,success:function(t){var a=t.data;0!=a.code?e(a.msg):n(a)},fail:function(t){e("服务异常")}})}))},n.getRentingPool=function(t){return new Promise((function(n,e){(0,o.request)({url:i.default.queryRentingPool,method:"GET",data:t,success:function(t){var a=t.data;0==a.code?n(a.data):e(a.msg)},fail:function(t){e(t)}})}))},n.getRooms=function(t){return new Promise((function(n,e){(0,o.request)({url:i.default.queryRoomsByOwner,method:"GET",data:t,success:function(t){n(t.data)},fail:function(t){e(t)}})}))},n.hireRoom=function(t){return new Promise((function(n,e){var a="";""==t.rentingName?a="出租标题不能为空":""==t.roomId?a="请选择房屋":""==t.communityId?a="未找到小区信息":""==t.price?a="请填写租金(元)":""==t.paymentType?a="请选择付费类型":""==t.rentingConfigId?a="请选择出租方式":""==t.rentingDesc?a="请填写出租说明":t.photos.length<1?a="请选择图片":""==t.checkIn&&(a="请选择入住日期"),""!=a?e(a):(0,o.request)({url:i.default.saveRentingPool,method:"POST",data:t,success:function(t){var a=t.data;0!=a.code?e(a.msg):n(a)},fail:function(t){e("服务异常")}})}))},n.queryRentingConfig=function(){return new Promise((function(t,n){(0,o.request)({url:i.default.queryRentingConfig,method:"GET",data:{page:1,row:10},success:function(e){var a=e.data;0==a.code?t(a.data):n(a.msg)},fail:function(t){n(t)}})}))},e("bf0f");var o=e("60c2"),i=a(e("feaa"));a(e("f3cf")),e("70543")},"3e1a":function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var a=function(){var t=this.$createElement,n=this._self._c||t;return n("v-uni-view",[n("v-uni-view",{staticClass:" text-center margin-top-100"},[n("v-uni-view",{},[n("v-uni-text",{staticClass:" cuIcon-warnfill light text-orange no-data-icon"})],1),n("v-uni-view",{},[n("v-uni-text",{staticClass:"text-gray"},[this._v(" "+this._s(this.$t("components.no-data-page.no-data-page.当前没有数据")))])],1)],1)],1)},o=[]},"41c0":function(t,n,e){"use strict";var a=e("886c"),o=e.n(a);o.a},"5f78":function(t,n,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("d4b5");var o=a(e("9a2cc")),i=a(e("c71a")),r=e("2e44"),s=e("ea51"),u={data:function(){return{rooms:[],curRoom:{},moreRooms:[],noData:!1}},components:{noDataPage:i.default},onLoad:function(t){o.default.onLoad(t)},onShow:function(){var t=this,n=this;this.noData=!1,(0,r.getRooms)({communityId:(0,s.getCommunityId)()}).then((function(e){var a=e.rooms;t.rooms=a,n.moreRooms=[],0!=a.length?n.curRoom=a[0]:n.noData=!0}))},methods:{toApplyDetail:function(t){this.vc.navigateTo({url:"/pages/renovation/myRoomRenovationList?room="+JSON.stringify(t)})}}};n.default=u},"70b6":function(t,n,e){var a=e("c86c");n=a(!1),n.push([t.i,".tab-container[data-v-39b63710]{\n\t/*border: 1px solid black;*/margin-top:%?30?%}.tab-item[data-v-39b63710]{padding:%?20?% %?30?%;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.tab-item-hover[data-v-39b63710]{background-color:#e6e6e6}.tab-icon[data-v-39b63710]{width:%?30?%;height:%?30?%}.tab-text[data-v-39b63710]{display:inline-block;margin-left:%?10?%;color:#1e1e1e}.tab-arrow[data-v-39b63710]{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-39b63710]{font-size:%?38?%;line-height:%?38?%}",""]),t.exports=n},7586:function(t,n,e){"use strict";e.r(n);var a=e("cf35"),o=e("0a7d");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("41c0");var r=e("828b"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"39b63710",null,!1,a["a"],void 0);n["default"]=s.exports},"886c":function(t,n,e){var a=e("70b6");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("967d").default;o("7525f9b6",a,!0,{sourceMap:!1,shadowMode:!1})},a60a:function(t,n,e){var a=e("c86c");n=a(!1),n.push([t.i,".no-data-icon[data-v-332247a6]{font-size:%?200?%}.margin-top-100[data-v-332247a6]{margin-top:%?200?%}",""]),t.exports=n},a847:function(t,n,e){"use strict";e.r(n);var a=e("d70f"),o=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=o.a},c71a:function(t,n,e){"use strict";e.r(n);var a=e("3e1a"),o=e("a847");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("d5b2");var r=e("828b"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"332247a6",null,!1,a["a"],void 0);n["default"]=s.exports},cf35:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"tab-container bg-white"},[e("v-uni-view",{staticClass:"cu-list menu"},[t._l(t.rooms,(function(n,a){return t.rooms.length>0?e("v-uni-view",{key:a,staticClass:"cu-item arrow",attrs:{"data-item":n},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toApplyDetail(n)}}},[e("v-uni-view",{staticClass:"content padding-tb-sm"},[e("v-uni-view",[e("v-uni-text",{staticClass:"cuIcon-homefill text-green margin-right-xs"}),t._v(" "+t._s(n.floorNum)+" "+t._s(t.$t("pages.renovation.myRoomList.号楼"))+t._s(n.unitNum)+" "+t._s(t.$t("pages.renovation.myRoomList.单元"))+t._s(n.roomNum)+" "+t._s(t.$t("pages.renovation.myRoomList.室")))],1),e("v-uni-view",{staticClass:"text-gray text-sm"},[e("v-uni-text",{staticClass:"cuIcon-right margin-right-xs"}),t._v(" "+t._s(n.roomId))],1)],1),e("v-uni-view",{staticClass:"action"})],1):t._e()})),0===t.rooms.length?e("v-uni-view",{staticClass:"cu-item"},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"cuIcon-warn text-green"}),e("v-uni-text",{staticClass:"text-grey"},[t._v(" "+t._s(t.$t("pages.renovation.myRoomList.暂无房屋信息")))])],1),e("v-uni-view",{staticClass:"action"})],1):t._e()],2)],1)},o=[]},d5b2:function(t,n,e){"use strict";var a=e("dbbf"),o=e.n(a);o.a},d70f:function(t,n,e){"use strict";e("6a54"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={name:"NoDataPage",data:function(){return{}},methods:{}}},dbbf:function(t,n,e){var a=e("a60a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("967d").default;o("933c3e00",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |