1 line
32 KiB
JavaScript
1 line
32 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-staff_order-staff_order"],{"0983":function(t,e,i){"use strict";i.r(e);var n=i("1bd8"),a=i("e027");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("c96f");var o=i("f0c5"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"469015b5",null,!1,n["a"],void 0);e["default"]=s.exports},"0e64":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={tabs:i("4fdc").default,tab:i("0983").default,orderStaff:i("e3b4").default,floatTab:i("06c3").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"user-order"},[i("tabs",{attrs:{active:t.active,config:{itemWidth:150}},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeShow.apply(void 0,arguments)}}},t._l(t.order,(function(e,n){return i("tab",{key:n,attrs:{title:e.name,name:e.type}},[e.isShow?i("order-staff",{ref:"order"+e.type,refInFor:!0,attrs:{"order-type":e.type}}):t._e()],1)})),1),i("float-tab")],1)},r=[]},"13c1":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".tab.active[data-v-469015b5]{height:auto}.tab.inactive[data-v-469015b5]{height:0;overflow:visible}",""]),t.exports=e},1986:function(t,e,i){var n=i("1b9e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("e6e4ac96",n,!0,{sourceMap:!1,shadowMode:!1})},"1b9e":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".loading-footer[data-v-6dc30303]{padding:%?30?% 0;color:#666}",""]),t.exports=e},"1bd8":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{class:{active:this.active,inactive:!this.active,tab:!0},style:this.shouldShow?"":"display: none;"},[this.shouldRender?this._t("default"):this._e()],2)},a=[]},"24ad":function(t,e,i){"use strict";i.r(e);var n=i("0e64"),a=i("a1bd");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);var o=i("f0c5"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"81cf0f74",null,!1,n["a"],void 0);e["default"]=s.exports},"2b35":function(t,e,i){"use strict";var n=i("1986"),a=i.n(n);a.a},"35d5":function(t,e,i){"use strict";i.r(e);var n=i("f661"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"42f9":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.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/* 行为相关颜色 */.order-list[data-v-6da59a68]{min-height:calc(100vh - %?80?%);padding:0 %?20?%;overflow:hidden}.order-list .order-item[data-v-6da59a68]{border-radius:%?10?%}.order-list .order-item .order-header[data-v-6da59a68]{height:%?80?%;padding:0 %?24?%;border-bottom:1px dotted #e5e5e5}.order-list .order-item .all-price[data-v-6da59a68]{text-align:right;padding:0 %?24?% %?20?%}.order-list .order-item .order-footer[data-v-6da59a68]{height:%?100?%;border-top:1px solid #e5e5e5;padding:0 %?24?%}.order-list .order-item .order-footer .plain[data-v-6da59a68]{border:1px solid #bbb}.order-list .order-item .order-footer .plain.red[data-v-6da59a68]{border-color:#ff2c3c}',""]),t.exports=e},"49eb":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uPopup:i("3065").default,uIcon:i("ca16").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("u-popup",{attrs:{mode:"bottom"},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.timeShow=!1},open:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}},model:{value:t.timeShow,callback:function(e){t.timeShow=e},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",[t._v("请提前一天预约,灰色表示无保洁师")])],1),i("v-uni-view",{staticClass:"date-title"},[i("v-uni-view",{staticClass:"date-item"},t._l(t.dateTimeList2,(function(e,n){return i("v-uni-view",{key:n,class:e.select?"item active":"item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.selectTime(e,n)}}},[i("v-uni-text",[t._v(t._s(e.date.split("-")[1]+"-"+e.date.split("-")[2]))]),i("v-uni-view",[t._v(t._s(e.week))])],1)})),1),i("v-uni-view",{staticClass:"otherTime"},[i("v-uni-picker",{attrs:{start:t.starttime,mode:"date"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.datechange.apply(void 0,arguments)}}},[i("u-icon",{attrs:{name:"calendar",color:"##699FF",size:"44"}}),i("v-uni-text",[t._v("其他时间")])],1)],1)],1),i("v-uni-view",{staticClass:"hour-item"},[t.showswiper?i("v-uni-swiper",{staticClass:"swiper",attrs:{circular:!0,current:t.current},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.swiperChange.apply(void 0,arguments)}}},t._l(t.dateTimeList2,(function(e,n){return i("v-uni-swiper-item",{key:n},t._l(e.hourLists,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item",class:{"item active":e.select}},[e.disabled?i("v-uni-view",{staticClass:"hourDisabled",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.alreadySubscribe()}}},[t._v(t._s(e.hour))]):i("v-uni-view",{staticClass:"hour",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.selectHour(e,n,a)}}},[t._v(t._s(e.hour)+"—可预约"+t._s(e.staffnumber)+"人")])],1)})),1)})),1):t._e()],1)],1),i("v-uni-view",{staticClass:"dataTime-btn"},[i("v-uni-button",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.cancelDateTime.apply(void 0,arguments)}}},[t._v("取消")]),i("v-uni-button",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectTimeSlot.apply(void 0,arguments)}}},[t._v("确认")])],1)],1)],1)},r=[]},"4fdc":function(t,e,i){"use strict";i.r(e);var n=i("e745"),a=i("35d5");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("dc7c");var o=i("f0c5"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"43b0f33a",null,!1,n["a"],void 0);e["default"]=s.exports},5838:function(t,e,i){"use strict";i.r(e);var n=i("8cc9"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"5ebb":function(t,e,i){"use strict";i.r(e);var n=i("d8cd"),a=i("5838");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("2b35");var o=i("f0c5"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"6dc30303",null,!1,n["a"],void 0);e["default"]=s.exports},"67cc":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.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/* 行为相关颜色 */._tab-box[data-v-43b0f33a]{width:100%;font-size:%?26?%;position:relative;z-index:10}._tab-box .scroll-view-h[data-v-43b0f33a]{height:%?80?%;line-height:%?80?%;white-space:nowrap;width:100%;box-sizing:border-box}._tab-box .scroll-view-h ._scroll-content[data-v-43b0f33a]{width:100%;height:100%;position:relative;display:inline-block}._tab-box .scroll-view-h ._scroll-content ._tab-item-box[data-v-43b0f33a]{height:100%;display:inline-block}._tab-box .scroll-view-h ._scroll-content ._tab-item-box._flex[data-v-43b0f33a]{display:flex}._tab-box .scroll-view-h ._scroll-content ._tab-item-box._flex ._item[data-v-43b0f33a]{flex:1}._tab-box .scroll-view-h ._scroll-content ._tab-item-box._clamp ._item[data-v-43b0f33a]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._tab-box .scroll-view-h ._scroll-content ._tab-item-box ._item[data-v-43b0f33a]{height:100%;display:inline-block;text-align:center;position:relative;text-align:center;color:#333}._tab-box .scroll-view-h ._scroll-content ._tab-item-box ._item._active[data-v-43b0f33a]{color:#e54d42}._tab-box .scroll-view-h ._scroll-content ._underline[data-v-43b0f33a]{height:%?4?%;background-color:#e54d42;border-radius:%?6?%;transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s;position:absolute;bottom:0}',""]),t.exports=e},"6b34":function(t,e,i){var n=i("67cc");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("68ede9fb",n,!0,{sourceMap:!1,shadowMode:!1})},"6c5d":function(t,e,i){"use strict";i.r(e);var n=i("49eb"),a=i("807f");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("fbb1");var o=i("f0c5"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"709d1464",null,!1,n["a"],void 0);e["default"]=s.exports},"6ed9":function(t,e,i){"use strict";i("d3b7"),i("7a82");var n=i("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("f07e")),r=n(i("c964"));i("e9c4");var o=i("7eb1"),s=(i("00d3"),n(i("6c5d"))),d=i("5b24"),c=i("14f5"),l=(i("1d11"),{data:function(){return{selectedTime:"",startingTime:2,dateTimeList:[],page:1,orderList:[],status:d.loadingType.LOADING,showCancel:!1,type:0,orderId:"",showLoading:!1}},components:{timePlugIn:s.default},props:{orderType:{type:String}},created:function(){var t=this;uni.$on("refreshorder",(function(){t.reflesh()}))},beforeMount:function(){this.getOrderListFun()},destroyed:function(){uni.$off("refreshorder")},methods:{reflesh:function(){this.page=1,this.orderList=[],this.status=d.loadingType.LOADING,this.type=0,this.getOrderListFun()},reload:function(){this.status=d.loadingType.LOADING,this.getOrderListFun()},comfirmOrder:function(t){var e=this;this.orderId=t,this.type=2,this.$nextTick((function(){e.orderDialog()}))},cancelOrder:function(t){var e=this;this.orderId=t,this.type=0,this.$nextTick((function(){e.orderDialog()}))},take:function(t){var e=this;this.id=t.id,(0,o.take)(t.id).then((function(t){1==t.code?(e.$toast({title:"接单成功"}),location.reload()):0==t.code&&e.$toast({title:"未到时间,无法接单"})}))},addtime:function(t){this.id=t.id,uni.navigateTo({url:"/pages/bundle/addtime/addtime?id="+JSON.stringify(this.id)})},onCopy:function(t){(0,c.copy)(t)},account:function(t){this.id=t.id,uni.navigateTo({url:"/pages/bundle/account/account?id="+JSON.stringify(this.id)})},wego:function(t){var e=this;this.id=t.id,(0,o.wego)(t.id).then((function(t){1==t.code&&(e.$toast({title:"接单成功"}),location.reload())}))},ends:function(t){var e=this;this.id=t.id,(0,o.ends)(t.id).then((function(t){1==t.code&&(e.$toast({title:"接单成功"}),location.reload())}))},getOrderListFun:function(){var t=this;return(0,r.default)((0,a.default)().mark((function e(){var i,n,r,s,d;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.page,n=t.orderType,r=t.orderList,s=t.status,e.next=3,(0,c.loadingFun)(o.stafforderlist,i,r,s,{type:n,id:t.orderId});case 3:if(d=e.sent,d){e.next=6;break}return e.abrupt("return");case 6:t.page=d.page,t.orderList=d.dataList,t.status=d.status;case 9:case"end":return e.stop()}}),e)})))()},goPage:function(t){uni.navigateTo({url:t})}},computed:{getOrderStatus:function(){return function(t){var e="";switch(t){case 0:e="待支付";break;case 1:e="待发货";break;case 2:e="待收货";break;case 3:e="已完成";break;case 4:e="订单已关闭";break}return e}},getCancelTime:function(){return function(t){return t-Date.now()/1e3}}}});e.default=l},"70cf":function(t,e,i){var n=i("c5be");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("0a3cfce2",n,!0,{sourceMap:!1,shadowMode:!1})},7242:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3"),i("14d9");var n={props:{dot:{type:Boolean},info:{type:null},title:{type:String},titleStyle:{type:String},name:{type:[Number,String],value:""}},inject:["tabs"],data:function(){return{active:!1,shouldShow:!1,shouldRender:!1}},created:function(){this.tabs.childrens.push(this)},mounted:function(){this.update()},methods:{getComputedName:function(){return""!==this.data.name?this.data.name:this.index},updateRender:function(t,e){this.inited=this.inited||t,this.active=t,this.shouldRender=this.inited,this.shouldShow=t},update:function(){this.tabs&&this.tabs.updateTabs()}},computed:{changeData:function(){var t=this.dot,e=this.info,i=this.title,n=this.titleStyle;return{dot:t,info:e,title:i,titleStyle:n}}},watch:{changeData:function(t){this.update()}}};e.default=n},"807f":function(t,e,i){"use strict";i.r(e);var n=i("eaa4"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"8cc9":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{}},components:{},props:{status:{type:String,default:"loading"},errorText:{type:String,default:"加载失败,点击重新加载"},loadingText:{type:String,default:"加载中..."},finishedText:{type:String,default:"我可是有底线的~"},slotEmpty:{type:Boolean,default:!1},color:{type:String,default:"#666"}},methods:{onRefresh:function(){this.$emit("refresh")}}};e.default=n},"8e8e":function(t,e,i){"use strict";var n=i("ce37"),a=i.n(n);a.a},a1bd:function(t,e,i){"use strict";i.r(e);var n=i("ffef"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},acf2:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={loadingFooter:i("5ebb").default,orderDialog:i("1810").default,loadingView:i("b10e").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"order-list"},[t._l(t.orderList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"order-item bg-white mt20"},[i("v-uni-view",{staticClass:"order-header row-between"},[i("v-uni-view",{staticClass:"row"},[t._v("订单编号:"+t._s(e.order_sn))]),0==e.status?i("v-uni-view",{staticClass:"mr10",staticStyle:{"margin-left":"2%"}},[i("v-uni-view",{class:0!=e.account?"muted":"primary",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.account(e)}}},[t._v("费用报销")])],1):t._e(),0==e.status?i("v-uni-view",{staticClass:"mr10"},[i("v-uni-view",{class:4==e.order_status?"muted":"primary",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.take(e)}}},[t._v("开始接单")])],1):t._e(),1==e.status?i("v-uni-view",{staticClass:"mr10",staticStyle:{"margin-left":"6%"}},[i("v-uni-view",{class:1==e.staff_status?"muted":"primary",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.wego(e)}}},[t._v("开始服务")])],1):t._e(),1==e.status?i("v-uni-view",{staticClass:"mr10"},[i("v-uni-view",{class:4==e.order_status?"muted":"primary",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.ends(e)}}},[t._v("结束服务")])],1):t._e(),2==e.status?i("v-uni-view",{staticClass:"mr10",staticStyle:{"margin-left":"4%"}},[i("v-uni-view",{class:0!=e.add?"muted":"primary",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.addtime(e)}}},[t._v("加时服务")])],1):t._e(),2==e.status?i("v-uni-view",{staticClass:"mr10"},[i("v-uni-view",{class:2==e.status?"muted":"primary",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.reserv(e)}}},[t._v("服务完成")])],1):t._e()],1),i("v-uni-view",{staticClass:"order-con"},[i("v-uni-view",{staticStyle:{display:"flex","justify-content":"space-between",padding:"3%"}},[i("v-uni-view",{staticStyle:{display:"flex"}},[i("v-uni-view",{staticClass:"muted sm",staticStyle:{"font-size":"26rpx",color:"#999999","line-height":"50rpx"}},[i("v-uni-view",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onCopy(e.mobile)}}},[t._v(t._s(e.consignee)+" "+t._s(e.mobile))]),i("v-uni-view",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onCopy(e.address)}}},[t._v(t._s(e.address))]),i("v-uni-view",{staticStyle:{color:"crimson","font-size":"26rpx","font-weight":"540","line-height":"60rpx"}},[t._v(t._s(e.goods_name))])],1)],1)],1),i("v-uni-view",{staticStyle:{"margin-left":"3%","margin-bottom":"2%",color:"brown"}},[t._v("备注: "+t._s(e.remark))]),i("v-uni-view",{staticStyle:{"margin-left":"3%","margin-bottom":"2%",color:"crimson"}},[t._v("客服:"+t._s(e.admin_name))]),i("v-uni-view",{staticStyle:{"margin-left":"3%","margin-bottom":"2%",color:"crimson"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onCopy(e.admin_phone)}}},[t._v("客服电话:"+t._s(e.admin_phone))]),i("v-uni-view",{staticClass:"all-price row-end",staticStyle:{display:"flex","justify-content":"space-between",color:"#396bed"}},[i("v-uni-view",[t._v("距离上单时间:"+t._s(e.jldate)+"天")]),2==e.addtime?i("v-uni-view",{staticClass:"mr10",staticStyle:{float:"right"}},[t._v(t._s(e.autotime)+" 下午")]):t._e(),1==e.addtime?i("v-uni-view",{staticClass:"mr10",staticStyle:{float:"right"}},[t._v(t._s(e.autotime)+" 上午")]):t._e(),i("v-uni-view",[t._v(t._s(e.xq))])],1)],1)],1)})),i("loading-footer",{attrs:{status:t.status,"slot-empty":!0},on:{refresh:function(e){arguments[0]=e=t.$handleEvent(e),t.reload.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"column-center",staticStyle:{"padding-top":"200rpx"},attrs:{slot:"empty"},slot:"empty"},[i("v-uni-image",{staticClass:"img-null",attrs:{src:"/static/images/goods_null.png"}}),i("v-uni-text",{staticClass:"lighter"},[t._v("暂无订单")])],1)],1)],2),i("order-dialog",{ref:"orderDialog",attrs:{"order-id":t.orderId,type:t.type},on:{refresh:function(e){arguments[0]=e=t.$handleEvent(e),t.reflesh.apply(void 0,arguments)}}}),t.showLoading?i("loading-view",{attrs:{"background-color":"transparent",size:50}}):t._e(),i("time-plug-in",{ref:"timePlug",attrs:{select_item:null,dateTimeList:t.dateTimeList,startingTime:t.startingTime},on:{selectedOthertimes:function(e){arguments[0]=e=t.$handleEvent(e),t.selectedOthertimes.apply(void 0,arguments)},selectedDate:function(e){arguments[0]=e=t.$handleEvent(e),t.selectedDate.apply(void 0,arguments)}}})],1)},r=[]},c5be:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.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}',""]),t.exports=e},c96f:function(t,e,i){"use strict";var n=i("f3fc"),a=i.n(n);a.a},ce37:function(t,e,i){var n=i("42f9");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("275a4718",n,!0,{sourceMap:!1,shadowMode:!1})},d8cd:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={loading:i("f367").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"loading-footer row-center",style:"color: "+t.color},["loading"===t.status?i("v-uni-view",{staticClass:"loading row"},[i("loading",{staticClass:"mr20",attrs:{color:t.color}}),i("v-uni-text",{style:"color: "+t.color},[t._v(t._s(t.loadingText))])],1):t._e(),"finished"===t.status?i("v-uni-view",{staticClass:"finished"},[t._v(t._s(t.finishedText))]):t._e(),"error"===t.status?i("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onRefresh.apply(void 0,arguments)}}},[t._v(t._s(t.errorText))]):t._e(),"empty"===t.status?i("v-uni-view",{staticClass:"empty"},[t.slotEmpty?t._t("empty"):i("v-uni-text",[t._v("暂无数据")])],2):t._e()],1)},r=[]},dc7c:function(t,e,i){"use strict";var n=i("6b34"),a=i.n(n);a.a},e027:function(t,e,i){"use strict";i.r(e);var n=i("7242"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},e3b4:function(t,e,i){"use strict";i.r(e);var n=i("acf2"),a=i("f8dc");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("8e8e");var o=i("f0c5"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"6da59a68",null,!1,n["a"],void 0);e["default"]=s.exports},e745:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"_tab-box",style:{fontSize:t.defaultConfig.fontSize+"rpx",color:t.defaultConfig.color}},[i("v-uni-scroll-view",{staticClass:"scroll-view-h",style:{backgroundColor:t.defaultConfig.bgColor},attrs:{id:"_scroll","scroll-x":!0,"scroll-with-animation":!0,"scroll-left":t.slider.scrollLeft}},[i("v-uni-view",{staticClass:"_scroll-content"},[i("v-uni-view",{staticClass:"_tab-item-box",class:[t.defaultConfig.itemWidth?"_clamp":"_flex"]},[t._l(t.tabList,(function(e,n){return[i("v-uni-view",{key:n+"_0",staticClass:"_item",class:{_active:t.tagIndex===n},style:{color:t.tagIndex==n?t.defaultConfig.activeColor:t.defaultConfig.color,width:t.defaultConfig.itemWidth?t.defaultConfig.itemWidth+"rpx":""},attrs:{id:"_tab_"+n},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(n)}}},[t._v(t._s(e.title))])]}))],2),i("v-uni-view",{staticClass:"_underline",style:{transform:"translateX("+t.slider.left+"px)",width:t.slider.width+"px",height:t.defaultConfig.underLineHeight+"rpx",backgroundColor:t.defaultConfig.underLineColor}})],1)],1),i("v-uni-view",{staticClass:"tab-content"},[i("v-uni-view",[t._t("default")],2)],1)],1)},a=[]},eaa4:function(t,e,i){"use strict";i("7a82");var n=i("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var a=n(i("3065")),r={name:"time-plug-in",props:{dateTimeList:{type:Array},startingTime:{type:Number}},components:{upopup:a.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(t,e){t.length<1&&(this.selectedHour="",this.selectedTime="")},dateTimeList:function(){this.dateTimeList2=this.dateTimeList}},mounted:function(){var t=new Date,e=new Date(t.setDate(t.getDate()+1));this.starttime=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate(),console.log("this.starttime",this.starttime,this.dateTimeList),this.dateTimeList2=this.dateTimeList},methods:{datechange:function(t){console.log(t);var e=this.formatDateTime(new Date(t.detail.value));this.$emit("selectedOthertimes",e)},open:function(t){},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(t,e){console.log("item",t),this.current=e;for(var i=0;i<this.dateTimeList.length;i++)this.dateTimeList2[i].select=!1;this.dateTimeList2[e].select=!0,this.$forceUpdate()},selectHour:function(t,e,i){console.log("item",t);var n=t.select;this.select_item=[e,i],n?this.$set(this.dateTimeList2[e].hourLists[i],"select",!1):this.$set(this.dateTimeList2[e].hourLists[i],"select",!0),this.$forceUpdate()},cancelDateTime:function(){for(var t=0;t<this.dateTimeList.length;t++)for(var e=0;e<this.dateTimeList[t].hourLists.length;e++)this.dateTimeList[t].hourLists[e].select=!1;this.$emit("selectedDate","",[]),this.selectIndexArr=[],this.selectedHour=0,this.timeShow=!1},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):"day"===t?"".concat(e,"日"):e},confirmStart:function(t){var e=this.formatDateTime(new Date(t.value));this.$emit("selectedOthertimes",e)},resetHourList:function(){for(var t=0;t<this.hourList.length;t++)this.hourList[t].select=!1},getWeek:function(t){var e,i=t.getDay();switch(i){case 1:e="星期一";break;case 2:e="星期二";break;case 3:e="星期三";break;case 4:e="星期四";break;case 5:e="星期五";break;case 6:e="星期六";break;case 0:e="星期日";break}return e},swiperChange:function(t){for(var e=0;e<this.dateTimeList.length;e++)this.dateTimeList[e].select=!1;this.dateTimeList[t.detail.current].select=!0},formatDateTime:function(t){if(""==t||!t)return"";t=new Date(t);var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var a=t.getHours();a=a<10?"0"+a:a;var r=t.getMinutes();r=r<10?"0"+r:r;var o=t.getSeconds();return o=o<10?"0"+o:o,e+"-"+i+"-"+n}}};e.default=r},f3fc:function(t,e,i){var n=i("13c1");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("e3e34288",n,!0,{sourceMap:!1,shadowMode:!1})},f661:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3"),i("d81d"),i("ac1f"),i("d3b7"),i("159b");var n={name:"tabs",props:{active:{type:Number,default:0},config:{type:Object,default:function(){return{}}}},provide:function(){return{tabs:this}},data:function(){return{tabList:[],tagIndex:0,slider:{left:0,width:0,scrollLeft:0},scorll:{},defaultConfig:{bgColor:"#fff",fontSize:26,color:"#333",activeColor:"#FF2C3C",itemWidth:0,underLinePadding:10,underLineWidth:0,underLineHeight:4,underLineColor:"#FF2C3C"}}},watch:{},created:function(){this.childrens=[]},mounted:function(){this.updateTabs()},methods:{updateTabs:function(){var t=this;this.tabList=this.childrens.map((function(t){var e=t.title,i=t.info,n=t.name,a=t.dot,r=t.titleStyle,o=t.active,s=t.updateRender;return{title:e,info:i,name:n,dot:a,titleStyle:r,active:o,updateRender:s}})),this.updateConfig(),this.tagIndex=this.active,this.$nextTick((function(){t.calcScrollPosition()}))},updateConfig:function(){this.defaultConfig=Object.assign(this.defaultConfig,this.config)},calcScrollPosition:function(){var t=this,e=uni.createSelectorQuery().in(this);e.select("#_scroll").boundingClientRect((function(e){t.scorll=e,t.updateTabWidth()})).exec()},updateTabWidth:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=this.tabList;if(0==i.length)return!1;var n=uni.createSelectorQuery().in(this);n.select("#_tab_"+e).boundingClientRect((function(n){i[e]._slider={width:n.width,left:n.left,scrollLeft:n.left-(i[e-1]?i[e-1]._slider.width:0)},t.tagIndex==e&&t.tabToIndex(t.tagIndex),e++,i.length>e&&t.updateTabWidth(e)})).exec()},tabToIndex:function(t){var e=this,i=this.tabList[t]._slider,n=uni.upx2px(this.defaultConfig.underLineWidth);n||(n=this.defaultConfig.itemWidth?uni.upx2px(this.defaultConfig.itemWidth)/3:this.tabList[t]["title"].length*uni.upx2px(this.defaultConfig.fontSize),n+=2*uni.upx2px(this.defaultConfig.underLinePadding)),this.childrens.forEach((function(i,n){var a=n===t;a===i.active&&i.inited||i.updateRender(a,e)}));var a=this.scorll.left||0;this.slider={left:i.left-a+(i.width-n)/2,width:n,scrollLeft:i.scrollLeft-a}},tabClick:function(t){this.tagIndex=t,this.tabToIndex(t),this.$emit("change",t)}}};e.default=n},f8dc:function(t,e,i){"use strict";i.r(e);var n=i("6ed9"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},fbb1:function(t,e,i){"use strict";var n=i("70cf"),a=i.n(n);a.a},ffef:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c740");var n=i("5b24"),a={data:function(){return{active:n.orderType.ALL,order:[{name:"全部",type:n.orderType.ALL,isShow:!1},{name:"待服务",type:n.orderType.PAY,isShow:!1},{name:"服务中",type:n.orderType.DELIVERY,isShow:!1},{name:"已完成",type:n.orderType.FINISH,isShow:!1},{name:"异常单",type:n.orderType.CLOSE,isShow:!1}]}},components:{},props:{},onLoad:function(t){var e=this.order,i=t.type||n.orderType.ALL,a=e.findIndex((function(t){return t.type==i}));this.changeShow(a)},onPullDownRefresh:function(){var t=this.active,e=this.order;console.log(this.$refs["order"+e[t].type]),this.$refs["order"+e[t].type][0].reflesh()},onReachBottom:function(){var t=this.active,e=this.order;console.log(this.$refs["order"+e[t].type]),this.$refs["order"+e[t].type][0].getOrderListFun()},methods:{changeShow:function(t){-1!=t&&(this.active=t,this.order[t].isShow=!0)}}};e.default=a}}]); |