bztang-admin/addons/yun_shop/static/app/js/chunk-6c8aec04.a29fabaf.js

1 line
15 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c8aec04"],{"1cb4":function(e,t,a){var o=a("2e5f");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=a("499e").default;i("7e82023c",o,!0,{sourceMap:!1,shadowMode:!1})},"1d24":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABFCAYAAAALr7vgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABxxJREFUeNrsW12IG1UUnqylWFvd4A+IP5gi1WqtDREFEW1WfFAfbPxttdKNUHdFKwYFX/zZ7IMPimCkFdn401nFF2llRYVtRTdbELEPIVsVfSlNxZ+iVbPVttTuNn4nObM5O72TmWQnySSZA9/szNw7N3e+Oefcc87MBorFotZ0yepnYfs8sBG4FAjUOMIJ4FvgZS0S36G1SAJNJy+rL8b2S+Aml0Z8GgS+1i3kPYHtNj6aAX4EZmscpRcI8f5/pf1I/Ldmk7eoBQ/sDrEfAz6r56ED77PZkybfxsdNlZ4WkLdM7H9V5xhFNn1DzusMs83qN2K7HlgJnKnosQYICvJm6vylC4EreX8/8LOiTwH4GnivEWbtHnlZfSm2bwEPat6To8BTIPAd75GX1XvYd92ueVseAYG618jbhO0oHx0HngU+xER/d3Dtwn47ErcalxbDFcBzvLCQHAEuxzWHvbTaDoj9Ta0MXAWp5Et/AB4GkeR77wXOATaIUMkTq+11/PcXTxB3umyVtHotVDFW1cOaN+Wg2D+3neO8jhGfvDZLz5xmIRcDx4BDwElf8+wf5KPAXuAfLhj8xFnCTuAGnzy1UE3vGyANXG9qo9rfPdz+KnCGb7YVOR/Yo1VKTCTfA/uAJcDNIvF/hk36MV/zyvKmII6S+1uBa4CHgLuBi7Ry1fkU9xnk811OXlZfje19fDQN3AJMmHpRsfOlUmJfk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Pyd8VACipVRyhhrXN7kH5OCsBza7FxAYmBgINMosx2WztqBdlApflg8sRyHA/Km9Vo1T5KJ38nwuTHsF6s9BLQ5nn+rfV6Y/VxS3GDBWBiEyaaEL3RDRi3MM6U1SBpBnq1z5lU2xItKLX60muRV1+A3CjbBd4lgLApOTDvXUPKq+ReO+/ot/FdVP9ogCToMi9aqQp6mfmLGxAZswpuclfaSbzOdkpo2hPYhi6GttJhcyDQ0qmoQDa0stiJIrjUbGWPzS5jDAtOCM2eq/LfPzqSr+OdMvXPuaQFJKYrNOICVvicntEGlsYQk+TX2bUGjLx9Te1y0GxocVC1M/LDWtRV5rF10Y9txA3nOdzOsHdEqPjNuCmTDpmoHXdeP8WKC8FJIpCqHcfajaQv42GcRDxy2caohB3W3gjmRr7KKZjhhJxj/zajbBLMx041m2M9RIYBMnR7EJJM8JoLlGGtgTFGwGIW/yy9E88K88llhDa+QEzaoKZ7iG6YbXc4pEGliRhW+sIlfJn9DhCVhk1ZHTeZeynZMDz9j0r76NI8n0bIvOtkfRdncdL55XaF1kwrfddBkykYgHjasgDOQSVOoYaR0BWie1hFi4ZsaKlYldif4X4ABAGH4yRV2uHfFAAAAAElFTkSuQmCC"},"20ca":function(e,t,a){"use strict";a("1cb4")},"2e5f":function(e,t,a){var o=a("24fb");t=o(!1),t.push([e.i,"#evaluate[data-v-c8d720c2]{text-align:left;color:#000}#evaluate .top_public[data-v-c8d720c2]{background:#fff;padding-top:.625rem;padding-bottom:4.5rem}#evaluate .top_public[data-v-c8d720c2] .van-cell-group:after{border:none}#evaluate .top_public .goods[data-v-c8d720c2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:90%;margin:0 5% .875rem;padding:.825rem;-webkit-box-shadow:0 0 18px 0 hsla(0,0%,66.3%,.24);box-shadow:0 0 18px 0 hsla(0,0%,66.3%,.24);border-radius:5px}#evaluate .top_public .goods .img[data-v-c8d720c2]{width:6.25rem;height:6.25rem;border-radius:.406rem;overflow:hidden;margin-right:.625rem}#evaluate .top_public .goods .img img[data-v-c8d720c2]{width:100%}#evaluate .top_public .goods .info[data-v-c8d720c2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:.5rem 0}#evaluate .top_public .goods .info .good-title[data-v-c8d720c2]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.125rem;height:2.25rem;font-size:16px;font-weight:700;margin-bottom:.5rem}#evaluate .top_public .goods .info .flex-box[data-v-c8d720c2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:.25rem;color:#999;font-size:14px}#evaluate .top_public .goods .info .flex-box .content[data-v-c8d720c2]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}#evaluate .top_public .rate-box[data-v-c8d720c2]{padding:0 5%}#evaluate .top_public .rate-box .rate-child[data-v-c8d720c2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:1.125rem}#evaluate .top_public .rate-box .rate-child .text[data-v-c8d720c2]{margin-right:.625rem;font-size:14px;color:#666}#evaluate .top_public .comment[data-v-c8d720c2]{padding:.5rem 1rem}#evaluate .top_public .comment-time[data-v-c8d720c2]{font-size:14px;color:#999;padding:.5rem .875rem}#evaluate .top_public .imgflex[data-v-c8d720c2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0 .875rem}#evaluate .top_public .imgflex .photobox[data-v-c8d720c2]{position:relative;width:4.938rem;height:4.938rem;background-color:#fcfcfc;border-radius:.156rem;border:.031rem solid #ccc;overflow:hidden;margin-right:.25rem;margin-bottom:.25rem}#evaluate .top_public #submitBtn[data-v-c8d720c2]{position:fixed;left:0;bottom:0;background:#fff;-webkit-box-shadow:0 0 .563rem 0 hsla(0,0%,66.3%,.24);box-shadow:0 0 .563rem 0 hsla(0,0%,66.3%,.24);width:100%;height:3.719rem;line-height:3.719rem;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}#evaluate .top_public #submitBtn .btn[data-v-c8d720c2]{width:90%;height:2.5rem;background-color:#f4a82e;border-radius:1.25rem;line-height:2.5rem;text-align:center;font-size:1rem;font-weight:700;display:block;color:#fff}#evaluate .many_reply[data-v-c8d720c2]{padding:0 1rem}",""]),e.exports=t},"656f":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"evaluate"}},[o("c-title",{attrs:{hide:!1,text:"评价"}}),o("div",{staticClass:"top_public"},[o("div",{staticClass:"goods"},[o("div",{staticClass:"img"},[o("img",{attrs:{src:e.order_info.has_one_order_project.project_thumb,alt:""}})]),o("div",{staticClass:"info"},[o("div",{staticClass:"good-title"},[e._v(" "+e._s(e.order_info.has_one_order_project.project_title)+" ")]),o("div",{staticClass:"flex-box",staticStyle:{color:"#f49f19"}},[o("i",{staticClass:"iconfont icon-dengdaichuli",staticStyle:{"font-size":"14px"}}),o("span",[e._v(e._s(e.order_info.begin_time))])]),o("div",{staticClass:"flex-box"},[o("i",{staticClass:"iconfont icon-stores_staff",staticStyle:{color:"#f4a82e"}}),o("div",{staticClass:"content"},[o("em",[e._v(e._s(e.order_info.has_one_worker.name))]),e._v(" | "+e._s(e.order_info.has_one_store.store_name)+" ")])]),o("div",{staticClass:"flex-box"},[o("i",{staticClass:"iconfont icon-order_locate",staticStyle:{color:"#f4a82e"}}),o("div",{staticClass:"content"},[e._v(" "+e._s(e.order_info.has_one_store.address)+" ")])])])]),o("div",{staticClass:"rate-box"},[o("div",{staticClass:"rate-child"},[o("div",{staticClass:"text"},[e._v(e._s(e.appointmentLang.project)+"评价")]),e.comment.project_level?o("van-rate",{attrs:{readonly:""},model:{value:e.comment.project_level,callback:function(t){e.$set(e.comment,"project_level",t)},expression:"comment.project_level"}}):o("van-rate",{model:{value:e.applyModel.project_level,callback:function(t){e.$set(e.applyModel,"project_level",t)},expression:"applyModel.project_level"}})],1),o("div",{staticClass:"rate-child"},[o("div",{staticClass:"text"},[e._v(e._s(e.appointmentLang.worker)+"评价")]),e.comment.worker_level?o("van-rate",{attrs:{readonly:""},model:{value:e.comment.worker_level,callback:function(t){e.$set(e.comment,"worker_level",t)},expression:"comment.worker_level"}}):o("van-rate",{model:{value:e.applyModel.worker_level,callback:function(t){e.$set(e.applyModel,"worker_level",t)},expression:"applyModel.worker_level"}})],1),o("div",{staticClass:"rate-child"},[o("div",{staticClass:"text"},[e._v("门店评价")]),e.comment.store_level?o("van-rate",{attrs:{readonly:""},model:{value:e.comment.store_level,callback:function(t){e.$set(e.comment,"store_level",t)},expression:"comment.store_level"}}):o("van-rate",{model:{value:e.applyModel.store_level,callback:function(t){e.$set(e.applyModel,"store_level",t)},expression:"applyModel.store_level"}})],1)]),e.comment.worker_level?e._e():o("van-cell-group",[o("van-field",{attrs:{rows:"1",autosize:{minHeight:120},type:"textarea",placeholder:"输入评论内容"},model:{value:e.applyModel.content,callback:function(t){e.$set(e.applyModel,"content",t)},expression:"applyModel.content"}})],1),e.comment.worker_level&&e.comment.content?o("div",{staticClass:"comment"},[e._v(" 评论: "+e._s(e.comment.content)+" ")]):e._e(),e.comment.worker_level?e._e():o("div",{staticClass:"imgflex"},[e._l(e.imagesList,(function(t,a){return o("div",{key:a},[o("div",{staticClass:"photobox"},[o("img",{staticStyle:{width:"100%",height:"100%","object-fit":"contain"},attrs:{src:t},on:{click:function(t){return e.showimg(a)}}}),o("i",{on:{click:function(t){return e.removeImg_1(a)}}})])])})),o("van-uploader",{attrs:{"after-read":e.multipleMethod_1,multiple:""}},[o("div",{staticStyle:{padding:"0.2rem",width:"4.938rem",height:"4.938rem",border:"1px dashed #c0ccda",margin:"0 auto",display:"flex"}},[o("img",{staticClass:"avatar",staticStyle:{width:"70%",height:"60%"},attrs:{src:a("1d24")}})])])],2),e.comment.worker_level?o("div",{staticClass:"imgflex"},e._l(e.comment.images,(function(t,a){return o("div",{key:a},[o("div",{staticClass:"photobox"},[o("img",{staticStyle:{width:"100%",height:"100%","object-fit":"contain"},attrs:{src:t},on:{click:function(t){return e.showimg(a)}}})])])})),0):e._e(),o("div",{staticClass:"comment-time"},[e._v(e._s(e.comment.created_at))]),e.comment.has_many_reply&&e.comment.has_many_reply.length>0?o("div",{staticClass:"many_reply"},e._l(e.comment.has_many_reply,(function(t){return o("div",{key:t.id},[o("p",{staticStyle:{padding:"0.5rem 1rem"}},[e._v(" 追加评论: "+e._s(t.content)+" ")]),o("div",{staticClass:"imgflex"},e._l(t.images,(function(t,a){return o("div",{key:a},[o("div",{staticClass:"photobox"},[o("img",{staticStyle:{width:"100%",height:"100%","object-fit":"contain"},attrs:{src:t},on:{click:function(t){return e.showimg(a)}}})])])})),0),o("div",{staticClass:"comment-time"},[e._v(e._s(t.created_at))])])})),0):e._e(),e.comment.worker_level?[o("van-cell-group",[o("van-field",{attrs:{rows:"1",autosize:{minHeight:120},type:"textarea",placeholder:"输入追加评论内容"},model:{value:e.applyMoreModel.content,callback:function(t){e.$set(e.applyMoreModel,"content",t)},expression:"applyMoreModel.content"}})],1),o("div",{staticClass:"imgflex"},[e._l(e.imagesList,(function(t,a){return o("div",{key:a},[o("div",{staticClass:"photobox"},[o("img",{staticStyle:{width:"100%",height:"100%","object-fit":"contain"},attrs:{src:t},on:{click:function(t){return e.showimg(a)}}}),o("i",{on:{click:function(t){return e.removeImg_1(a)}}})])])})),o("van-uploader",{attrs:{"after-read":e.multipleMethod_1,multiple:""}},[o("div",{staticStyle:{padding:"0.2rem",width:"4.938rem",height:"4.938rem",border:"1px dashed #c0ccda",margin:"0 auto",display:"flex"}},[o("img",{staticClass:"avatar",staticStyle:{width:"70%",height:"60%"},attrs:{src:a("1d24")}})])])],2)]:e._e(),o("div",{attrs:{id:"submitBtn"}},[e.comment.worker_level?o("span",{staticClass:"btn",on:{click:e.makeMoreEvaluate}},[e._v("追加评论")]):o("span",{staticClass:"btn",on:{click:e.makeEvaluate}},[e._v("提交")])]),o("van-image-preview",{attrs:{images:e.applyModel.images,"start-position":e.imgIndex},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}})],2)],1)},i=[],l=(a("e7e5"),a("d399")),n=(a("e9c4"),a("14d9"),a("ac1f"),a("00b4"),a("a434"),a("6968")),s=document.createElement("canvas"),c=s.getContext("2d"),r={data:function(){return{imagesList:[],order_info:{has_one_order_project:{},has_one_worker:{},has_one_store:{}},comment:{},photosize:4194304,imgIndex:1,show:!1,applyModel:{order_service_id:0,content:"",store_level:5,project_level:5,worker_level:5,images:[]},applyMoreModel:{content:"",images:[]}}},activated:function(){this.applyModel.order_service_id=this.$route.params.service_id,this.getData()},computed:{appointmentLang:function(){return this.$store.state.shopLanguage.appointment?this.$store.state.shopLanguage.appointment:{worker:"技师",project:"项目",service:"服务"}}},methods:{getData:function(){var e=this;$http.get("plugin.appointment.frontend.comment.get-comment-by-order-service-id",{order_service_id:this.applyModel.order_service_id},"获取中").then((function(t){1===t.result?(e.order_info=t.data.order_info,e.comment=t.data.comment,e.comment||(e.comment={})):Object(l["a"])(t.msg)})).catch((function(e){}))},makeEvaluate:function(){var e=this;this.applyModel.images=JSON.stringify(this.imagesList),$http.get("plugin.appointment.frontend.comment.create-comment",this.applyModel,"获取中").then((function(t){1===t.result?(e.imagesList=[],e.$dialog.alert({message:t.msg}).then((function(){e.$router.go(-1)})).catch((function(){}))):Object(l["a"])(t.msg)})).catch((function(e){}))},makeMoreEvaluate:function(){var e=this;this.applyMoreModel.id=this.comment.id,this.applyMoreModel.images=JSON.stringify(this.imagesList),$http.post("plugin.appointment.frontend.comment.append-comment",this.applyMoreModel,"获取中").then((function(t){1===t.result?(e.imagesList=[],e.applyMoreModel={content:"",images:[]},e.$dialog.alert({message:t.msg}).then((function(){e.$router.go(-1)})).catch((function(){}))):Object(l["a"])(t.msg)})).catch((function(e){}))},showimg:function(e){this.imgIndex=e,this.show=!0},onphotosize:function(e){this.imgPreview(e.file,2)},multipleMethod_1:function(e,t){if(e&&e.length)for(var a=0;a<e.length;a++)this.onRead_1(e[a],t);else this.onRead_1(e,t)},onRead_1:function(e,t){l["a"].loading({message:"上传中",forbidClick:!0});var a=new FormData;!0===t?a.append("file",e):a.append("file",e.file);var o=this,i=this.fun.getRealUrl("upload.uploadPic",{});axios.post(i,a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var t=e.data;1===t.result?(l["a"].clear(),o.imagesList.push(t.data.img_url)):Object(l["a"])(t.msg)})).catch((function(e){}))},imgPreview:function(e,t){var a=this;if(e&&window.FileReader&&/^image/.test(e.type)){var o=new FileReader;o.readAsDataURL(e),o.onloadend=function(){var o=this.result,i=new Image;i.src=o,i.onload=function(){var o=this.width,l=this.height,n=400,r=400,d=o,m=l;(o>n||l>r)&&(o/l>n/r?(d=n,m=Math.round(n*(l/o))):(m=r,d=Math.round(r*(o/l)))),s.width=d,s.height=m,c.clearRect(0,0,d,m),c.drawImage(i,0,0,d,m),s.toBlob((function(e){1===t?a.onRead(e,!0):a.onRead_1(e,!0)}),e.type||"image/png")}}}},removeImg:function(e){this.applyModel.images.splice(e,1)}},components:{cTitle:n["a"]}},d=r,m=d,p=(a("20ca"),a("2877")),f=Object(p["a"])(m,o,i,!1,null,"c8d720c2",null);t["default"]=f.exports}}]);