bztang-admin/addons/yun_shop/static/app/js/chunk-4dbda252.2a627626.js

1 line
16 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4dbda252"],{"156fe":function(t,e,i){"use strict";i("97a61")},"5e0d":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"technician"}},[i("c-title",{attrs:{hide:!1,text:t.appointmentLang.worker+"详情"}}),i("div",{staticClass:"info_message"},[i("div",{staticClass:"head_sculpture"},[i("img",{attrs:{src:t.worker.thumb,alt:""}})]),i("div",{staticClass:"message"},[i("div",{staticClass:"name"},[t._v(t._s(t.worker.name))])]),i("div",{staticClass:"star_level"},[i("van-rate",{staticStyle:{"text-align":"left"},attrs:{readonly:"",size:14},model:{value:t.worker.score,callback:function(e){t.$set(t.worker,"score",e)},expression:"worker.score"}})],1),i("div",{staticStyle:{"text-align":"center"}},t._l(t.worker.tags,(function(e,a){return i("div",{directives:[{name:"show",rawName:"v-show",value:t.worker.tags,expression:"worker.tags"}],key:a,staticClass:"tag"},[t._v(t._s(e))])})),0)]),i("div",{staticClass:"bespoke"},[i("div",{staticClass:"tips"},[t._v("前面有"+t._s(t.worker.has_appointment_count)+"人预约")]),i("div",{staticClass:"time_selection",on:{click:function(e){return t.toUrl("showAppointment",{worker_id:t.worker.id})}}},[i("div",{staticClass:"left"},[t._v("可预约日期")]),t._m(0)])]),i("div",{staticClass:"store_list"},[t._l(t.store,(function(e,a){return i("div",{directives:[{name:"show",rawName:"v-show",value:!t.pullDownBtnShow||0==a,expression:"pullDownBtnShow?(index==0):true"}],key:a,staticClass:"store_list_li",on:{click:function(i){return t.toRouter(e.id)}}},[i("div",{staticClass:"left"},[i("div",{staticClass:"top"},[i("div",{staticClass:"name"},[t._v(t._s(e.store_name))])]),i("div",{staticClass:"bottom"},[i("div",{staticClass:"start"},[i("van-rate",{staticStyle:{"text-align":"left"},attrs:{readonly:"",size:14},model:{value:e.score,callback:function(i){t.$set(e,"score",i)},expression:"item.score"}})],1),i("div",{staticClass:"distance"},[i("van-icon",{attrs:{slot:"icon",name:"location-o",size:"1.125rem",color:"#ccc"},slot:"icon"}),i("div",{staticClass:"distance_right"},[t._v(t._s(e.distance)+"km")])],1)])]),t._m(1,!0)])})),t.store&&t.store.length>1?i("div",{staticClass:"pull_down",on:{click:function(e){return e.stopPropagation(),t.pullDownBtn.apply(null,arguments)}}},[t.pullDownBtnShow?i("i",{staticClass:"fa fa-angle-down",staticStyle:{"font-size":"1.2rem"}}):i("i",{staticClass:"fa fa-angle-up",staticStyle:{"font-size":"1rem"}})]):t._e()],2),i("div",{staticClass:"message_list"},[i("van-tabs",{attrs:{"title-active-color":"#f49f19",animated:"",sticky:"",color:"#f49f19"},on:{change:t.tabDataBtn},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[i("van-tab",{attrs:{title:"详情"}},[i("div",{staticClass:"goods_content",domProps:{innerHTML:t._s(t.worker.content)}})]),i("van-tab",{attrs:{title:t.appointmentLang.project}},t._l(t.projects,(function(e,a){return i("ul",{key:a,staticClass:"project",on:{click:function(i){return t.goProject(e.id)}}},[i("li",[i("div",{staticClass:"left"},[i("img",{attrs:{src:e.thumb,alt:""}})]),i("div",{staticClass:"right"},[i("div",{staticClass:"top"},[t._v(t._s(e.title))])])])])})),0),i("van-tab",{attrs:{title:"评价"}},[i("div",{staticClass:"evaluate"},[i("ul",t._l(t.commentList,(function(e,a){return i("li",{key:a},[i("div",{staticClass:"evaluate_left"},[i("img",{attrs:{src:e.head_img_url,alt:""}})]),i("div",{staticClass:"evaluate_right"},[i("div",{staticClass:"top"},[i("div",{staticClass:"left"},[i("div",{staticClass:"name"},[t._v(t._s(e.nick_name))]),i("div",{staticClass:"stella"},[i("van-rate",{staticStyle:{"text-align":"left"},attrs:{readonly:"",size:14},model:{value:e.worker_level,callback:function(i){t.$set(e,"worker_level",i)},expression:"item.worker_level"}})],1)]),i("div",{staticClass:"right"},[t._v(t._s(e.created_at))])]),i("div",{staticClass:"bottom"},[i("div",{staticClass:"assess"},[t._v(t._s(e.content))]),i("div",{staticClass:"picture"},t._l(e.images,(function(t,e){return i("div",{key:e,staticClass:"picture_li"},[i("img",{attrs:{src:t,alt:""}})])})),0)])])])})),0)])])],1)],1)],1)},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"right"},[i("i",{staticClass:"fa fa-angle-right",staticStyle:{"font-size":"1.5rem"}})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"right"},[i("i",{staticClass:"fa fa-angle-right",staticStyle:{"font-size":"1.5rem"}})])}],n=(i("e7e5"),i("d399")),o=(i("99af"),i("ac1f"),i("1276"),i("d3b7"),i("25f0"),i("e9c4"),i("6968")),r=i("ac0d"),l={mixins:[r["a"]],data:function(){return{active:0,address:"",city:"",point:"",title:"",worker_id:"",worker:"",store:"",projects:"",isLoadMore:!0,page:1,total_page:0,titleInfo:"",commentList:[],pullDownBtnShow:!0}},computed:{appointmentLang:function(){return this.$store.state.shopLanguage.appointment?this.$store.state.shopLanguage.appointment:{worker:"技师",project:"项目",service:"服务"}}},activated:function(){this.$route.params.worker_id&&(this.worker_id=this.$route.params.worker_id),this.ready();var t=this;setTimeout((function(){window.scrollTo(0,0),t.display=!1}),20)},methods:{goProject:function(t){this.$router.push(this.fun.getUrl("ProjectDetails",{project_id:t}))},pullDownBtn:function(){this.pullDownBtnShow=!this.pullDownBtnShow},toUrl:function(t,e){this.$router.push(this.fun.getUrl(t,e))},tabDataBtn:function(t){2==t&&0==this.commentList&&this.getComment()},getMoreData:function(){if(2==this.active){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("plugin.appointment.frontend.comment.get-comment-by-worker-id",{worker_id:this.worker_id,page:this.page},"加载中").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.data;t.commentList=t.commentList.concat(i)}),(function(t){})))}},getComment:function(){var t=this;$http.get("plugin.appointment.frontend.comment.get-comment-by-worker-id",{worker_id:this.worker_id,page:this.page},"获取中").then((function(e){1===e.result?(t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0),t.commentList=e.data.data):t.$dialog.alert({message:e.msg})})).catch((function(t){}))},getData:function(){var t=this;$http.get("plugin.appointment.frontend.worker.get-detail-by-id",{lng:this.point.lng,lat:this.point.lat,worker_id:this.worker_id},"获取中").then((function(e){t.fun.setWXTitle(t.appointmentLang.worker+"详情"),1===e.result?(t.worker=e.data.worker,t.store=e.data.store,t.projects=e.data.projects):t.$dialog.alert({message:e.msg})})).catch((function(t){}))},ready:function(){var t=this;this.initData(),this.fun.getLocation().then((function(e){t.point=e.point,t.address=e.title,t.city=e.city,t.getData()})).catch((function(t){}))},initData:function(){this.active=0,this.isLoadMore=!0,this.page=1,this.total_page=0,this.titleInfo="",this.commentList=[],this.pullDownBtnShow=!0},getLocation:function(){var t=this,e=new AMap.Map("iCenter");function i(e){var i=e.position.toString().split(",");t.point={lat:i[1],lng:i[0]},t.address=e.formattedAddress,t.title=e.formattedAddress,t.city=t.fun.isTextEmpty(e.addressComponent.city)?e.addressComponent.province:e.addressComponent.city;var a={address:e.formattedAddress,city:t.city,title:e.formattedAddress,point:t.point};t.$store.commit("updateLocation",a),t.$store.commit("setLocation",a),window.localStorage.setItem("myLocation",JSON.stringify(a)),t.getData()}function a(t){Object(n["a"])("定位失败")}e.plugin("AMap.Geolocation",(function(){var t=new AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4,maximumAge:0,convert:!0,showButton:!0,buttonPosition:"LB",buttonOffset:new AMap.Pixel(10,20),showMarker:!0,showCircle:!0,panToLocation:!0,zoomToAccuracy:!0});e.addControl(t),t.getCurrentPosition(),AMap.event.addListener(t,"complete",i),AMap.event.addListener(t,"error",a)}))},toRouter:function(t){this.$router.push(this.fun.getUrl("HomeSeller",{store_id:t,fromHome:1}))}},components:{cTitle:o["a"]}},c=l,d=c,m=(i("156fe"),i("2877")),f=Object(m["a"])(d,a,s,!1,null,"ccf83268",null);e["default"]=f.exports},"97a61":function(t,e,i){var a=i("dd23f");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("6cf26f65",a,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=document.documentElement,s=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&a.clientHeight?Math.min(s.clientHeight,a.clientHeight):Math.max(s.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},dd23f:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#technician[data-v-ccf83268]{background:#fff;padding-top:.5rem}#technician .info_message[data-v-ccf83268]{padding-top:.72rem;width:21.56rem;background-color:#fff;-webkit-box-shadow:0 0 1.25rem 0 hsla(0,0%,42.4%,.1);box-shadow:0 0 1.25rem 0 hsla(0,0%,42.4%,.1);border-radius:.16rem;margin:0 auto 1rem}#technician .info_message .head_sculpture[data-v-ccf83268]{width:3rem;height:3rem;border-radius:50%;margin:0 auto .44rem}#technician .info_message .head_sculpture img[data-v-ccf83268]{width:3rem;height:3rem;border-radius:50%}#technician .info_message .message[data-v-ccf83268]{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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding-bottom:.34rem}#technician .info_message .message .name[data-v-ccf83268]{height:.91rem;line-height:.91rem;font-size:16px;text-align:center;-webkit-box-flex:0;-webkit-flex:0 0 6rem;-ms-flex:0 0 6rem;flex:0 0 6rem}#technician .info_message .tag[data-v-ccf83268]{line-height:.91rem;text-align:center;border-radius:.9rem;border:.05rem solid #f4a82e;padding:.2rem .3rem;font-size:14px;margin:.2rem;color:#f4a82e;display:inline-block}#technician .bespoke[data-v-ccf83268]{margin-left:.78rem;margin-right:.78rem;margin-bottom:1.09rem}#technician .bespoke .tips[data-v-ccf83268]{margin-left:.41rem;text-align:left;height:.78rem;line-height:.78rem;font-size:15px;color:#999;margin-bottom:.63rem}#technician .bespoke .time_selection[data-v-ccf83268]{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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;height:2.25rem;font-size:16px;padding-left:.41rem;padding-right:.34rem}#technician .bespoke .time_selection[data-v-ccf83268],#technician .store_list[data-v-ccf83268]{background-color:#fff;-webkit-box-shadow:0 0 .5rem 0 hsla(0,0%,42.4%,.1);box-shadow:0 0 .5rem 0 hsla(0,0%,42.4%,.1);border-radius:.16rem}#technician .store_list[data-v-ccf83268]{position:relative;margin-left:.78rem;margin-right:.78rem;margin-bottom:.73rem}#technician .store_list .store_list_li[data-v-ccf83268]{position:relative;z-index:2;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;padding:.53rem .38rem .47rem .41rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#technician .store_list .store_list_li .left .name[data-v-ccf83268]{font-size:16px;color:#000;margin-bottom:.56rem;height:1.2rem}#technician .store_list .store_list_li .left .bottom[data-v-ccf83268]{padding-left:.41rem}#technician .store_list .store_list_li .left .bottom[data-v-ccf83268],#technician .store_list .store_list_li .left .bottom .distance[data-v-ccf83268]{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}#technician .store_list .store_list_li .left .bottom .distance[data-v-ccf83268]{height:1.5rem;font-size:14px;margin-left:.53rem;padding-left:.59rem;border-left:1px solid #f2f2f7}#technician .store_list .store_list_li .left .bottom .distance .distance_right[data-v-ccf83268]{line-height:1.5rem;height:1.5rem}#technician .store_list .pull_down[data-v-ccf83268]{position:absolute;left:50%;bottom:-.53rem;margin-left:-1.375rem;width:3.47rem;height:1rem;z-index:10;background-color:#fff;-webkit-box-shadow:.09rem .08rem .46rem .04rem hsla(0,0%,42.4%,.07);box-shadow:.09rem .08rem .46rem .04rem hsla(0,0%,42.4%,.07);border-radius:.44rem}#technician .message_list[data-v-ccf83268]{background:#fff;min-height:100vh}#technician .message_list .goods_content[data-v-ccf83268]{padding:.5rem 1rem}#technician .message_list .goods_content img[data-v-ccf83268]{width:100%}#technician .message_list .project li[data-v-ccf83268]{padding-top:.59rem;padding-bottom:.56rem;margin-left:.81rem;margin-right:.81rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background:#fff}#technician .message_list .project li .left[data-v-ccf83268]{width:5.06rem;height:5.09rem;border-radius:.38rem}#technician .message_list .project li .left img[data-v-ccf83268]{width:5.06rem;height:5.06rem}#technician .message_list .project li .right[data-v-ccf83268]{text-align:left;padding:.5rem}#technician .message_list .project li .right .top[data-v-ccf83268]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;line-height:1rem;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;margin-bottom:.3rem;font-size:1rem}#technician .message_list .project li .right .bottom[data-v-ccf83268]{padding-top:.31rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:3.76rem;font-size:14px;line-height:.94rem;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;color:#999}#technician .message_list .evaluate[data-v-ccf83268]{margin:.5rem}#technician .message_list .evaluate ul li[data-v-ccf83268]{padding-left:.47rem;padding-top:.41rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#technician .message_list .evaluate ul li .evaluate_left[data-v-ccf83268]{width:2rem;height:2rem}#technician .message_list .evaluate ul li .evaluate_left img[data-v-ccf83268]{width:2rem;height:2rem;border-radius:50%}#technician .message_list .evaluate ul li .evaluate_right[data-v-ccf83268]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-left:.5rem}#technician .message_list .evaluate ul li .evaluate_right .top[data-v-ccf83268]{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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding-top:.09rem}#technician .message_list .evaluate ul li .evaluate_right .top .left[data-v-ccf83268]{text-align:left}#technician .message_list .evaluate ul li .evaluate_right .top .left .name[data-v-ccf83268]{width:9rem;font-size:16px;line-height:1rem;height:1rem;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#technician .message_list .evaluate ul li .evaluate_right .top .right[data-v-ccf83268]{line-height:1rem;height:1rem;font-size:14px;color:#999;padding-right:1.09rem}#technician .message_list .evaluate ul li .evaluate_right .bottom .assess[data-v-ccf83268]{text-align:left;font-size:14px;line-height:.94rem;max-height:3.76rem;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;color:#333;padding-bottom:.69rem}#technician .message_list .evaluate ul li .evaluate_right .bottom .picture[data-v-ccf83268]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:1.25rem}#technician .message_list .evaluate ul li .evaluate_right .bottom .picture .picture_li[data-v-ccf83268]{width:4.31rem;height:4.31rem;margin-left:.56rem}#technician .message_list .evaluate ul li .evaluate_right .bottom .picture .picture_li img[data-v-ccf83268]{width:4.31rem;height:4.31rem}",""]),t.exports=e}}]);