chunk-26c70e73.0832dcaf.js 10 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-26c70e73"],{3891:function(e,t,a){"use strict";a.r(t);var i=a("9ab4"),c=a("1b40"),s=a("c2a9"),n=a("b3ad");let r=class extends c.e{constructor(){super(...arguments),this.activeIndex=0,this.serviceName=["mnp","oa","h5","pc","app"],this.serviceLink={mnp:"https://work.weixin.qq.com/nl/act/p/a733314375294bdd",oa:"https://work.weixin.qq.com/nl/act/p/3f8820e724cb44c5",h5:"https://work.weixin.qq.com/nl/act/p/4030a5b69149404d",pc:"https://work.weixin.qq.com/nl/act/p/4030a5b69149404d",app:"https://www.likeshop.cn/doc/13/4183"},this.scene=["扫二维码","拨打电话","系统客服","微信客服","小程序客服","第三方客服"],this.sceneLimit={mnp:[1,2,3,4,5],oa:[1,2,3,4],h5:[1,2,3,4],pc:[1,4],app:[1,2,3,4]},this.form={mnp:{way:1,name:"平台名称",remarks:"备注",phone:"",business_time:"9:00-18:00",qr_code:""},oa:{way:2,phone:""},h5:{way:1},pc:{way:1,enterprise_id:"",kefu_link:""},app:{way:1,kefu_link:""}}}getServicegetConfig(){Object(s.a)({}).then(e=>{this.form=e})}handleClick(e){this.activeIndex=e}onSubmit(){this.$refs.formRef.validate(e=>{e&&Object(s.b)({...this.form}).then(e=>{this.getServicegetConfig()})})}created(){this.getServicegetConfig()}};r=Object(i.a)([Object(c.a)({components:{MaterialSelect:n.a}})],r);var l=r,o=(a("d571"),a("2877")),m=Object(o.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"service-setting"},[a("div",{staticClass:"ls-card"},[a("el-alert",{attrs:{title:"1.为买家和卖家提供多元化的客服渠道与专业服务支持。2.用户可在微信内、外各个场景中对商家发起咨询,还有智能客服助手快速响应常见问题。",type:"info","show-icon":"",closable:!1}})],1),a("div",{staticClass:"ls-card m-t-24"},[a("div",{staticClass:"nr weight-500 m-b-20"},[e._v("客服配置")]),a("el-form",{ref:"formRef",attrs:{model:e.form,"label-width":"120px",size:"small"}},[a("el-form-item",{attrs:{label:"场景"}},[a("div",{staticClass:"flex"},[a("div",{staticClass:"option-item",class:0==e.activeIndex?"actived":"",on:{click:function(t){return e.handleClick(0)}}},[a("span",{staticStyle:{"line-height":"20px"}},[e._v(" 微信小程序")]),a("span",{staticClass:"muted xxs",staticStyle:{"line-height":"20px"}},[e._v(" "+e._s(e.scene[e.form.mnp.way-1]))])]),a("div",{staticClass:"option-item",class:1==e.activeIndex?"actived":"",on:{click:function(t){return e.handleClick(1)}}},[a("span",{staticStyle:{"line-height":"20px"}},[e._v(" 微信公众号")]),a("span",{staticClass:"muted xxs",staticStyle:{"line-height":"20px"}},[e._v(" "+e._s(e.scene[e.form.oa.way-1]))])]),a("div",{staticClass:"option-item",class:2==e.activeIndex?"actived":"",on:{click:function(t){return e.handleClick(2)}}},[a("span",{staticStyle:{"line-height":"20px"}},[e._v(" H5商城")]),a("span",{staticClass:"muted xxs",staticStyle:{"line-height":"20px"}},[e._v(" "+e._s(e.scene[e.form.h5.way-1]))])]),a("div",{staticClass:"option-item",class:3==e.activeIndex?"actived":"",on:{click:function(t){return e.handleClick(3)}}},[a("span",{staticStyle:{"line-height":"20px"}},[e._v(" PC商城")]),a("span",{staticClass:"muted xxs",staticStyle:{"line-height":"20px"}},[e._v(" "+e._s(e.scene[e.form.pc.way-1]))])]),a("div",{staticClass:"option-item",class:4==e.activeIndex?"actived":"",on:{click:function(t){return e.handleClick(4)}}},[a("span",{staticStyle:{"line-height":"20px"}},[e._v(" APP商城")]),a("span",{staticClass:"muted xxs",staticStyle:{"line-height":"20px"}},[e._v(" "+e._s(e.scene[e.form.app.way-1]))])])])]),a("el-form-item",{attrs:{label:"客服方式"}},[e.sceneLimit[""+e.serviceName[e.activeIndex]].includes(1)?a("el-radio",{attrs:{label:"1"},model:{value:e.form[""+e.serviceName[e.activeIndex]].way,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"way",t)},expression:"form[`${serviceName[activeIndex]}`].way"}},[e._v("扫二维码")]):e._e(),e.sceneLimit[""+e.serviceName[e.activeIndex]].includes(2)?a("el-radio",{attrs:{label:"2"},model:{value:e.form[""+e.serviceName[e.activeIndex]].way,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"way",t)},expression:"form[`${serviceName[activeIndex]}`].way"}},[e._v("拨打电话")]):e._e(),e.sceneLimit[""+e.serviceName[e.activeIndex]].includes(3)?a("el-radio",{attrs:{label:"3"},model:{value:e.form[""+e.serviceName[e.activeIndex]].way,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"way",t)},expression:"form[`${serviceName[activeIndex]}`].way"}},[e._v("系统客服")]):e._e(),e.sceneLimit[""+e.serviceName[e.activeIndex]].includes(4)?a("el-radio",{attrs:{label:"4"},model:{value:e.form[""+e.serviceName[e.activeIndex]].way,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"way",t)},expression:"form[`${serviceName[activeIndex]}`].way"}},[e._v("企业微信客服")]):e._e(),e.sceneLimit[""+e.serviceName[e.activeIndex]].includes(5)?a("el-radio",{attrs:{label:"5"},model:{value:e.form[""+e.serviceName[e.activeIndex]].way,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"way",t)},expression:"form[`${serviceName[activeIndex]}`].way"}},[e._v("微信小程序客服 ")]):e._e(),e.sceneLimit[""+e.serviceName[e.activeIndex]].includes(6)?a("el-radio",{attrs:{label:"6"},model:{value:e.form[""+e.serviceName[e.activeIndex]].way,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"way",t)},expression:"form[`${serviceName[activeIndex]}`].way"}},[e._v("第三方客服 ")]):e._e()],1),1==e.form[""+e.serviceName[e.activeIndex]].way?[a("el-form-item",{attrs:{label:"平台名称"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.form[""+e.serviceName[e.activeIndex]].name,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"name",t)},expression:"form[`${serviceName[activeIndex]}`].name"}})],1),a("el-form-item",{attrs:{label:"备注"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.form[""+e.serviceName[e.activeIndex]].remarks,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"remarks",t)},expression:"form[`${serviceName[activeIndex]}`].remarks"}})],1),a("el-form-item",{attrs:{label:"客服电话"}},[a("el-input",{attrs:{type:"number",placeholder:""},model:{value:e.form[""+e.serviceName[e.activeIndex]].phone,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"phone",t)},expression:"form[`${serviceName[activeIndex]}`].phone"}})],1),a("el-form-item",{attrs:{label:"服务时间"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.form[""+e.serviceName[e.activeIndex]].business_time,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"business_time",t)},expression:"form[`${serviceName[activeIndex]}`].business_time"}})],1),a("el-form-item",{attrs:{label:"客服二维码",prop:"qr_code"}},[a("material-select",{model:{value:e.form[""+e.serviceName[e.activeIndex]].qr_code,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"qr_code",t)},expression:"form[`${serviceName[activeIndex]}`].qr_code"}})],1)]:e._e(),2==e.form[""+e.serviceName[e.activeIndex]].way?[a("el-form-item",{attrs:{label:"拨打电话"}},[a("el-input",{attrs:{type:"number",placeholder:""},model:{value:e.form[""+e.serviceName[e.activeIndex]].phone,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"phone",t)},expression:"form[`${serviceName[activeIndex]}`].phone"}})],1)]:e._e(),3==e.form[""+e.serviceName[e.activeIndex]].way?[a("el-form-item",[a("div",[e._v("请参考部署文档配置系统客服")])])]:e._e(),4==e.form[""+e.serviceName[e.activeIndex]].way?[a("el-form-item",{attrs:{label:"企业ID"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.form[""+e.serviceName[e.activeIndex]].enterprise_id,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"enterprise_id",t)},expression:"form[`${serviceName[activeIndex]}`].enterprise_id"}})],1),a("el-form-item",{attrs:{label:"企业客服链接"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.form[""+e.serviceName[e.activeIndex]].kefu_link,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"kefu_link",t)},expression:"form[`${serviceName[activeIndex]}`].kefu_link"}}),a("div",[e._v(" 如何接入企业微信客服请查看 "),a("a",{staticStyle:{color:"#5a86fa","text-decoration":"none"},attrs:{href:e.serviceLink[""+e.serviceName[e.activeIndex]],target:"_blank"}},[e._v(" 企业微信客服指南 ")])])],1)]:e._e(),5==e.form[""+e.serviceName[e.activeIndex]].way?[a("el-form-item",[a("div",[e._v("需前往小程序后台绑定客服人员")])])]:e._e(),6==e.form[""+e.serviceName[e.activeIndex]].way?[a("el-form-item",{attrs:{label:"客服链接"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.form[""+e.serviceName[e.activeIndex]].kefu_link,callback:function(t){e.$set(e.form[""+e.serviceName[e.activeIndex]],"kefu_link",t)},expression:"form[`${serviceName[activeIndex]}`].kefu_link"}}),a("div",[e._v(" 请填写客服链接,聊天时跳转至第三方聊天窗口 例如: "),a("a",{staticStyle:{color:"#5a86fa","text-decoration":"none"},attrs:{href:"https://www.meiqia.com/",target:"_blank"}},[e._v(" 美恰客服 ")])])],1)]:e._e()],2)],1),a("div",{staticClass:"bg-white ls-fixed-footer flex row-center"},[a("div",{staticClass:"row-center flex"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.onSubmit}},[e._v("保存")])],1)])])}),[],!1,null,"35c1df20",null);t.default=m.exports},c2a9:function(e,t,a){"use strict";a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return s})),a.d(t,"k",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"f",(function(){return l})),a.d(t,"l",(function(){return o})),a.d(t,"e",(function(){return m})),a.d(t,"m",(function(){return v})),a.d(t,"d",(function(){return d})),a.d(t,"j",(function(){return f})),a.d(t,"g",(function(){return u})),a.d(t,"i",(function(){return p})),a.d(t,"h",(function(){return x}));var i=a("f175");const c=e=>i.a.get("/kefu.kefu_config/getConfig",{params:e}),s=e=>i.a.post("/kefu.kefu_config/setConfig",e),n=e=>i.a.get("/kefu.kefu/lists",{params:e}),r=e=>i.a.post("/kefu.kefu/add",e),l=e=>i.a.post("/kefu.kefu/edit",e),o=e=>i.a.post("/kefu.kefu/login",e),m=e=>i.a.get("/kefu.kefu/detail",{params:e}),v=e=>i.a.post("/kefu.kefu/status",e),d=e=>i.a.post("/kefu.kefu/del",e),f=e=>i.a.get("/kefu.kefu_lang/lists",{params:e}),u=e=>i.a.post("/kefu.kefu_lang/add",e),p=e=>i.a.post("/kefu.kefu_lang/edit",e),x=e=>i.a.post("/kefu.kefu_lang/del",e)},d571:function(e,t,a){"use strict";a("e975")},e975:function(e,t,a){}}]);