1 line
8.4 KiB
JavaScript
1 line
8.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-applyRoom-applyRoom"],{"223b":function(t,o,e){"use strict";e.r(o);var n=e("d32d"),a=e.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){e.d(o,t,(function(){return n[t]}))}(i);o["default"]=a.a},"23a7":function(t,o,e){"use strict";e.r(o);var n=e("bca8"),a=e("223b");for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(o,t,(function(){return a[t]}))}(i);e("6c76");var s=e("828b"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"6659d75c",null,!1,n["a"],void 0);o["default"]=c.exports},"4f49":function(t,o,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(o,"__esModule",{value:!0}),o.cutApplyRoomDiscountRecord=function(t,o){return new Promise((function(e,n){t.context.post({url:a.default.cutApplyRoomDiscountRecord,data:o,success:function(t){0==t.data.code?e():wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},o.loadApplyRooms=function(t,o){return new Promise((function(e,n){t.context.get({url:a.default.listApplyRoom,data:o,success:function(o){t.onoff=!0,0==o.data.code?e(o.data):wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},o.loadFeeDiscount=function(t,o){return new Promise((function(e,n){t.context.get({url:a.default.queryFeeDiscount,data:o,success:function(t){0==t.data.code?e(t.data.data):wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},o.queryApplyRoomRecord=function(t,o){return new Promise((function(e,n){t.context.get({url:a.default.listApplyRoomDiscountRecord,data:o,success:function(t){0==t.data.code?e(t.data):wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},o.queryApplyRoomRecordDetail=function(t,o){return new Promise((function(e,n){t.context.get({url:a.default.listApplyRoomDiscountRecordDetail,data:o,success:function(t){0==t.data.code?e(t.data.data):wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},o.queryDictInfo=function(t,o){return new Promise((function(e,n){t.context.get({url:a.default.queryDictInfo,data:o,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},o.saveApplyRoomDiscountRecord=function(t,o){return new Promise((function(e,n){t.context.post({url:a.default.saveApplyRoomDiscountRecord,data:o,success:function(t){0==t.data.code?e():wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},o.uploadCheckUpdate=function(t,o){return new Promise((function(e,n){t.context.post({url:a.default.updateApplyRoomDiscount,data:o,success:function(t){0==t.data.code?e():wx.showToast({title:t.data.msg,icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},o.uploadReviewUpdate=function(t,o){return new Promise((function(e,n){t.context.post({url:a.default.updateReviewApplyRoomDiscount,data:o,success:function(t){0==t.data.code?e():wx.showToast({title:t.data.msg,icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e("bf0f");var a=n(e("9494"))},"6c76":function(t,o,e){"use strict";var n=e("ca26"),a=e.n(n);a.a},a536:function(t,o,e){var n=e("c86c");o=n(!1),o.push([t.i,".item-content[data-v-6659d75c]{width:100%;margin-left:%?20?%;line-height:1.6em}",""]),t.exports=o},a98f:function(t,o,e){"use strict";e("6a54"),Object.defineProperty(o,"__esModule",{value:!0}),o.preventClick=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=this;e.onoff?(e.onoff=!1,t(o)):uni.showToast({title:"操作过于频繁",icon:"none"})}},bca8:function(t,o,e){"use strict";e.d(o,"b",(function(){return a})),e.d(o,"c",(function(){return i})),e.d(o,"a",(function(){return n}));var n={uniLoadMore:e("aa02").default,noDataPage:e("8981").default},a=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("v-uni-view",[e("v-uni-view",{staticClass:"cu-bar bg-white search "},[e("v-uni-view",{staticClass:"search-form round"},[e("v-uni-text",{staticClass:"cuIcon-search"}),e("v-uni-input",{attrs:{type:"text",placeholder:t.$t("pages.applyRoom.applyRoom.输入房屋号"),"confirm-type":"search"},model:{value:t.roomName,callback:function(o){t.roomName=o},expression:"roomName"}})],1),e("v-uni-view",{staticClass:"search-form round"},[e("v-uni-text",{staticClass:"cuIcon-search"}),e("v-uni-picker",{attrs:{value:t.applyStatesIndex,range:t.applyStates,"range-key":"name"},on:{change:function(o){arguments[0]=o=t.$handleEvent(o),t.applyStatesChange.apply(void 0,arguments)}}},[e("v-uni-view",[t._v(t._s(t.applyStates[t.applyStatesIndex].name))])],1)],1),e("v-uni-view",{staticClass:"action"},[e("v-uni-button",{staticClass:"cu-btn bg-gradual-green shadow-blur round",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.$preventClick(t._searchApply)}}},[t._v(t._s(t.$t("pages.applyRoom.applyRoom.搜索")))])],1)],1),t.applyRoomList.length>0?e("v-uni-view",{staticClass:"margin-top"},[t._l(t.applyRoomList,(function(o,n){return e("v-uni-view",{key:n,staticClass:"cu-list menu-avatar ",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._toApplyRoomDetail(o)}}},[e("v-uni-view",{staticClass:"cu-item arrow"},[e("v-uni-view",{staticClass:"item-content"},[e("v-uni-view",{staticClass:"text-grey"},[e("v-uni-text",{staticClass:"cuIcon-notification text-cut text-green margin-right-xs"}),t._v(" "+t._s(o.stateName)+"-"+t._s(o.roomName)+" ")],1),e("v-uni-view",{staticClass:"text-gray text-sm flex"},[e("v-uni-view",{staticClass:"text-cut"},[t._v(" "+t._s(t.$t("pages.applyRoom.applyRoom.申请人:"))+" "+t._s(o.createUserName)+"-"+t._s(o.createUserTel)+" ")])],1)],1),e("v-uni-view",{staticClass:"action"},[e("v-uni-view",{staticClass:"text-grey text-xs"},[e("v-uni-text",{staticClass:"lg text-gray cuIcon-right margin-left-xs"})],1)],1)],1)],1)})),e("uni-load-more",{attrs:{status:t.loadingStatus,"content-text":t.loadingContentText}})],2):e("v-uni-view",[e("no-data-page")],1)],1)},i=[]},ca26:function(t,o,e){var n=e("a536");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("967d").default;a("abbdd71c",n,!0,{sourceMap:!1,shadowMode:!1})},d32d:function(t,o,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,e("c223");var a=n(e("8981")),i=n(e("aa02")),s=e("4f49"),c=e("7fee"),u=e("a98f"),l=n(e("9b8e"));l.default.prototype.$preventClick=u.preventClick;var r={data:function(){return{onoff:!0,communityId:"",applyRoomList:[],page:1,loadingStatus:"loading",loadingContentText:{contentdown:"上拉加载更多",contentrefresh:"加载中",contentnomore:"没有更多"},applyStates:[{name:this.$t("pages.applyRoom.applyRoom.请选择")}],applyStatesIndex:0,applyState:"",roomName:""}},components:{noDataPage:a.default,uniLoadMore:i.default},onLoad:function(t){this.java110Context.onLoad(),this.loadApplyState()},onShow:function(){this.page=1,this.applyRoomList=[],this.communityId=(0,c.getCurrentCommunity)().communityId,this.loadApply()},onReachBottom:function(){"noMore"!=this.loadingStatus&&this.loadApply()},methods:{_searchApply:function(){this.applyRoomList=[],this.page=1,this.loadApply()},loadApplyState:function(){var t=this;(0,s.queryDictInfo)(this,{name:"apply_room_discount",type:"state"}).then((function(o){t.applyStates=t.applyStates.concat(o)}))},applyStatesChange:function(t){if(this.applyStatesIndex=t.target.value,0!=this.applyStatesIndex){var o=this.applyStates[this.applyStatesIndex];this.applyState=o.statusCd}else this.applyState=""},loadApply:function(){this.loadingStatus="more";var t=this,o={page:this.page,row:10,communityId:this.communityId,roomName:this.roomName,state:this.applyState};(0,s.loadApplyRooms)(this,o).then((function(o){t.applyRoomList=t.applyRoomList.concat(o.data),t.page++,t.applyRoomList.length!=o.total||(t.loadingStatus="noMore")}))},_toApplyRoomDetail:function(t){uni.navigateTo({url:"/pages/applyRoomDetail/applyRoomDetail?ardId="+t.ardId+"&communityId="+t.communityId})}}};o.default=r}}]); |