1 line
6.9 KiB
JavaScript
1 line
6.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-318e3905"],{"37c9":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className},[a("div",{domProps:{innerHTML:t._s(t.css)}}),a("div",{staticClass:"customer_service"},["1"===t.datas.style_radio?t._l(t.datas.list,(function(e,o){return a("div",{key:o,staticClass:"service-item",on:{click:function(a){return t.toService(e)}}},[a("div",{staticClass:"avatar"},[a("img",{attrs:{src:e.avatar||t.emptyImage,alt:""}})]),a("div",{staticClass:"name"},[t._v(t._s(e.nickname))]),a("span",{staticClass:"btn-session",on:{click:function(a){return a.stopPropagation(),t.toChat(e)}}},[a("span",{staticClass:"button-item"},[t._v(t._s(t.datas.button_title))])])])})):t._e(),"2"===t.datas.style_radio?t._l(t.datas.list,(function(e,o){return a("div",{key:o,staticClass:"lawyer",on:{click:function(a){return t.toService(e)}}},[a("div",{staticClass:"d-f "},[a("div",{staticClass:"d-f y-l"},[a("img",{attrs:{src:e.avatar||t.emptyImage,alt:""}})]),a("div",{staticClass:"d-f y-r"},[a("div",{staticClass:"d-f f-j-c"},[a("div",{staticClass:"s-16 name_color"},[t._v(t._s(e.nickname||"客服昵称"))]),a("div",{staticClass:"btn s-10",on:{click:function(a){return a.stopPropagation(),t.toChat(e)}}},[t._v(t._s(t.datas.button_title))])]),e.tags?a("div",{staticClass:"d-f",staticStyle:{"flex-wrap":"wrap"}},t._l(e.tags.split(/\s+/),(function(e,o){return a("div",{key:o,staticClass:"job_color tag_1"},[t._v(t._s(e))])})),0):t._e(),a("div",{staticClass:"d-f",staticStyle:{"line-height":"12px"}},[a("div",{staticClass:"tag s-10"},[t._v(t._s(e.sketch||"---"))])])])])])})):t._e(),!t.datas.list||t.datas.list.length<=0?a("div",{staticStyle:{"font-size":"20px","font-weight":"bold",margin:"15px auto"}},[t._v(" 暂无添加客服 ")]):t._e()],2)])},i=[],n=(a("99af"),a("14d9"),a("2042")),s=a.n(n),c=function(){if(this.datas.preview_color){var t=this.datas,e=t.preview_color,a=t.font_size,o=t.font_color,i=t.button_size,n=t.button_bg_color,s=t.button_color,c=t.show_border,r=t.button_border_color,l=t.job_color,d=t.job_bg;return"\n .component-".concat(this.id," .customer_service {\n background-color: ").concat(e.color||"#ffffff",";\n background-image: url(").concat(2==e.isColor?e.image:"",");\n background-size: 100% 100%;\n background-position: center;\n background-repeat: no-repeat;\n }\n\n .component-").concat(this.id," .customer_service .name {\n font-size: ").concat(a,"px;\n color: ").concat(o,";\n }\n\n .component-").concat(this.id," .customer_service .btn-session {\n background-color: ").concat(n,";\n font-size: ").concat(i,"px;\n color: ").concat(s,";\n border: solid ").concat(c?"1":"0","px ").concat(r,";\n }\n\n .component-").concat(this.id," .lawyer .job_color {\n color: ").concat(l,";\n background-color: ").concat(d,";\n border-radius: 3px;\n }\n\n .component-").concat(this.id," .lawyer .name_color {\n font-size: ").concat(a,"px;\n color: ").concat(o,";\n }\n .component-").concat(this.id," .lawyer .btn {\n color: ").concat(s,";\n font-size: ").concat(i,"px;\n background-color: ").concat(n,";\n border: solid ").concat(c?"1":"0","px ").concat(r,";\n }\n\n ")}},r={data:function(){return{emptyImage:s.a}},props:["id","datas","styles"],computed:{css:function(){return"<style>"+c.call(this)+"</style>"},className:function(){var t=["component-wrapper","component-".concat(this.id)];return t}},methods:{toService:function(t){this.$router.push(this.fun.getUrl("personalProfile",{},{id:t.id}))},toChat:function(t){window.location.href=t.h5_url}},mounted:function(){this.$emit("loaded")}},l=r,d=(a("c35ac"),a("2877")),p=Object(d["a"])(l,o,i,!1,null,"659e00a6",null);e["default"]=p.exports},"729a":function(t,e,a){var o=a("a72b");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=a("499e").default;i("11fa988e",o,!0,{sourceMap:!1,shadowMode:!1})},a72b:function(t,e,a){var o=a("24fb");e=o(!1),e.push([t.i,".customer_service[data-v-659e00a6]{-webkit-flex-flow:wrap;-ms-flex-flow:wrap;flex-flow:wrap;padding:10px 8px 0;font-size:12px;color:#333}.customer_service[data-v-659e00a6],.customer_service .service-item[data-v-659e00a6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.customer_service .service-item[data-v-659e00a6]{-webkit-box-flex:0;-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:10px 5px;background-color:#fff;border-radius:10px;margin:0 4px 10px}.customer_service .avatar[data-v-659e00a6]{width:100px;height:100px;border-radius:10px;overflow:hidden;margin-bottom:10px}.customer_service .avatar img[data-v-659e00a6]{width:100%;height:100%}.customer_service .btn-session[data-v-659e00a6]{color:#3b98f7;margin-top:10px;padding:2px 8px;border-radius:15px;background-color:#f5f5f5}.lawyer[data-v-659e00a6]{margin:0 6px 14px 6px;-webkit-box-shadow:1px 2px 4px rgba(61,61,61,.25);box-shadow:1px 2px 4px rgba(61,61,61,.25);border-radius:10px;padding:10px;font-size:14px;width:100%;background:#fff}.lawyer .d-f[data-v-659e00a6]{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}.lawyer .f-j-c[data-v-659e00a6]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.lawyer .y-l[data-v-659e00a6]{margin-right:12px}.lawyer .y-l img[data-v-659e00a6]{width:87px;height:87px;border-radius:4px;overflow:hidden;-o-object-fit:cover;object-fit:cover}.lawyer .y-r[data-v-659e00a6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:87px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.lawyer .y-r .d-f[data-v-659e00a6]{width:100%}.lawyer .s-16[data-v-659e00a6]{font-size:16px}.lawyer .s-10[data-v-659e00a6]{font-size:10px}.lawyer .tag[data-v-659e00a6]{text-align:left;line-height:16px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.lawyer .tag_1[data-v-659e00a6]{padding:0 5px;line-height:18px;margin-right:5px;font-size:12px;margin-bottom:4px}.lawyer .btn[data-v-659e00a6]{padding:0 6px;text-align:center;border:1px solid #1b1b1d;border-radius:10px}",""]),t.exports=e},c35ac:function(t,e,a){"use strict";a("729a")}}]); |