reservation-page-reservation-movetime.fc008143.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["reservation-page-reservation-movetime"],{"031f":function(t,e,n){var i=n("f8eb");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("967d").default;o("56c0f2ee",i,!0,{sourceMap:!1,shadowMode:!1})},"0ae7":function(t,e,n){var i=n("c5de");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("967d").default;o("482075ac",i,!0,{sourceMap:!1,shadowMode:!1})},"19a7":function(t,e,n){"use strict";var i=n("031f"),o=n.n(i);o.a},"20f3":function(t,e,n){"use strict";var i=n("8bdb"),o=n("5145");i({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},4466:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-button",{staticClass:"tn-btn-class tn-btn",class:[t.buttonClass,t.backgroundColorClass,t.fontColorClass],style:[t.buttonStyle],attrs:{"hover-class":"tn-hover",loading:t.loading,disabled:t.disabled,"form-type":t.formType,"open-type":t.openType},on:{getuserinfo:function(e){arguments[0]=e=t.$handleEvent(e),t.handleGetUserInfo.apply(void 0,arguments)},getphonenumber:function(e){arguments[0]=e=t.$handleEvent(e),t.handleGetPhoneNumber.apply(void 0,arguments)},contact:function(e){arguments[0]=e=t.$handleEvent(e),t.handleContact.apply(void 0,arguments)},error:function(e){arguments[0]=e=t.$handleEvent(e),t.handleError.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleClick.apply(void 0,arguments)}}},[t._t("default")],2)},o=[]},"70bc":function(t,e,n){"use strict";n.r(e);var i=n("4466"),o=n("83fb");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("19a7");var r=n("828b"),l=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"1b9df1f2",null,!1,i["a"],void 0);e["default"]=l.exports},"74ff":function(t,e,n){n("64aa"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$tn.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$tn.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$tn.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$tn.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$tn.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},"7bd1":function(t,e,n){"use strict";n.r(e);var i=n("7de1"),o=n("a9a6");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("e0b4");var r=n("828b"),l=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"239f8472",null,!1,i["a"],void 0);e["default"]=l.exports},"7de1":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={tnButton:n("70bc").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("custom-page",{ref:"customNav",attrs:{"custom-navbar":!0,"transparent-navbar":!0,title:"预约时间",enableSafeAreaBottom:!1,wrapperBeginNavbar:!1,transparentNavbar:!0,titleTextColor:"#FFF"}},[n("v-uni-view",{staticClass:"tn-flex tn-flex-column",staticStyle:{position:"relative",height:"100vh",overflow:"hidden"}},[n("v-uni-view",{staticClass:"tn-flex tn-flex-column tn-padding-top-sm tn-padding-bottom-sm",style:{paddingTop:t.paddingMaxtop,backgroundImage:"var(--theme-mine-topbg-bg)"}},[t.clerk_title?n("v-uni-view",{staticClass:"tn-flex tn-padding-sm",style:{color:"var(--general-color-text)"}},[n("v-uni-text",{staticClass:"tn-flex tn-flex-1 tn-text-bold tn-text-xxl"},[t._v(t._s(t.date_text))]),n("v-uni-text",{staticClass:"tn-flex "},[t._v("已选手艺人:"+t._s(t.clerk_title))])],1):t._e(),n("v-uni-view",{staticClass:"tn-padding-sm tn-flex tn-flex-col-center tn-flex-row-center"},t._l(t.weekArray,(function(e){return n("v-uni-view",{staticClass:"week-value tn-flex tn-flex-column tn-flex-1 tn-padding-xs tn-margin-xs tn-flex-col-center tn-flex-row-center",class:t.weekValue===e.time?"tn-bg-white tn-color-black":"tn-color-white",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.setKeyValue("weekValue",e.time)}}},[n("v-uni-text",{staticClass:"tn-text-lg"},[t._v(t._s(e.value))]),n("v-uni-text",{staticClass:"tn-text-sm"},[t._v(t._s(e.label))])],1)})),1)],1),n("v-uni-view",{staticClass:"tn-flex tn-bg-white move-main"},[n("v-uni-scroll-view",{staticStyle:{position:"relative",height:"100%"},attrs:{"scroll-y":!0}},[t._l(t.actionsList,(function(e){return n("v-uni-view",{staticClass:"tn-flex-column"},[n("v-uni-text",{staticClass:"tn-text-xl tn-color-black tn-padding-sm"},[t._v(t._s(e.title))]),n("v-uni-view",{staticClass:"tn-flex tn-padding-sm tn-flex-wrap tn-flex-row"},t._l(e.times,(function(e,i){return e.show?n("v-uni-view",{staticClass:"tn-padding-sm tn-flex-col-center tn-flex-row-center tn-flex tn-flex-basic-xs-m buttom-time tn-margin-sm tn-text-lg tn-color-gray tn-border-solid",staticStyle:{"border-radius":"8rpx"}},[t._v(t._s(e.value))]):n("v-uni-view",{staticClass:"tn-padding-sm tn-flex-col-center tn-flex-row-center tn-flex tn-flex-basic-xs-m buttom-time tn-margin-sm tn-text-lg tn-border-solid",class:{"tn-bg-orangered-light select-time-activate":t.selectTimeValue===e.value,"noselect-time-activate":!0===e.disabled},staticStyle:{"border-radius":"8rpx"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.chooseTime(e)}}},[t._v(t._s(e.value))])})),1)],1)})),n("v-uni-view",{staticStyle:{height:"200rpx",display:"block"}})],2)],1),n("v-uni-view",{staticClass:"tn-safe-area-inset-bottom tn-flex-row tn-flex bottom-button tn-bg-white"},[n("v-uni-view",{staticClass:"tn-flex tn-flex-1 tn-flex-column"},[n("v-uni-view",{staticClass:"tn-color-gray tn-text-sm"},[t._v("服务开始时间:"),n("v-uni-text",{staticClass:"tn-color-black"},[t._v(t._s(t.closest_start))])],1),n("v-uni-view",{staticClass:"tn-color-gray tn-text-sm tn-margin-top-xs"},[t._v("服务结束时间:"),n("v-uni-text",{staticClass:"tn-color-black"},[t._v(t._s(t.closest_end))])],1)],1),n("tn-button",{attrs:{width:"300rpx",size:"lg",shape:"round"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPages.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"tn-flex tn-flex-1",staticStyle:{height:"100%",width:"100%","justify-content":"center","align-items":"center",overflow:"hidden","border-radius":"20rpx"},style:{backgroundColor:"var(--general-btn-bg)",color:"var(--general-btn-color)"}},[t._v("确认时间")])],1)],1)],1)],1)},a=[]},"83fb":function(t,e,n){"use strict";n.r(e);var i=n("e871"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},a9a6:function(t,e,n){"use strict";n.r(e);var i=n("ad44"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},ad44:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("5c47");var i=n("b34c"),o={data:function(){return{appointment_goods_id:0,clerk_id:0,maxHeight:0,paddingMaxtop:0,weekValue:"2024-06-27",selectTimeValue:"",date_text:"",clerk_title:"",closest_start:"",closest_end:"",today_date:"",weekArray:[{time:"2024-06-23",value:"23",label:"周日"},{time:"2024-06-24",value:"24",label:"周一"},{time:"2024-06-25",value:"25",label:"周二"},{time:"2024-06-26",value:"26",label:"周三"},{time:"2024-06-27",value:"27",label:"周四"},{time:"2024-06-28",value:"28",label:"周五"},{time:"2024-06-29",value:"29",label:"周六"}],actionsList:[{title:"上午",times:[{value:"10:00",disabled:!0},{value:"10:30",disabled:!0}]},{title:"中午",times:[{value:"11:00",disabled:!0},{value:"11:30",disabled:!0},{value:"12:00",disabled:!0},{value:"12:30",disabled:!0}]},{title:"下午",times:[{value:"13:00",disabled:!0},{value:"13:30",disabled:!0}]}]}},onLoad:function(t){console.log("options",t),t.appointment_goods_id?(this.appointment_goods_id=t.appointment_goods_id||"",this.clerk_id=t.clerk_id||"",this.getTimeList()):uni.showToast({title:"参数错误",icon:"none"})},onShow:function(){this.getMaxHeight(),this.getBottomButtonHeight()},methods:{goPages:function(){if(this.closest_start&&this.closest_end)if(this.clerk_id)uni.navigateTo({url:"/reservation-page/reservation/moveconfir?appointment_goods_id="+this.appointment_goods_id+"&clerk_id="+this.clerk_id+"&start="+this.closest_start+"&end="+this.closest_end});else{var t=encodeURIComponent(this.closest_start),e=encodeURIComponent(this.closest_end);console.log("start",t),console.log("end",e),uni.navigateTo({url:"/reservation-page/reservation/selectlist?appointment_goods_id="+this.appointment_goods_id+"&start="+t+"&end="+e})}else uni.showToast({title:"请选择服务时间",icon:"none"})},setBgColor:function(){return"var(--general-btn-bg) "},setKeyValue:function(t,e){console.log(e),this.today_date=e,this.getTimeList()},chooseTime:function(t){t.disabled||(this.selectTimeValue=t.value,this.closest_start=t.start,this.closest_end=t.end)},getBottomButtonHeight:function(){uni.createSelectorQuery().selectAll(".bottom-button").boundingClientRect((function(t){console.log("按钮高度",t)})).exec()},getMaxHeight:function(){var t=this;uni.getSystemInfo({success:function(e){var n=t.$refs["customNav"].navBarInfo;console.log("info",n);var i=t.$refs["customNav"].windowsOperationHeight;t.$nextTick((function(){t.$data.paddingMaxtop=n.height+"px",t.$data.maxHeight=i+"px"}))}})},getTimeList:function(){var t=this;uni.showLoading({title:"加载中"}),(0,i.getAppointmentTimeListApi)(this.clerk_id,this.appointment_goods_id,this.today_date).then((function(e){var n,i;console.log("res",e);var o=e.actionsList,a=e.weekList,r=e.weekValue,l=e.date_text,s=(e.closest_time,(null===(n=e.clerk)||void 0===n||null===(i=n.clerkInfo)||void 0===i?void 0:i.title)||""),d=e.closest_start,c=e.closest_end;t.closest_start=d,t.closest_end=c,t.clerk_title=s,t.date_text=l,t.weekValue=r,t.actionsList=o,t.weekArray=a,uni.hideLoading()})).catch((function(t){console.log("err",t),uni.showToast({title:t.msg,icon:"none"})}))}}};e.default=o},b34c:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.myAppointmentApi=e.makeAppointmentApi=e.getTemplateListApi=e.getAppointmentTimeListApi=e.getAppointmentIndexApi=e.clerkListApi=e.clerkIndexApi=e.cancelAppointmentApi=e.appointmentDetailApi=void 0;var o=i(n("7653"));e.clerkListApi=function(t,e){return o.default.get("api/user.appointment.clerk/clerkList?appointment_goods_id="+t+"&start_time="+e)};e.getAppointmentTimeListApi=function(t,e,n){return o.default.get("api/user.appointment.clerk/getAppointmentTimeList?clerk_id="+t+"&appointment_goods_id="+e+"&today_date="+n)};e.getAppointmentIndexApi=function(t,e){return o.default.get("api/user.appointment.order/index?clerk_id="+t+"&appointment_goods_id="+e)};e.makeAppointmentApi=function(t){return o.default.post("api/user.appointment.order/makeAppointment",t)};e.appointmentDetailApi=function(t){return o.default.get("api/user.appointment.order/detail?id="+t)};e.myAppointmentApi=function(t,e){return o.default.get("api/user.appointment.order/myAppointment?page="+t+"&status="+e)};e.cancelAppointmentApi=function(t){return o.default.post("api/user.appointment.order/cancelAppointment",t)};e.clerkIndexApi=function(t,e){return o.default.get("api/user.appointment.clerk/index?id="+t+"&type="+e)};e.getTemplateListApi=function(){return o.default.get("api/user.appointment.order/getTemplateList")}},c5de:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-flex-basic-xs-m[data-v-239f8472]{flex-basis:27%}.move-main[data-v-239f8472]{margin-top:%?-20?%;position:relative;z-index:99;overflow:hidden;flex:1;border-top-right-radius:10px;border-top-left-radius:10px}.week-value[data-v-239f8472]{border-radius:%?10?%}.select-time-activate[data-v-239f8472]{border-color:var(--theme-select-item-bord-color)!important;color:var(--general-btn-color)!important;background-color:var(--theme-select-item-color)!important;box-shadow:rgba(100,100,111,.2) 0 7px 29px 0}.noselect-time-activate[data-v-239f8472]{color:#c8c8c8;background-color:rgba(176,176,195,.2)}.bottom-button[data-v-239f8472]{position:fixed;bottom:0;padding:%?24?%;border-top:1px solid #f3f3f3;width:100%;z-index:999}.move-main[data-v-239f8472]{background-color:#f32235}.move-main-body[data-v-239f8472]{border-top-right-radius:%?30?%;border-top-left-radius:%?30?%}',""]),t.exports=e},e0b4:function(t,e,n){"use strict";var i=n("0ae7"),o=n.n(i);o.a},e871:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa"),n("5ef2"),n("f7a5"),n("20f3"),n("4626"),n("5ac7");var o=i(n("74ff")),a={mixins:[o.default],name:"tn-button",behaviors:["wx://form-field-button"],props:{index:{type:[Number,String],default:0},shape:{type:String,default:"default"},shadow:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:""},size:{type:String,default:""},fontBold:{type:Boolean,default:!1},padding:{type:String,default:"0 30rpx"},margin:{type:String,default:""},plain:{type:Boolean,default:!1},border:{type:Boolean,default:!0},borderBold:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},formType:{type:String,default:""},openType:{type:String,default:""},blockRepeatClick:{type:Boolean,default:!1}},computed:{buttonClass:function(){var t="";switch(this.shape){case"icon":case"round":t+=" tn-round";break}if(this.shadow)if(""!==this.backgroundColorClass&&-1!=this.backgroundColorClass.indexOf("tn-bg")){var e=this.backgroundColor.slice(this.backgroundColor.lastIndexOf("-")+1);t+=" tn-shadow-".concat(e)}else t+=" tn-shadow-blur";if(this.fontBold&&(t+=" tn-text-bold"),this.plain&&(t+=" tn-btn--plain",this.border&&(t+=" tn-border-solid",this.borderBold&&(t+=" tn-bold-border"),""!==this.backgroundColor&&this.backgroundColor.includes("tn-bg")))){var n=this.backgroundColor.slice(this.backgroundColor.lastIndexOf("-")+1);t+=" tn-border-".concat(n)}return t},buttonStyle:function(){var t={};switch(this.size){case"sm":t.padding="0 20rpx",t.fontSize="22rpx",t.height=this.height||"48rpx";break;case"lg":t.padding="0 40rpx",t.fontSize="32rpx",t.height=this.height||"80rpx";break;default:t.padding="0 30rpx",t.fontSize="28rpx",t.height=this.height||"64rpx"}return this.padding&&(t.padding=this.padding),this.margin&&(t.margin=this.margin),this.fontSize&&(t.fontSize=this.fontSize+this.fontUnit),t.width="icon"===this.shape?t.height:this.width,t.padding="icon"===this.shape?"0":t.padding,this.fontColorStyle&&(t.color=this.fontColorStyle),this.backgroundColorClass||(this.plain?t.borderColor=this.backgroundColorStyle||"#080808":t.background=this.backgroundColorStyle||"#FFFFFF"),this.shadow&&!this.backgroundColorClass&&(-1!=this.backgroundColorStyle.indexOf("#")?t.boxShadow="6rpx 6rpx 8rpx ".concat(this.backgroundColorStyle||"#000000","10"):-1==this.backgroundColorStyle.indexOf("rgb")&&-1==this.backgroundColorStyle.indexOf("rgba")&&this.backgroundColorStyle||(t.boxShadow="6rpx 6rpx 8rpx ".concat(this.backgroundColorStyle||"rgba(0, 0, 0, 0.1)"))),t}},data:function(){return{clickTime:0,clickIntervalTime:200}},methods:{handleClick:function(){var t=this;if(!this.disabled){if(this.blockRepeatClick){var e=(new Date).getTime();if(e-this.clickTime<=this.clickIntervalTime)return;this.clickTime=e,setTimeout((function(){t.clickTime=0}),this.clickIntervalTime)}this.$emit("click",{index:Number(this.index)}),this.$emit("tap",{index:Number(this.index)})}},handleGetUserInfo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.detail,n=void 0===e?{}:e;this.$emit("getuserinfo",n)},handleContact:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.detail,n=void 0===e?{}:e;this.$emit("contact",n)},handleGetPhoneNumber:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.detail,n=void 0===e?{}:e;this.$emit("getphonenumber",n)},handleError:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.detail,n=void 0===e?{}:e;this.$emit("error",n)}}};e.default=a},f8eb:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-btn[data-v-1b9df1f2]{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;line-height:1;text-align:center;text-decoration:none;overflow:visible;-webkit-transform:translate(%?0?%,%?0?%);transform:translate(%?0?%,%?0?%);border-radius:%?12?%;margin:0}.tn-btn--plain[data-v-1b9df1f2]{background-color:initial!important;background-image:none}.tn-btn--plain.tn-round[data-v-1b9df1f2]{border-radius:%?1000?%!important}',""]),t.exports=e}}]);