1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-reserv-reserv"],{"0f27":function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,".select-time-txt[data-v-2e62f37d]{background-color:#faebd7;line-height:%?60?%;text-align:center;color:#3699ff;font-size:%?24?%;border-radius:%?10?%;flex:1}",""]),e.exports=t},3170:function(e,t,i){"use strict";i.r(t);var a=i("d2b4"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(s);t["default"]=n.a},"49eb":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){return a}));var a={uPopup:i("3065").default,uIcon:i("ca16").default},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("u-popup",{attrs:{mode:"bottom"},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.timeShow=!1},open:function(t){arguments[0]=t=e.$handleEvent(t),e.open.apply(void 0,arguments)}},model:{value:e.timeShow,callback:function(t){e.timeShow=t},expression:"timeShow"}},[i("v-uni-view"),i("v-uni-view",{staticClass:"date-box"},[i("v-uni-view",{staticClass:"dataTitle"},[i("u-icon",{attrs:{name:"volume-fill",color:"#2979ff",size:"32"}}),i("v-uni-text",[e._v("请提前一天预约,灰色表示无保洁师")])],1),i("v-uni-view",{staticClass:"date-title"},[i("v-uni-view",{staticClass:"date-item"},e._l(e.dateTimeList2,(function(t,a){return i("v-uni-view",{key:a,class:t.select?"item active":"item",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.selectTime(t,a)}}},[i("v-uni-text",[e._v(e._s(t.date.split("-")[1]+"-"+t.date.split("-")[2]))]),i("v-uni-view",[e._v(e._s(t.week))])],1)})),1),i("v-uni-view",{staticClass:"otherTime"},[i("v-uni-picker",{attrs:{start:e.starttime,mode:"date"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.datechange.apply(void 0,arguments)}}},[i("u-icon",{attrs:{name:"calendar",color:"##699FF",size:"44"}}),i("v-uni-text",[e._v("其他时间")])],1)],1)],1),i("v-uni-view",{staticClass:"hour-item"},[e.showswiper?i("v-uni-swiper",{staticClass:"swiper",attrs:{circular:!0,current:e.current},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.swiperChange.apply(void 0,arguments)}}},e._l(e.dateTimeList2,(function(t,a){return i("v-uni-swiper-item",{key:a},e._l(t.hourLists,(function(t,n){return i("v-uni-view",{key:n,staticClass:"item",class:{"item active":t.select}},[t.disabled?i("v-uni-view",{staticClass:"hourDisabled",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.alreadySubscribe()}}},[e._v(e._s(t.hour))]):i("v-uni-view",{staticClass:"hour",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.selectHour(t,a,n)}}},[e._v(e._s(t.hour)+"—可预约"+e._s(t.staffnumber)+"人")])],1)})),1)})),1):e._e()],1)],1),i("v-uni-view",{staticClass:"dataTime-btn"},[i("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelDateTime.apply(void 0,arguments)}}},[e._v("取消")]),i("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectTimeSlot.apply(void 0,arguments)}}},[e._v("确认")])],1)],1)],1)},s=[]},"669d":function(e,t,i){"use strict";i.r(t);var a=i("fa1c"),n=i("3170");for(var s in n)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(s);i("7c65");var r=i("f0c5"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"2e62f37d",null,!1,a["a"],void 0);t["default"]=o.exports},"6c5d":function(e,t,i){"use strict";i.r(t);var a=i("49eb"),n=i("807f");for(var s in n)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(s);i("fbb1");var r=i("f0c5"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"709d1464",null,!1,a["a"],void 0);t["default"]=o.exports},"70cf":function(e,t,i){var a=i("c5be");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("0a3cfce2",a,!0,{sourceMap:!1,shadowMode:!1})},"7c65":function(e,t,i){"use strict";var a=i("be28"),n=i.n(a);n.a},"807f":function(e,t,i){"use strict";i.r(t);var a=i("eaa4"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(s);t["default"]=n.a},be28:function(e,t,i){var a=i("0f27");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("c3b46342",a,!0,{sourceMap:!1,shadowMode:!1})},c5be:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */uni-swiper[data-v-709d1464]{height:%?490?%;overflow-y:auto}uni-swiper-item[data-v-709d1464]{overflow-y:auto}.select-time-txt[data-v-709d1464]{background-color:#faebd7;line-height:%?60?%;text-align:center;color:#3699ff;font-size:%?24?%;border-radius:%?10?%;flex:1}.dataTitle[data-v-709d1464]{color:#3699ff;text-align:center;line-height:%?80?%;font-size:%?32?%;font-weight:600;display:flex;justify-content:center;align-items:center}.dataTitle uni-text[data-v-709d1464]{margin-left:%?10?%}.date-box[data-v-709d1464]{padding:%?24?%;height:%?672?%;border-radius:%?10?%}.date-box .date-title[data-v-709d1464]{display:flex;background-color:#d7e9eb;height:%?110?%;border-radius:%?16?%;overflow:hidden;border:1px solid #3699ff;font-size:%?30?%}.date-box .date-title .date-item[data-v-709d1464]{flex:1;display:flex;color:#676767}.date-box .date-title .date-item .item[data-v-709d1464]{width:%?110?%;text-align:center;margin-right:%?12?%;padding:%?10?%}.date-box .date-title .date-item .item.active[data-v-709d1464]{background-color:#3699ff;color:#fff}.date-box .date-title .otherTime[data-v-709d1464]{line-height:%?84?%;color:#3699ff;display:flex;padding-right:%?24?%;align-items:center;justify-content:center}.hour-item[data-v-709d1464]{height:%?490?%;overflow-y:auto}.hour-item .item[data-v-709d1464]{float:left;width:50%;text-align:center;line-height:%?72?%;border-radius:%?6?%;margin-top:%?30?%;color:#333;box-sizing:border-box;padding:0 %?2?%}.hour-item .item .hour[data-v-709d1464]{background-color:#d7e9eb;border:1px solid #a8cdff;border-radius:%?20?%}.hour-item .item .hourDisabled[data-v-709d1464]{background-color:#d6d6d6;color:#fff;border:1px solid #d6d6d6;border-radius:%?20?%}.hour-item .item.active .hour[data-v-709d1464]{background-color:#3699ff;color:#fff}.dataTime-btn[data-v-709d1464]{display:flex;padding:%?24?%}.dataTime-btn uni-button[data-v-709d1464]{flex:1;border-radius:%?40?%;border:none}.dataTime-btn uni-button[data-v-709d1464]:first-child{margin-right:%?12?%;background-color:#d7e9eb;color:#7fb4b3}.dataTime-btn uni-button[data-v-709d1464]:last-child{margin-left:%?12?%;background-color:#3699ff;color:#fff}',""]),e.exports=t},d2b4:function(e,t,i){"use strict";i("7a82");var a=i("ee27").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(i("6c5d")),s={components:{timePlugIn:n.default},name:"teaHouseDetails",data:function(){return{selectedTime:"",startingTime:2,dateTimeList:[{date:"2023-09-12",week:"星期一",select:!0,hourLists:[{hour:"8:00-12:00上午",select:!1,disabled:!0,selectDay:"2023-09-11"},{hour:"14:00-16:00下午",select:!1,disabled:!0,selectDay:"2023-09-11"}]},{date:"2023-09-12",week:"星期二",select:!1,hourLists:[{hour:"0:00",select:!1,disabled:!1,selectDay:"2023-09-12"},{hour:"0:30",select:!1,disabled:!1,selectDay:"2023-09-12"},{hour:"1:00",select:!1,disabled:!1,selectDay:"2023-09-12"}]},{date:"2023-09-13",week:"星期三",select:!1,hourLists:[{hour:"0:00",select:!1,disabled:!1,selectDay:"2023-09-13"},{hour:"0:30",select:!1,disabled:!1,selectDay:"2023-09-13"}]}]}},methods:{selectTimeClick:function(){this.$refs.timePlug.timeShow=!0},selectedDate:function(e,t){this.selectedTime=e},selectedOthertimes:function(e){console.log("代码执行到这里"),uni.showToast({icon:"none",duration:5e3,title:'传给后台,后台返回对应的"dateTimeList"数据'+e})}}};t.default=s},eaa4:function(e,t,i){"use strict";i("7a82");var a=i("ee27").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("a9e3");var n=a(i("3065")),s={name:"time-plug-in",props:{dateTimeList:{type:Array},startingTime:{type:Number}},components:{upopup:n.default},data:function(){return{dateTimeList2:[],showswiper:!0,select_item:[],starttime:"2023-12-16",current:0,timeShow:!1,startTimeShow:!1,startMinDate:Number(new Date),selectIndex:0,selectIndexArr:[],selectDay:this.formatDateTime(new Date),currentDay:this.formatDateTime(new Date),selectedHour:"",selectedTime:"",selectedTimeList:[]}},watch:{selectIndexArr:function(e,t){e.length<1&&(this.selectedHour="",this.selectedTime="")},dateTimeList:function(){this.dateTimeList2=this.dateTimeList}},mounted:function(){var e=new Date,t=new Date(e.setDate(e.getDate()+1));this.starttime=t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate(),console.log("this.starttime",this.starttime,this.dateTimeList),this.dateTimeList2=this.dateTimeList},methods:{datechange:function(e){console.log(e);var t=this.formatDateTime(new Date(e.detail.value));this.$emit("selectedOthertimes",t)},open:function(e){},alreadySubscribe:function(){uni.showToast({icon:"none",title:"已约满"})},selectTimeSlot:function(){this.select_item?(this.$emit("selectedDate",this.dateTimeList[this.select_item[0]]),this.timeShow=!1):uni.showToast({icon:"none",title:"请选择时间段!"})},selectTime:function(e,t){console.log("item",e),this.current=t;for(var i=0;i<this.dateTimeList.length;i++)this.dateTimeList2[i].select=!1;this.dateTimeList2[t].select=!0,this.$forceUpdate()},selectHour:function(e,t,i){console.log("item",e);var a=e.select;this.select_item=[t,i],a?this.$set(this.dateTimeList2[t].hourLists[i],"select",!1):this.$set(this.dateTimeList2[t].hourLists[i],"select",!0),this.$forceUpdate()},cancelDateTime:function(){for(var e=0;e<this.dateTimeList.length;e++)for(var t=0;t<this.dateTimeList[e].hourLists.length;t++)this.dateTimeList[e].hourLists[t].select=!1;this.$emit("selectedDate","",[]),this.selectIndexArr=[],this.selectedHour=0,this.timeShow=!1},formatter:function(e,t){return"year"===e?"".concat(t,"年"):"month"===e?"".concat(t,"月"):"day"===e?"".concat(t,"日"):t},confirmStart:function(e){var t=this.formatDateTime(new Date(e.value));this.$emit("selectedOthertimes",t)},resetHourList:function(){for(var e=0;e<this.hourList.length;e++)this.hourList[e].select=!1},getWeek:function(e){var t,i=e.getDay();switch(i){case 1:t="星期一";break;case 2:t="星期二";break;case 3:t="星期三";break;case 4:t="星期四";break;case 5:t="星期五";break;case 6:t="星期六";break;case 0:t="星期日";break}return t},swiperChange:function(e){for(var t=0;t<this.dateTimeList.length;t++)this.dateTimeList[t].select=!1;this.dateTimeList[e.detail.current].select=!0},formatDateTime:function(e){if(""==e||!e)return"";e=new Date(e);var t=e.getFullYear(),i=e.getMonth()+1;i=i<10?"0"+i:i;var a=e.getDate();a=a<10?"0"+a:a;var n=e.getHours();n=n<10?"0"+n:n;var s=e.getMinutes();s=s<10?"0"+s:s;var r=e.getSeconds();return r=r<10?"0"+r:r,t+"-"+i+"-"+a}}};t.default=s},fa1c:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("v-uni-view",{staticClass:"select-time-txt",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectTimeClick.apply(void 0,arguments)}}},[e._v(e._s(e.selectedTime?e.selectedTime:"选择预订时间"))])],1)},n=[]},fbb1:function(e,t,i){"use strict";var a=i("70cf"),n=i.n(a);n.a}}]); |