1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ccb7302"],{"1e41":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,"#order-page[data-v-5f33e191]{padding-bottom:5rem}#order-page .order-type[data-v-5f33e191]{background:#fff;padding:.6rem;overflow:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:.85rem}#order-page .order-type .type-card[data-v-5f33e191]{border-radius:.7rem;padding:.35rem .6rem;line-height:1;margin-right:1rem;white-space:nowrap;color:#333}#order-page .order-type .active-type-color[data-v-5f33e191]{background:#4978f8;color:#fff!important}#order-page .order-detail[data-v-5f33e191]{background:#fff;padding:.6rem;margin-top:.4rem}#order-page .order-detail .order-sn[data-v-5f33e191]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#order-page .order-detail .order-sn .order-waite-color[data-v-5f33e191]{color:#ff9c43!important}#order-page .order-detail .order-sn .order-service-color[data-v-5f33e191]{color:#f84949!important}#order-page .order-detail .order-sn .order-sn-status[data-v-5f33e191]{font-size:.85rem;font-weight:400;color:#333}#order-page .order-detail .order-sn .order-sn-color[data-v-5f33e191]{font-size:.85rem;font-weight:400;color:#999}#order-page .order-detail .enterprise-order[data-v-5f33e191]{margin-bottom:.6rem}#order-page .order-detail .order-time[data-v-5f33e191]{background:rgba(255,238,223,.39);border-radius:.2rem;font-size:.85rem;font-weight:400;color:#ff9c43;padding:.325rem 0;width:100%;margin:.6rem 0}#order-page .order-detail .publish-pane[data-v-5f33e191]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:1rem}#order-page .order-detail .publish-pane img[data-v-5f33e191]{width:2rem;height:2rem;border-radius:50%;margin:0}#order-page .order-detail .publish-pane .publish-right[data-v-5f33e191]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-left:.2rem;line-height:1}#order-page .order-detail .publish-pane .publish-right .publish-name[data-v-5f33e191]{font-size:.85rem;font-weight:700;color:#333;text-align:left;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#order-page .order-detail .publish-pane .publish-right .publish-name .publish-mobile[data-v-5f33e191]{font-size:.75rem;font-weight:400;color:#999;margin-left:.2rem}#order-page .order-detail .publish-pane .publish-right .publish-address[data-v-5f33e191]{font-size:.8rem;font-weight:400;color:#999;text-align:left}#order-page .order-detail .tec-pane[data-v-5f33e191]{background:hsla(0,0%,96.1%,.39);border-radius:.2rem;padding:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#order-page .order-detail .tec-pane img[data-v-5f33e191]{width:3.6rem;height:3.6rem;background:hsla(0,0%,91%,.39);border-radius:.2rem;margin:0}#order-page .order-detail .tec-pane .tec-right[data-v-5f33e191]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:left;margin-left:.3rem}#order-page .order-detail .tec-pane .tec-right .tec-name[data-v-5f33e191]{font-size:.85rem;color:#333}#order-page .order-detail .tec-pane .tec-right .tec-content[data-v-5f33e191],#order-page .order-detail .tec-pane .tec-right .tec-name[data-v-5f33e191]{font-weight:400;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;word-break:break-all;overflow:hidden}#order-page .order-detail .tec-pane .tec-right .tec-content[data-v-5f33e191]{font-size:.75rem;color:#999}#order-page .order-detail .tec-pane .tec-right .service-charge[data-v-5f33e191]{font-size:.75rem;font-weight:400;color:#ff9c43}#order-page .order-detail .evaluation-pane[data-v-5f33e191]{width:100%;text-align:right;margin-top:.6rem;margin-bottom:.4rem}#order-page .order-detail .evaluation-pane .evaluation-card[data-v-5f33e191]{background:#4978f8;border-radius:.875rem;color:#fff;padding:.3rem 1rem;margin:0 .225rem;line-height:1}#order-page .order-detail .evaluation-pane .cancal-sty[data-v-5f33e191]{border:.05rem solid #909090;color:#909090!important;background:#fff!important;padding:.25rem 1rem!important}#order-page .order-detail .evaluation-pane .pay-sty[data-v-5f33e191]{background-color:#f14e4e!important;color:#fff!important}",""]),e.exports=t},"341ae":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,"#evaluation-cpn .evaluation-popup[data-v-74c75514]{padding:.8rem;height:100%}#evaluation-cpn .evaluation-popup .top-name[data-v-74c75514]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#evaluation-cpn .evaluation-popup .top-name .cancal[data-v-74c75514]{font-size:.75rem;font-weight:400;color:#999}#evaluation-cpn .evaluation-popup .top-name .middle[data-v-74c75514]{font-size:.85rem;font-weight:400;color:#333}#evaluation-cpn .evaluation-popup .top-name .sure[data-v-74c75514]{font-size:.75rem;font-weight:400;color:#333}#evaluation-cpn .evaluation-popup .star-pane[data-v-74c75514]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:95%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#evaluation-cpn .evaluation-popup .star-pane .star-icon-color[data-v-74c75514]{color:#ff9c43!important}#evaluation-cpn .evaluation-popup .star-pane .star-icon[data-v-74c75514]{font-size:1.1rem;margin-right:1rem}",""]),e.exports=t},3610:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,".pcStyle[data-v-5031211c]{width:375px!important}#bottom-bar[data-v-5031211c]{position:fixed;bottom:0;left:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#bottom-bar .active-home-color[data-v-5031211c]{color:#4978f8!important}#bottom-bar .skill-service-sty[data-v-5031211c]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#bottom-bar .skill-service-sty .mobile-row[data-v-5031211c]{width:60%!important}#bottom-bar .bottom-bar-card[data-v-5031211c]{padding:.8rem}#bottom-bar .bottom-bar-card[data-v-5031211c],#bottom-bar .bottom-bar-card .icon-pane[data-v-5031211c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#bottom-bar .bottom-bar-card .icon-pane[data-v-5031211c]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:3.5rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#bottom-bar .bottom-bar-card .icon-pane .icon-img[data-v-5031211c]{width:.85rem;height:.85rem}#bottom-bar .bottom-bar-card .icon-pane .icon-name[data-v-5031211c]{font-size:.82rem;font-weight:400;color:#333;margin-top:.2rem;white-space:nowrap}#bottom-bar .bottom-bar-card .mobile-row[data-v-5031211c]{margin-left:.5rem;background:#4978f8;border-radius:1.025rem 1.025rem 1.025rem 1.025rem;font-size:.95rem;font-weight:400;color:#fff;line-height:1;height:2.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:-webkit-fill-available}#bottom-bar .bottom-bar-card .box-mobile-popup[data-v-5031211c]{width:14rem;height:9.8rem;background:#fff;border-radius:.3rem .3rem .3rem .3rem;padding:.975rem .6rem 1.075rem .6rem}#bottom-bar .bottom-bar-card .box-mobile-popup .call-sty[data-v-5031211c]{font-size:.9rem;font-weight:400;color:#333;margin-bottom:1.075rem;text-align:left}#bottom-bar .bottom-bar-card .box-mobile-popup .copy-sty[data-v-5031211c]{font-size:.9rem;font-weight:400;color:#333;padding:.975rem 0 1.075rem 0;border-top:.025rem solid #e7e7e7;border-bottom:.025rem solid #e7e7e7;text-align:left}#bottom-bar .bottom-bar-card .box-mobile-popup .add-stye[data-v-5031211c]{font-size:.9rem;font-weight:400;color:#333;margin-top:1.075rem;text-align:left}#bottom-bar .bottom-bar-enterprise[data-v-5031211c]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}#bottom-bar .bottom-bar-enterprise[data-v-5031211c],#bottom-bar .bottom-bar-individual[data-v-5031211c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#bottom-bar .bottom-bar-individual[data-v-5031211c]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#bottom-bar .grab-pane[data-v-5031211c]{color:#fff;padding:.575rem 0;background:#4978f8;border-radius:1.025rem 1.025rem 1.025rem 1.025rem;width:15rem;line-height:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#bottom-bar .img-icon[data-v-5031211c]{width:1.2rem;height:1.2rem}#bottom-bar .phone-icon[data-v-5031211c]{font-size:1.4rem;color:#999}#bottom-bar .other-icon[data-v-5031211c]{width:1.2rem;height:1.2rem;font-size:1.2rem;color:#999}",""]),e.exports=t},3708:function(e,t,a){"use strict";a("d0e4")},"67bd":function(e,t,a){var i=a("1e41");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("499e").default;n("7cf01dd4",i,!0,{sourceMap:!1,shadowMode:!1})},"6a54":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"order-page"}},[a("c-title",{attrs:{text:"订单管理"}}),a("van-tabs",{attrs:{"title-active-color":"#4978F8",color:"#4978F8"},on:{click:e.clickTab},model:{value:e.active_name,callback:function(t){e.active_name=t},expression:"active_name"}},[a("van-tab",{attrs:{title:"个人订单",name:"1"}},["1"==e.active_name?a("div",{staticClass:"order-type"},e._l(e.orderTabList,(function(t,i){return a("span",{key:e.idnex,class:e.order_type==t.value?"type-card active-type-color":"type-card",on:{click:function(a){return e.optionType(t.value)}}},[e._v(e._s(t.name))])})),0):e._e(),"1"==e.active_name?a("d-list",{attrs:{loading:e.loading,finished:e.finished},on:{load:e.onLoad}},e._l(e.orderList,(function(t,i){return a("div",{key:i,staticClass:"order-detail",on:{click:function(a){return e.goOrderDetail("individual",t.order_id)}}},[a("div",{staticClass:"order-sn"},[a("span",{staticClass:"order-sn-color"},[e._v("订单号:"+e._s(t.order_sn))]),a("span",{class:"待审核"==t.status_name||"待接单"==t.status_name?"order-sn-status order-waite-color":"待服务"==t.status_name||"超时关闭"==t.status_name?"order-sn-status order-service-color":"order-sn-status"},[e._v(e._s(t.status_name))])]),0==t.need_type?a("div",{staticClass:"order-time"},[e._v("服务时间: "+e._s(t.start_time_str)+" - "+e._s(t.finish_time_str))]):e._e(),1==t.need_type?a("div",{staticClass:"order-time"},[e._v("预约时间: "+e._s(t.start_time_str))]):e._e(),a("div",{staticClass:"publish-pane"},[a("img",{attrs:{src:t.has_one_member.avatar_image,alt:""}}),a("div",{staticClass:"publish-right"},[a("div",{staticClass:"publish-name"},[a("span",[e._v(e._s(t.order_address.realname))]),a("span",{staticClass:"publish-mobile"},[e._v("("+e._s(t.order_address.mobile)+")")])]),a("div",{staticClass:"publish-address"},[e._v(e._s(t.order_address.address))])])]),a("div",{staticClass:"tec-pane"},[a("img",{attrs:{src:t.image_url,alt:""}}),a("div",{staticClass:"tec-right"},[a("div",{staticClass:"tec-name"},[e._v(e._s(t.title))]),a("div",{staticClass:"tec-content"},[e._v(e._s(t.content))]),a("div",{staticClass:"service-charge"},[e._v("服务费 ¥"+e._s(t.service_fee))])])]),a("div",{staticClass:"evaluation-pane"},e._l(t.button_models,(function(i,n){return a("span",{class:"pay"==i.value?"evaluation-card pay-sty":"publish"==i.value||"receive"==i.value?"evaluation-card":"evaluation-card cancal-sty",on:{click:function(a){return a.stopPropagation(),e.evenButtonModels(i,t)}}},[e._v(e._s(i.name))])})),0)])})),0):e._e()],1),a("van-tab",{attrs:{title:"企业订单",name:"2"}},["2"==e.active_name?a("div",{staticClass:"order-type"},e._l(e.orderTabList,(function(t,i){return a("span",{key:e.idnex,class:e.order_type==t.value?"type-card active-type-color":"type-card",on:{click:function(a){return e.optionType(t.value)}}},[e._v(e._s(t.name))])})),0):e._e(),"2"==e.active_name?a("d-list",{attrs:{loading:e.loading,finished:e.finished},on:{load:e.onLoad}},e._l(e.orderList,(function(t,i){return a("div",{key:i,staticClass:"order-detail",on:{click:function(a){return e.goOrderDetail("enterprise",t.order_id)}}},[a("div",{staticClass:"order-sn enterprise-order"},[a("span",{staticClass:"order-sn-color"},[e._v("订单号:"+e._s(t.order_sn))]),a("span",{class:"待审核"==t.status_name||"待接单"==t.status_name?"order-sn-status order-waite-color":"待服务"==t.status_name||"超时关闭"==t.status_name?"order-sn-status order-service-color":"order-sn-status"},[e._v(e._s(t.status_name))])]),a("div",{staticClass:"tec-pane"},[a("img",{attrs:{src:t.has_one_category?t.has_one_category.thumb_url:"",alt:""}}),a("div",{staticClass:"tec-right"},[a("div",{staticClass:"tec-name"},[e._v(e._s(t.title))]),a("div",{staticClass:"tec-content"},[e._v(e._s(t.content))]),a("div",{staticClass:"service-charge"},[e._v("服务费 ¥"+e._s(t.amount))])])]),a("div",{staticClass:"evaluation-pane"},e._l(t.button_models,(function(i,n){return a("span",{class:"pay"==i.value?"evaluation-card pay-sty":"publish"==i.value||"receive"==i.value?"evaluation-card":"evaluation-card cancal-sty",on:{click:function(a){return a.stopPropagation(),e.evenButtonModels(i,t)}}},[e._v(e._s(i.name))])})),0)])})),0):e._e()],1)],1),a("bottom-bar",{attrs:{tab_type:"我的"}}),e.evaluation_show?a("evaluation-popup",{attrs:{evaluation_show:e.evaluation_show,order_id:e.order_id},on:{"update:evaluation_show":function(t){e.evaluation_show=t},commentEvent:e.commentEvent}}):e._e()],1)},n=[],o=a("c7eb"),r=a("2909"),s=a("1da1"),c=(a("14d9"),a("94b4")),l=a("8c6b"),d=a("c20d8"),p={data:function(){return{active_name:"1",order_type:"",evaluation_show:!1,orderList:[],orderTabList:[{name:"全部订单",value:""},{name:"待支付订单",value:"wait_pay"},{name:"待审核订单",value:"wait_check"},{name:"待接单订单",value:"wait_accept"},{name:"待服务订单",value:"wait_work"},{name:"已完成订单",value:"completed"},{name:"超时退单",value:"overtime"},{name:"已关闭订单",value:"close"}],loading:!1,finished:!1,page:1,order_id:""}},activated:function(){this.init(),this.getOrderData("")},methods:{init:function(){this.orderList=[],this.loading=!1,this.finished=!1,this.page=1},optionType:function(e){this.order_type=e,this.init(),this.getOrderData(e)},goOrderDetail:function(e,t){this.$router.push(this.fun.getUrl("anyOrderDetail",{type:e,order_id:t}))},getOrderData:function(e){var t=this;return Object(s["a"])(Object(o["a"])().mark((function a(){var i,n,s,c,l,d;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!0!==t.loading&&!0!==t.finished){a.next=2;break}return a.abrupt("return");case 2:return t.loading=!0,n="1"==t.active_name?"plugin.be-within-call.frontend.order.personal-need.index":"plugin.be-within-call.frontend.order.enterprise-need.index",a.next=6,$http.get(n,{tab:e,page:t.page});case 6:if(s=a.sent,c=s.data,l=s.result,d=s.msg,0!==l){a.next=13;break}return t.$toast(d),a.abrupt("return");case 13:(0===c.data.length||c.data.length<c.per_page||c.current_page===c.last_page)&&(t.finished=!0),t.total=c.total,(i=t.orderList).push.apply(i,Object(r["a"])(c.data)),t.page++,t.loading=!1;case 18:case"end":return a.stop()}}),a)})))()},onLoad:function(){this.getOrderData()},evenButtonModels:function(e,t){var a=this;return Object(s["a"])(Object(o["a"])().mark((function i(){var n,r;return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a.order_id=t.order_id,"pay"!=e.value){i.next=5;break}a.$router.push(a.fun.getUrl("orderpay",{status:2,order_ids:t.order_id})),i.next=18;break;case 5:if("cancel-pay"!=e.value&&"enterprise-cancel-pay"!=e.value){i.next=17;break}return i.next=8,$http.post(e.api,{oid:t.order_id});case 8:n=i.sent,n.data,n.result,r=n.msg,a.$toast(r),a.init(),a.getOrderData(""),i.next=18;break;case 17:"receive"==e.value?a.$dialog.confirm({title:"提示",message:"是否确认完成?"}).then(Object(s["a"])(Object(o["a"])().mark((function i(){var n,r;return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,$http.post(e.api,{oid:t.order_id});case 2:n=i.sent,n.data,n.result,r=n.msg,a.$toast(r),a.init(),a.getOrderData("");case 9:case"end":return i.stop()}}),i)})))).catch((function(){})):"publish"==e.value&&(a.evaluation_show=!0);case 18:case"end":return i.stop()}}),i)})))()},clickTab:function(){"1"==this.active_name?this.orderTabList=[{name:"全部订单",value:""},{name:"待支付订单",value:"wait_pay"},{name:"待审核订单",value:"wait_check"},{name:"待接单订单",value:"wait_accept"},{name:"待服务订单",value:"wait_work"},{name:"已完成订单",value:"completed"},{name:"超时退单",value:"overtime"},{name:"已关闭订单",value:"close"}]:"2"==this.active_name&&(this.orderTabList=[{name:"全部订单",value:""},{name:"待支付订单",value:"wait_pay"},{name:"待审核订单",value:"wait_check"},{name:"已完成订单",value:"completed"},{name:"已关闭订单",value:"close"}]),this.init(),this.getOrderData("")},commentEvent:function(){this.init(),this.getOrderData("")}},components:{DList:c["a"],bottomBar:l["a"],evaluationPopup:d["a"]}},u=p,m=u,b=(a("fc41"),a("2877")),f=Object(b["a"])(m,i,n,!1,null,"5f33e191",null);t["default"]=f.exports},"734b":function(e,t,a){"use strict";a("adff")},"8c6b":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"bottom-bar"}},[a("div",{class:[3==this.fun.getPhoneEnv()?"pcStyle":""],staticStyle:{background:"white",width:"100%"}},["home"==e.type?a("div",{staticClass:"bottom-bar-enterprise bottom-bar-card"},[a("div",{staticClass:"icon-pane",on:{click:function(t){return e.chooseType("大厅")}}},[a("img",{staticClass:"img-icon",attrs:{src:"大厅"==e.tab_type?"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_dating.png":"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_dating_1.png",alt:""}}),a("span",{class:"大厅"==e.tab_type?"icon-name active-home-color":"icon-name"},[e._v("抢单大厅")])]),a("div",{staticClass:"icon-pane",on:{click:function(t){return e.chooseType("发布需求")}}},[a("i",{staticClass:"iconfont icon-icon_publish other-icon"}),a("span",{class:"发布需求"==e.tab_type?"icon-name active-home-color":"icon-name"},[e._v("发布需求")])]),a("div",{staticClass:"icon-pane",on:{click:function(t){return e.chooseType("技能需求")}}},[a("i",{staticClass:"iconfont icon-icon_skill other-icon"}),a("span",{class:"技能需求"==e.tab_type?"icon-name active-home-color":"icon-name"},[e._v("技能需求")])]),a("div",{staticClass:"icon-pane",on:{click:function(t){return e.chooseType("我的")}}},[a("img",{staticClass:"img-icon",attrs:{src:"我的"==e.tab_type?"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_me.png":"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_me_1.png",alt:""}}),a("span",{class:"我的"==e.tab_type?"icon-name active-home-color":"icon-name"},[e._v("我的")])])]):e._e(),"individual"==e.type?a("div",{staticClass:"bottom-bar-individual bottom-bar-card"},[a("div",{staticClass:"icon-pane",on:{click:function(t){return e.chooseType("大厅")}}},[a("img",{staticClass:"img-icon",attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_dating_1.png",alt:""}}),a("span",{staticClass:"icon-name"},[e._v("大厅")])]),a("div",{staticClass:"icon-pane"},[a("van-icon",{staticClass:"phone-icon",attrs:{name:"phone-o"}}),a("a",{attrs:{href:e.mobile}},[a("span",{staticClass:"icon-name"},[e._v("电话")])])],1),a("div",{staticClass:"icon-pane",on:{click:function(t){return e.chooseType("我的")}}},[a("img",{staticClass:"img-icon",attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_me_1.png",alt:""}}),a("span",{staticClass:"icon-name"},[e._v("我的")])]),a("div",{staticClass:"grab-pane",on:{click:e.receive}},[e._v("抢单")])]):e._e(),"skill_service"==e.type?a("div",{staticClass:"bottom-bar-card skill-service-sty",staticStyle:{"justify-content":"space-around"}},[a("div",{staticClass:"icon-pane",on:{click:function(t){return e.chooseType("大厅")}}},[a("img",{staticClass:"img-icon",attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_dating_1.png",alt:""}}),a("span",{staticClass:"icon-name"},[e._v("大厅")])]),a("div",{staticClass:"mobile-row",on:{click:e.tabAppointment}},[e._v("预约")])]):e._e(),"technician"==e.type?a("div",{staticClass:"bottom-bar-card",staticStyle:{"justify-content":"space-around"}},[a("div",{staticClass:"icon-pane",on:{click:function(t){return e.chooseType("大厅")}}},[a("img",{staticClass:"img-icon",attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_dating_1.png",alt:""}}),a("span",{staticClass:"icon-name"},[e._v("大厅")])]),a("div",{staticClass:"icon-pane",on:{click:function(t){return e.chooseType("我的")}}},[a("img",{staticClass:"img-icon",attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_me_1.png",alt:""}}),a("span",{staticClass:"icon-name"},[e._v("我的")])])]):e._e(),"enterprise"==e.type?a("div",{staticClass:"bottom-bar-enterprise bottom-bar-card"},[a("div",{staticClass:"icon-pane",on:{click:function(t){return e.chooseType("大厅")}}},[a("img",{staticClass:"img-icon",attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_dating_1.png",alt:""}}),a("span",{staticClass:"icon-name"},[e._v("大厅")])]),a("div",{staticClass:"icon-pane"},[a("van-icon",{staticClass:"phone-icon",attrs:{name:"phone-o"}}),a("a",{attrs:{href:e.mobile}},[a("span",{staticClass:"icon-name"},[e._v("电话")])])],1),a("div",{staticClass:"icon-pane",on:{click:function(t){return e.chooseType("我的")}}},[a("img",{staticClass:"img-icon",attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_me_1.png",alt:""}}),a("span",{staticClass:"icon-name"},[e._v("我的")])])]):e._e()])])},n=[],o=(a("14d9"),{props:{type:{type:null,default:"home"},tab_type:{type:null,default:"大厅"},mobile:{type:null,default:""},order_id:{type:null,default:""},skillService:{type:null,default:function(){}}},data:function(){return{}},mounted:function(){},methods:{chooseType:function(e){switch(e){case"订单":this.$router.push(this.fun.getUrl("anyOrderIndex",{}));break;case"大厅":this.$router.push(this.fun.getUrl("anytimeService",{}));break;case"我的":this.$router.push(this.fun.getUrl("anytimeMy",{}));break;case"发布需求":this.$router.push(this.fun.getUrl("anytimeDemand",{type:1}));break;case"技能需求":this.$router.push(this.fun.getUrl("anytimeSkillMasterManage",{}));break;default:break}},tabAppointment:function(){this.$router.push(this.fun.getUrl("anyOrder",{id:this.skillService.id}))},receive:function(){var e=this;$http.get("plugin.be-within-call.frontend.need-order-operate.grab",{oid:this.order_id}).then((function(t){t.data;var a=t.result,i=t.msg;e.$toast(i),a&&e.$router.push(e.fun.getUrl("anytimeAreaOrder",{}))}))}},components:{}}),r=o,s=r,c=(a("3708"),a("2877")),l=Object(c["a"])(s,i,n,!1,null,"5031211c",null);t["a"]=l.exports},adff:function(e,t,a){var i=a("341ae");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("499e").default;n("347b3ae4",i,!0,{sourceMap:!1,shadowMode:!1})},c20d8:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"evaluation-cpn"}},[a("van-popup",{style:{height:"8.5rem"},attrs:{round:"",position:"bottom"},on:{"click-overlay":e.cancal},model:{value:e.evaluation_show,callback:function(t){e.evaluation_show=t},expression:"evaluation_show"}},[a("div",{staticClass:"evaluation-popup"},[a("div",{staticClass:"top-name"},[a("span",{staticClass:"cancal",on:{click:e.cancal}},[e._v("取消")]),a("span",{staticClass:"middle"},[e._v("评价")]),a("span",{staticClass:"sure",on:{click:e.sure}},[e._v("确认")])]),a("div",{staticClass:"star-pane"},e._l(e.starList,(function(t,i){return a("van-icon",{key:i,class:t.isShow?"star-icon star-icon-color":"star-icon",attrs:{name:t.isShow?"star":"star-o"},on:{click:function(t){return e.clickStar(i)}}})})),1)])])],1)},n=[],o=a("c7eb"),r=a("1da1"),s=a("3835"),c=a("b85c"),l=(a("d3b7"),a("ddb0"),a("4de4"),{props:{evaluation_show:{type:Boolean,default:!1},urlStr:{type:String,default:"plugin.be-within-call.frontend.need-order-operate.push-remark"},order_id:{type:null,default:""}},data:function(){return{starList:[{id:1,isShow:!1},{id:2,isShow:!1},{id:3,isShow:!1},{id:4,isShow:!1},{id:5,isShow:!1}]}},mounted:function(){},methods:{clickStar:function(e){var t,a=Object(c["a"])(this.starList.entries());try{for(a.s();!(t=a.n()).done;){var i=Object(s["a"])(t.value,2),n=i[0],o=i[1];if(0==e&&1==this.starList.filter((function(e){return e.isShow})).length)return void(o.isShow=!1);o.isShow=n<=e}}catch(r){a.e(r)}finally{a.f()}},cancal:function(){this.$emit("update:evaluation_show",!1)},sure:function(){var e=this;return Object(r["a"])(Object(o["a"])().mark((function t(){var a,i,n,r;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.starList.filter((function(e){return e.isShow})),t.next=3,$http.post(e.urlStr,{oid:e.order_id,star:a.length});case 3:i=t.sent,i.data,n=i.result,r=i.msg,n&&e.$emit("commentEvent"),e.$toast(r),e.$emit("update:evaluation_show",!1);case 10:case"end":return t.stop()}}),t)})))()}},components:{}}),d=l,p=d,u=(a("734b"),a("2877")),m=Object(u["a"])(p,i,n,!1,null,"74c75514",null);t["a"]=m.exports},d0e4:function(e,t,a){var i=a("3610");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("499e").default;n("444e77f8",i,!0,{sourceMap:!1,shadowMode:!1})},fc41:function(e,t,a){"use strict";a("67bd")}}]); |