1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-appointment-myBoomList"],{"200a":function(t,e,a){"use strict";var i=a("8464"),n=a.n(i);n.a},"2f08":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"tab-container bg-white"},[a("v-uni-view",{staticClass:"cu-list menu"},[a("v-uni-view",{staticClass:"cu-item"},[a("v-uni-view",{staticClass:"content"},[a("v-uni-text",{staticClass:"cuIcon-vip text-green"}),a("v-uni-text",{staticClass:"text-grey"},[t._v(t._s(t.userName))])],1),a("v-uni-view",{staticClass:"action"},[t._v(" "+t._s(t.userTel)+" ")])],1),a("v-uni-view",{staticClass:"header_fixed"},[a("v-uni-scroll-view",{staticClass:"bg-white nav"},[a("v-uni-view",{staticClass:"flex text-center"},t._l(t.parkingType,(function(e,i){return a("v-uni-view",{key:i,staticClass:"cu-item flex-sub",class:e.code==t.code?"text-green cur":"",attrs:{"data-id":i},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.switchParkingSpace(e)}}},[t._v(" "+t._s(e.name)+" ")])})),1)],1)],1),a("v-uni-view",{staticStyle:{height:"10px","background-color":"#f2f2f2"}}),t._l(t.bookingList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"bg-white margin-top margin-right-xs radius margin-left-xs padding"},[a("v-uni-view",{staticClass:"flex padding-bottom-xs justify-between"},[a("v-uni-view",{staticStyle:{"font-size":"14px"}},[t._v(" "+t._s(t.$t("pages.appointment.myBoomList.单号"))),a("span",{staticClass:"text-gray",staticStyle:{"margin-left":"10px"}},[t._v(t._s(e.timeId))])])],1),a("v-uni-view",{staticClass:"flex padding-bottom-xs solid-bottom justify-between"},[a("v-uni-view",{staticStyle:{"font-size":"14px"}},[t._v(" "+t._s(t.$t("pages.appointment.myBoomList.场馆"))),a("span",{staticClass:"text-gray",staticStyle:{"margin-left":"10px"}},[t._v(t._s(e.venueName))])])],1),a("v-uni-view",{staticClass:"flex margin-top justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.myBoomList.场地")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.spaceName))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.myBoomList.预约日期")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.appointmentTime))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.myBoomList.预约时间")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(t.HoursStr(e.hours)))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.myBoomList.预约人")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.personName))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.myBoomList.预约电话")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.personTel))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.myBoomList.金额")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.total))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.myBoomList.核销状态")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(t.StateStr(e.state)))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.myBoomList.核销时间")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.stateTime))])],1),a("v-uni-view",{staticClass:"solid-top flex justify-end margin-top padding-top-sm "},[a("v-uni-button",{staticClass:"cu-btn bg-gradual-blue margin-left",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.toApplyDetail(e)}}},[t._v(" "+t._s(t.$t("pages.appointment.myBoomList.详情")))])],1),a("v-uni-view",{staticStyle:{"margin-bottom":"-13px","margin-top":"10px","margin-left":"-20px","margin-right":"-20px",height:"10px","background-color":"#f2f2f2"}})],1)})),0===t.bookingList.length?a("v-uni-view",{staticClass:"cu-item"},[a("v-uni-view",{staticClass:"content"},[a("v-uni-text",{staticClass:"cuIcon-warn text-green"}),a("v-uni-text",{staticClass:"text-grey"},[t._v(" "+t._s(t.$t("pages.appointment.myBoomList.暂无记录")))])],1),a("v-uni-view",{staticClass:"action"})],1):t._e()],2)],1)},n=[]},"3e1a":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",[e("v-uni-view",{staticClass:" text-center margin-top-100"},[e("v-uni-view",{},[e("v-uni-text",{staticClass:" cuIcon-warnfill light text-orange no-data-icon"})],1),e("v-uni-view",{},[e("v-uni-text",{staticClass:"text-gray"},[this._v(" "+this._s(this.$t("components.no-data-page.no-data-page.当前没有数据")))])],1)],1)],1)},n=[]},6239:function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.appointmentRoom=function(t){return new Promise((function(e,a){var i="";""==t.tenantName?i="名称不能为空":""==t.tenantSex?i="性别不能空":""==t.tenantTel?i="手机号不能为空":""==t.appointmentTime?i="请填写预约时间":""==t.appointmentRoomId&&(i="预约房屋为空"),""!=i?a(i):(0,n.request)({url:s.default.saveRentingAppointment,method:"POST",data:t,success:function(t){var i=t.data;0!=i.code?a(i.msg):e(i)},fail:function(t){a("服务异常")}})}))},e.getBooks=function(t){return new Promise((function(e,a){var i={page:"1",row:"1000",communityId:(0,r.getCommunityId)()};0==t&&(i["personTel"]=(0,o.getUserTel)(),i["personName"]=(0,o.getUserName)()),(0,n.request)({url:s.default.querySpacePerson,method:"GET",data:i,success:function(t){200!=t.statusCode?a("查询订场信息失败"):e(t.data)},fail:function(t){a(t)}})}))},e.getRentingPool=function(t){return new Promise((function(e,a){(0,n.request)({url:s.default.queryRentingPool,method:"GET",data:t,success:function(t){var i=t.data;0==i.code?e(i.data):a(i.msg)},fail:function(t){a(t)}})}))},e.hireRoom=function(t){return new Promise((function(e,a){var i="";""==t.rentingName?i="出租标题不能为空":""==t.roomId?i="请选择房屋":""==t.communityId?i="未找到小区信息":""==t.price?i="请填写租金(元)":""==t.paymentType?i="请选择付费类型":""==t.rentingConfigId?i="请选择出租方式":""==t.rentingDesc?i="请填写出租说明":t.photos.length<1?i="请选择图片":""==t.checkIn&&(i="请选择入住日期"),""!=i?a(i):(0,n.request)({url:s.default.saveRentingPool,method:"POST",data:t,success:function(t){var i=t.data;0!=i.code?a(i.msg):e(i)},fail:function(t){a("服务异常")}})}))},e.queryRentingConfig=function(){return new Promise((function(t,e){(0,n.request)({url:s.default.queryRentingConfig,method:"GET",data:{page:1,row:10},success:function(a){var i=a.data;0==i.code?t(i.data):e(i.msg)},fail:function(t){e(t)}})}))},a("bf0f");var n=a("60c2"),s=i(a("feaa")),o=(i(a("f3cf")),a("2fd0")),r=a("ea51")},8464:function(t,e,a){var i=a("9a67");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("ca3d5916",i,!0,{sourceMap:!1,shadowMode:!1})},"8de0":function(t,e,a){"use strict";a.r(e);var i=a("9d71"),n=a.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"9a67":function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,".tab-container[data-v-bfa2bc5a]{\n\t/*border: 1px solid black;*/margin-top:%?30?%}.tab-item[data-v-bfa2bc5a]{padding:%?20?% %?30?%;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.tab-item-hover[data-v-bfa2bc5a]{background-color:#e6e6e6}.tab-icon[data-v-bfa2bc5a]{width:%?30?%;height:%?30?%}.tab-text[data-v-bfa2bc5a]{display:inline-block;margin-left:%?10?%;color:#1e1e1e}.tab-arrow[data-v-bfa2bc5a]{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-bfa2bc5a]{font-size:%?38?%;line-height:%?38?%}",""]),t.exports=e},"9d71":function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("64aa"),a("aa9c"),a("d4b5");var n=i(a("9a2cc")),s=i(a("c71a")),o=a("6239"),r=(i(a("feaa")),a("2fd0")),u=(n.default.constant,{data:function(){return{bookingList:[],curBooking:{},moreRooms:[],noData:!1,userName:"",userTel:"",parkingType:[{name:this.$t("pages.appointment.myBoomList.全部"),code:1e3},{name:this.$t("pages.appointment.myBoomList.待核销"),code:1001},{name:this.$t("pages.appointment.myBoomList.已核销"),code:2002}],code:"1001"}},components:{noDataPage:s.default},onLoad:function(t){n.default.onLoad(t),this.userName=(0,r.getUserName)(),this.userTel=(0,r.getUserTel)()},onShow:function(){this.initList()},methods:{switchParkingSpace:function(t){this.code=t.code,this.noData=!1,this.initList()},initList:function(){uni.showLoading({title:"加载中"+this.$t("pages.appointment.myBoomList.加载中"),mask:!0});var t=this;this.noData=!1,(0,o.getBooks)(0).then((function(e){wx.hideLoading();var a=e.data;if(t.moreRooms=[],0!=a.length){t.bookingList=[];for(var i=0;i<a.length;i++)for(var n=a[i].times,s=0;s<n.length;s++){var o={appointmentTime:a[i].appointmentTime,spaceId:a[i].spaceId,spaceName:a[i].spaceName,timeId:n[s].timeId,hours:n[s].hours,personName:a[i].personName,personTel:a[i].personTel,communityId:a[i].communityId,state:n[s].state,venueName:a[i].venueName,venueId:a[i].venueId,stateTime:n[s].stateTime,total:a[i].receivableAmount};("C"===o.state&&Number(t.code)===Number("2002")||"CL"===o.state&&Number(t.code)===Number("3003")||"W"===o.state&&Number(t.code)===Number("1001")||Number(t.code)===Number("1000"))&&t.bookingList.push(o)}}else t.noData=!0}))},StateStr:function(t){return"W"==t?"待核销":"C"==t?"已核销":"Y"==t?"已退款":"T"==t?"申请退款"+this.$t("pages.appointment.myBoomList.申请退款"):void 0},HoursStr:function(t){var e=t+":00-"+(Number(t)+1)+":00";return e},toApplyDetail:function(t){this.vc.navigateTo({url:"/pages/appointment/myBooksRenovationDetail?books="+JSON.stringify(t)})}}});e.default=u},a60a:function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,".no-data-icon[data-v-332247a6]{font-size:%?200?%}.margin-top-100[data-v-332247a6]{margin-top:%?200?%}",""]),t.exports=e},a847:function(t,e,a){"use strict";a.r(e);var i=a("d70f"),n=a.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},af96:function(t,e,a){"use strict";a.r(e);var i=a("2f08"),n=a("8de0");for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("200a");var o=a("828b"),r=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"bfa2bc5a",null,!1,i["a"],void 0);e["default"]=r.exports},c71a:function(t,e,a){"use strict";a.r(e);var i=a("3e1a"),n=a("a847");for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("d5b2");var o=a("828b"),r=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"332247a6",null,!1,i["a"],void 0);e["default"]=r.exports},d5b2:function(t,e,a){"use strict";var i=a("dbbf"),n=a.n(i);n.a},d70f:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"NoDataPage",data:function(){return{}},methods:{}}},dbbf:function(t,e,a){var i=a("a60a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("933c3e00",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |