1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["reservation-page-reservation-myreserv"],{"0650":function(t,e,n){"use strict";var a=n("3593"),i=n.n(a);i.a},"1ddc":function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa"),n("c223"),n("5c47"),n("0506");var i=a(n("74ff")),o={mixins:[i.default],name:"tn-avatar",props:{index:{type:[Number,String],default:0},shape:{type:String,default:"circle"},size:{type:[Number,String],default:""},shadow:{type:Boolean,default:!1},border:{type:Boolean,default:!1},borderColor:{type:String,default:"rgba(0, 0, 0, 0.1)"},borderSize:{type:Number,default:2},src:{type:String,default:""},text:{type:String,default:""},icon:{type:String,default:""},imgMode:{type:String,default:"aspectFill"},badge:{type:Boolean,default:!1},badgeSize:{type:Number,default:0},badgeBgColor:{type:String,default:"#AAAAAA"},badgeColor:{type:String,default:"#FFFFFF"},badgeIcon:{type:String,default:""},badgeText:{type:String,default:""},badgePosition:{type:Array,default:function(){return[0,0]}}},data:function(){return{imgLoadError:!1}},computed:{showImg:function(){return""===this.text&&""===this.icon},avatarClass:function(){var t="";return t+=" tn-avatar--".concat(this.shape),this._checkSizeIsInline()&&(t+=" tn-avatar--".concat(this.size)),this.shadow&&(t+=" tn-avatar--shadow"),t},avatarStyle:function(){var t={};return this.backgroundColorStyle?t.background=this.backgroundColorStyle:this.shadow&&this.showImg&&(t.backgroundImage="url(".concat(this.src,")")),this.border&&(t.border="".concat(this.borderSize,"rpx solid ").concat(this.borderColor)),this._checkSizeIsInline()||(t.width=this.size,t.height=this.size),t},imgClass:function(){var t="";return t+=" tn-avatar__img--".concat(this.shape),t}},methods:{loadImageError:function(){this.imgLoadError=!0},click:function(){this.$emit("click",this.index)},_checkSizeIsInline:function(){return!!/^(xs|sm|md|lg|xl|xxl)$/.test(this.size)}}};e.default=o},2379:function(t,e,n){"use strict";n.r(e);var a=n("1ddc"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},3593:function(t,e,n){var a=n("d6c3");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("8b13fa50",a,!0,{sourceMap:!1,shadowMode:!1})},"43b6":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(){return a}));var a={tnBadge:n("af4b").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"tn-avatar-class tn-avatar",class:[t.backgroundColorClass,t.avatarClass],style:[t.avatarStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[t.showImg?n("v-uni-image",{staticClass:"tn-avatar__img",class:[t.imgClass],attrs:{src:t.src,mode:t.imgMode||"aspectFill"},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.loadImageError.apply(void 0,arguments)}}}):n("v-uni-view",{staticClass:"tn-avatar__text"},[t.text?n("v-uni-view",[t._v(t._s(t.text))]):n("v-uni-view",{class:["tn-icon-"+t.icon]})],1),t.badge&&(t.badgeIcon||t.badgeText)?n("tn-badge",{attrs:{radius:t.badgeSize,backgroundColor:t.badgeBgColor,fontColor:t.badgeColor,fontSize:t.badgeSize-8,absolute:!0,top:t.badgePosition[0],right:t.badgePosition[1]}},[t.badgeIcon&&""===t.badgeText?n("v-uni-view",[n("v-uni-view",{class:["tn-icon-"+t.badgeIcon]})],1):n("v-uni-view",[t._v(t._s(t.badgeText))])],1):t._e()],1)},o=[]},"473e":function(t,e,n){"use strict";n.r(e);var a=n("a2f6"),i=n("d205");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("b4d5");var r=n("828b"),s=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"0bdc85ff",null,!1,a["a"],void 0);e["default"]=s.exports},"54d8":function(t,e,n){"use strict";n.r(e);var a=n("43b6"),i=n("2379");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("0650");var r=n("828b"),s=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"1c66f6a5",null,!1,a["a"],void 0);e["default"]=s.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:{}}},9504:function(t,e,n){var a=n("dd5c");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("7e178b71",a,!0,{sourceMap:!1,shadowMode:!1})},a2f6: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(){return a}));var a={tnTabs:n("37fc").default,tnAvatar:n("54d8").default},i=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:!1,wrapperBgColor:"#f4f4f6"}},[n("v-uni-view",{staticClass:"tn-flex tn-flex-column main-box",style:{paddingTop:t.paddingMaxtop}},[n("tn-tabs",{attrs:{list:t.orderTypes,name:"name",current:t.orderIndex,"active-color":t.themeBgColor},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeOrderIndex.apply(void 0,arguments)}}}),0===t.dataList.length?n("v-uni-view",{staticClass:"list tn-flex tn-flex-row-center tn-flex-column "},[n("v-uni-view",{staticClass:"tn-icon-order tn-text-xl-xxl tn-padding-top-lg"}),n("v-uni-text",{staticClass:"tn-color-gray tn-margin-top-sm"},[t._v("暂无数据")])],1):n("v-uni-view",{staticClass:"list tn-margin-sm ",staticStyle:{"margin-top":"0"}},t._l(t.dataList,(function(e){return n("v-uni-view",{staticClass:"tn-bg-white tn-flex tn-flex-column tn-padding-sm tn-margin-top-lg",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goPath(e.id)}}},[n("v-uni-view",{staticClass:"header tn-flex tn-flex-1"},[n("v-uni-view",{staticClass:"tn-flex tn-flex-1 tn-text-lg tn-text-bold"},[t._v("服务预约")]),0==e.status||3==e.status?n("v-uni-view",{staticClass:"tn-color-red"},[t._v(t._s(e.status_text))]):n("v-uni-view",{staticClass:"tn-color-red",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.cancel(e.id)}}},[t._v("取消")])],1),n("v-uni-view",{staticClass:"tn-flex tn-margin-top-lg"},[n("v-uni-view",{staticClass:"time tn-color-black tn-flex tn-flex-column tn-padding-left-sm tn-padding-right-sm"},[n("v-uni-text",{staticClass:"tn-text-sm tn-color-gray tn-margin-bottom-xs"},[t._v("服务开始时间")]),n("v-uni-text",{staticClass:" tn-text-xl tn-text-bold"},[t._v(t._s(e.start_date))]),n("v-uni-text",{staticClass:" tn-text-xl tn-text-bold"},[t._v(t._s(e.start_time))])],1),n("v-uni-view",{staticClass:"tn-flex-column tn-flex-1 tn-flex",staticStyle:{"padding-left":"10rpx"}},[n("v-uni-view",{staticClass:"tn-flex tn-flex-row-center "},[n("tn-avatar",{attrs:{src:e.clerk.clerkInfo.avatar}}),n("v-uni-text",{staticClass:"tn-margin-left-sm"},[t._v(t._s(e.goods.title))])],1),n("v-uni-view",{staticClass:"tn-bg-gray--light tn-color-black tn-text-sm tn-padding-sm tn-flex-1"},[t._v("预约手艺人"+t._s(e.clerk.clerkInfo.title))])],1)],1)],1)})),1)],1)],1)},o=[]},b34c:function(t,e,n){"use strict";n("6a54");var a=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 i=a(n("7653"));e.clerkListApi=function(t,e){return i.default.get("api/user.appointment.clerk/clerkList?appointment_goods_id="+t+"&start_time="+e)};e.getAppointmentTimeListApi=function(t,e,n){return i.default.get("api/user.appointment.clerk/getAppointmentTimeList?clerk_id="+t+"&appointment_goods_id="+e+"&today_date="+n)};e.getAppointmentIndexApi=function(t,e){return i.default.get("api/user.appointment.order/index?clerk_id="+t+"&appointment_goods_id="+e)};e.makeAppointmentApi=function(t){return i.default.post("api/user.appointment.order/makeAppointment",t)};e.appointmentDetailApi=function(t){return i.default.get("api/user.appointment.order/detail?id="+t)};e.myAppointmentApi=function(t,e){return i.default.get("api/user.appointment.order/myAppointment?page="+t+"&status="+e)};e.cancelAppointmentApi=function(t){return i.default.post("api/user.appointment.order/cancelAppointment",t)};e.clerkIndexApi=function(t,e){return i.default.get("api/user.appointment.clerk/index?id="+t+"&type="+e)};e.getTemplateListApi=function(){return i.default.get("api/user.appointment.order/getTemplateList")}},b4d5:function(t,e,n){"use strict";var a=n("9504"),i=n.n(a);i.a},d205:function(t,e,n){"use strict";n.r(e);var a=n("ea70"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},d6c3:function(t,e,n){var a=n("c86c");e=a(!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-avatar[data-v-1c66f6a5]{display:inline-flex;margin:0;padding:0;text-align:center;align-items:center;justify-content:center;background-color:#e6e6e6;white-space:nowrap;position:relative;width:%?64?%;height:%?64?%;z-index:1}.tn-avatar--sm[data-v-1c66f6a5]{width:%?48?%;height:%?48?%}.tn-avatar--lg[data-v-1c66f6a5]{width:%?96?%;height:%?96?%}.tn-avatar--xl[data-v-1c66f6a5]{width:%?128?%;height:%?128?%}.tn-avatar--square[data-v-1c66f6a5]{border-radius:%?10?%}.tn-avatar--circle[data-v-1c66f6a5]{border-radius:%?5000?%}.tn-avatar--shadow[data-v-1c66f6a5]{position:relative}.tn-avatar--shadow[data-v-1c66f6a5]::after{content:" ";display:block;background:inherit;-webkit-filter:blur(%?10?%);filter:blur(%?10?%);position:absolute;width:100%;height:100%;top:%?10?%;left:%?10?%;z-index:-1;opacity:.4;-webkit-transform-origin:0 0;transform-origin:0 0;border-radius:inherit;-webkit-transform:scale(1);transform:scale(1)}.tn-avatar__img[data-v-1c66f6a5]{width:100%;height:100%}.tn-avatar__img--square[data-v-1c66f6a5]{border-radius:%?10?%}.tn-avatar__img--circle[data-v-1c66f6a5]{border-radius:%?5000?%}.tn-avatar__text[data-v-1c66f6a5]{display:flex;flex-direction:row;align-items:center;justify-content:center}',""]),t.exports=e},dc1f:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},computed:{themeBgColor:function(){return this.$isTheme()?"--theme-general-color":this.vuex_themeBgColor||""},themeOpacityBgColor:function(){return this.vuex_themeBgColor?"".concat(this.vuex_themeBgColor,"7F"):""},themeFontColor:function(){return this.$isTheme()?"--general-color-text":this.vuex_themeFontColor||""},themeBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.backgroundColor=this.vuex_themeBgColor),this.vuex_themeFontColor&&(t.color=this.vuex_themeFontColor),this.$isTheme()&&(t.backgroundColor="var(--theme-general-color)",t.color="--general-color-text"),t},themeLineBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.border="1rpx solid ".concat(this.vuex_themeBgColor),t.color=this.vuex_themeBgColor),this.$isTheme()&&(t.border="1rpx solid var(--theme-general-color)",t.color="var(--theme-general-color)"),t}}}},dd5c:function(t,e,n){var a=n("c86c");e=a(!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 */uni-page-body[data-v-0bdc85ff]{background-color:#f4f4f6!important}body.?%PAGE?%[data-v-0bdc85ff]{background-color:#f4f4f6!important}.time[data-v-0bdc85ff]{border-right:1px solid #ccc}.btn[data-v-0bdc85ff]{background-color:var(--general-btn-bg);color:var(--general-btn-color);border-radius:%?20?%;padding:%?12?% %?32?%;overflow:hidden;display:flex;justify-content:center;align-items:center}.main-box[data-v-0bdc85ff]{position:relative;background-color:#f4f4f6!important;overflow:hidden;z-index:99}',""]),t.exports=e},ea70:function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("ee7d")),o=a(n("dc1f")),r=n("b34c"),s={mixins:[i.default,o.default],data:function(){return{orderIndex:0,orderTypes:[{name:"全部"},{name:"已预约"},{name:"历史预约"}],dataList:[],maxHeight:0,paddingMaxtop:0,page:1,appointment_status:-1}},onShow:function(){this.myAppointment()},methods:{cancel:function(t){var e=this;uni.showModal({title:"提示",content:"是否取消预约",success:function(n){n.confirm&&(0,r.cancelAppointmentApi)({id:t}).then((function(t){t&&(uni.showToast({title:"取消成功",icon:"none"}),e.myAppointment())})).catch((function(t){uni.showToast({title:t.msg,icon:"none"})}))}})},myAppointment:function(){var t=this;uni.showLoading({title:"加载中"}),(0,r.myAppointmentApi)(this.page,this.appointment_status).then((function(e){console.log("res",e),t.dataList=e,uni.hideLoading()}))},changeOrderIndex:function(t){this.$data.orderIndex=t,this.appointment_status=0==t?-1:1==t?1:4,this.myAppointment()},goPath:function(t){uni.navigateTo({url:"/reservation-page/reservation/details?id="+t})},setKeyValue:function(t,e){this.$data[t]=e}}};e.default=s},ee7d:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("5c47");var a={onShow:function(){this.getMaxHeight(),this.getBottomButtonHeight()},methods:{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 a=t.$refs["customNav"].windowsOperationHeight;t.$nextTick((function(){t.$data.paddingMaxtop=n.height+"px",t.$data.maxHeight=a+"px"}))}})}}};e.default=a}}]);
|