1 line
8.0 KiB
JavaScript
1 line
8.0 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-reserve-reserveMyOrder"],{"05b7":function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{},[a("v-uni-view",{staticClass:"cu-list menu"},[a("v-uni-view",{staticClass:"header_fixed"},[a("v-uni-scroll-view",{staticClass:"bg-white nav"},[a("v-uni-view",{staticClass:"flex text-center"},e._l(e.parkingType,(function(t,s){return a("v-uni-view",{key:s,staticClass:"cu-item flex-sub",class:t.state==e.curStata?"text-green cur":"",attrs:{"data-id":s},on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e._changeState(t)}}},[e._v(" "+e._s(t.name)+" ")])})),1)],1)],1),e._l(e.orders,(function(t,s){return a("v-uni-view",{key:s,staticClass:"bg-white margin-top margin-right-xs radius margin-left-xs "},[a("v-uni-view",{staticClass:"flex padding solid-bottom justify-between"},[a("v-uni-view",{staticStyle:{"font-size":"14px"}},[e._v(" "+e._s(e.$t("pages.reserve.reserveMyOrder.单号"))),a("span",{staticClass:"text-gray",staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.timeId))])])],1),a("v-uni-view",{staticClass:"flex padding-left padding-right margin-top padding-bottom-sm justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[e._v(" "+e._s(e.$t("pages.reserve.reserveMyOrder.商品服务")))]),a("v-uni-view",{staticClass:"text-gray"},[e._v(e._s(t.goodsName))])],1),a("v-uni-view",{staticClass:"flex padding-left padding-right padding-bottom-sm justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[e._v(" "+e._s(e.$t("pages.reserve.reserveMyOrder.预约日期")))]),a("v-uni-view",{staticClass:"text-gray"},[e._v(e._s(t.appointmentTime))])],1),a("v-uni-view",{staticClass:"flex padding-left padding-right padding-bottom-sm justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[e._v(" "+e._s(e.$t("pages.reserve.reserveMyOrder.预约时间")))]),a("v-uni-view",{staticClass:"text-gray"},[e._v(e._s(t.hours)+":00:00")])],1),a("v-uni-view",{staticClass:"flex padding-left padding-right padding-bottom-sm justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[e._v(" "+e._s(e.$t("pages.reserve.reserveMyOrder.金额")))]),a("v-uni-view",{staticClass:"text-gray"},[e._v(e._s(t.receivedAmount))])],1),a("v-uni-view",{staticClass:"flex padding-left padding-right padding-bottom-sm justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[e._v(" "+e._s(e.$t("pages.reserve.reserveMyOrder.核销"))+" "+e._s(e.$t("pages.reserve.reserveMyOrder.核销状态")))]),a("v-uni-view",{staticClass:"text-gray"},[e._v(e._s(t.stateName))])],1),"W"==t.state?a("v-uni-view",{staticClass:"solid-top flex justify-end margin-top padding-top-sm "},[a("v-uni-button",{staticClass:"cu-btn bg-red margin-left",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.personTimeRefund(t,"T")}}},[e._v(" "+e._s(e.$t("pages.reserve.reserveMyOrder.取消")))]),a("v-uni-button",{staticClass:"cu-btn bg-gradual-blue margin-left",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e._toQrCodePage(t)}}},[e._v(e._s(e.$t("pages.reserve.reserveMyOrder.核销")))])],1):e._e(),a("v-uni-view",{staticStyle:{"margin-bottom":"-13px","margin-top":"10px","margin-left":"-20px","margin-right":"-20px",height:"10px","background-color":"#f2f2f2"}})],1)})),0===e.orders.length?a("v-uni-view",{staticClass:"cu-item margin-top"},[a("v-uni-view",{staticClass:"content"},[a("v-uni-text",{staticClass:"cuIcon-warn text-green"}),a("v-uni-text",{staticClass:"text-grey"},[e._v(" "+e._s(e.$t("pages.reserve.reserveMyOrder.暂无记录")))])],1),a("v-uni-view",{staticClass:"action"})],1):e._e()],2)],1)},i=[]},"13c3":function(e,t,a){var s=a("cbff");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var i=a("967d").default;i("37a7343d",s,!0,{sourceMap:!1,shadowMode:!1})},1712:function(e,t,a){"use strict";a("6a54");var s=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(a("d5d0")),r=a("bedb"),n=a("1c9a"),o=s(a("79d4")),d=(i.default.constant,{data:function(){return{orders:[],moreRooms:[],noData:!1,owner:[],parkingType:[{name:this.$t("pages.reserve.reserveMyOrder.全部"),state:""},{name:this.$t("pages.reserve.reserveMyOrder.待核销"),state:"W"},{name:this.$t("pages.reserve.reserveMyOrder.已核销"),state:"C"},{name:this.$t("pages.reserve.reserveMyOrder.已取消"),state:"CL"}],curStata:""}},onLoad:function(e){i.default.onLoad(e),this._loadReserveOrder()},methods:{_changeState:function(e){console.log("_changeState",e),this.curStata=e.state,this._loadReserveOrder()},_loadReserveOrder:function(){var e=this;(0,r.getReserveGoodsOrderTime)({page:1,row:100,state:this.curStata}).then((function(t){e.orders=t}))},_toQrCodePage:function(e){this.vc.navigateTo({url:"/pages/reserve/reserveQrCode?timeId="+e.timeId})},personTimeRefund:function(e,t){var a=this.$t("pages.reserve.reserveMyOrder.申请取消"),s=e.goodsName+"的预约",r=this,d=(0,n.getCommunityId)();uni.showModal({title:a,content:s,success:function(t){if(t.confirm){var a={timeId:e.timeId,communityId:d};i.default.request({url:o.default.deleteReserveGoodsPerson,header:i.default.getHeaders(),method:"POST",data:a,success:function(e){200==e.statusCode&&"0"==e.data.code?(wx.showToast({title:"提示:"+e.data.msg,icon:"none",duration:2e3}),r.switchParkingSpace(r.parkingType[4])):200==e.statusCode&&"404"==e.data.code&&wx.showToast({title:"异常:"+e.data.msg,icon:"none",duration:3e3})},fail:function(e){wx.hideLoading(),wx.showToast({title:this.$t("pages.reserve.reserveMyOrder.服务器异常了"),icon:"none",duration:2e3})}})}else t.cancel}})}}});t.default=d},"42e2":function(e,t,a){"use strict";a.r(t);var s=a("1712"),i=a.n(s);for(var r in s)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return s[e]}))}(r);t["default"]=i.a},bedb:function(e,t,a){"use strict";a("6a54");var s=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.getCatalogGoodss=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:r.default.listReserveGoods,method:"GET",data:e,success:function(e){if(0!=e.data.code)a("未包含数据");else{var s=e.data.data;t(s)}},fail:function(e){a(e)}})}))},t.getCatalogs=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:r.default.listReserveCatalog,method:"GET",data:e,success:function(e){if(0!=e.data.code)a("未包含数据");else{var s=e.data.data;t(s)}},fail:function(e){a(e)}})}))},t.getReserveGoodsOrderTime=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:r.default.listReserveGoodsOrderTime,method:"GET",data:e,success:function(e){if(0!=e.data.code)a("未包含数据");else{var s=e.data.data;t(s)}},fail:function(e){a(e)}})}))},t.getReserveParams=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:r.default.listReserveParams,method:"GET",data:e,success:function(e){if(0!=e.data.code)a("未包含数据");else{var s=e.data.data;t(s)}},fail:function(e){a(e)}})}))},a("bf0f");var i=a("a7bc"),r=s(a("79d4"))},c61c:function(e,t,a){"use strict";var s=a("13c3"),i=a.n(s);i.a},caae:function(e,t,a){"use strict";a.r(t);var s=a("05b7"),i=a("42e2");for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);a("c61c");var n=a("828b"),o=Object(n["a"])(i["default"],s["b"],s["c"],!1,null,"678d7098",null,!1,s["a"],void 0);t["default"]=o.exports},cbff:function(e,t,a){var s=a("c86c");t=s(!1),t.push([e.i,".tab-container[data-v-678d7098]{\n\t/*border: 1px solid black;*/margin-top:%?30?%}.tab-item[data-v-678d7098]{padding:%?20?% %?30?%;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.tab-item-hover[data-v-678d7098]{background-color:#e6e6e6}.tab-icon[data-v-678d7098]{width:%?30?%;height:%?30?%}.tab-text[data-v-678d7098]{display:inline-block;margin-left:%?10?%;color:#1e1e1e}.tab-arrow[data-v-678d7098]{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-678d7098]{font-size:%?38?%;line-height:%?38?%}",""]),e.exports=t}}]); |