| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1345"],{"22lP":function(t,e,s){"use strict";var a=s("M3cC");s.n(a).a},"51dP":function(t,e,s){"use strict";s.r(e);var a={data:function(){return{order_type:"3",form:{status:!1,token:"",key:"",url:"",WechatKf_secret:""},rules:{}}},created:function(){this.getData()},components:{yun_service_side:s("2gMQ").a},mounted:function(){},methods:{getData:function(){var t=this;$http.pc_post("plugin/YunChat/getWechatKfSet").then(function(e){e.result?(t.form.key=e.data.WechatKf_EncodingAESKey,t.form.token=e.data.WechatKf_Token,t.form.url=e.data.WechatKf_contact_notice_url,t.form.status=e.data.WechatKf_is_open,t.form.WechatKf_secret=e.data.WechatKf_secret):t.$message({type:"error",message:e.msg})})},copy:function(){var t=this.form.url;if(""==t)this.$message.error("链接内容为空");else{var e=document.createElement("input");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("Copy"),document.body.removeChild(e),this.$message.success("复制成功")}},gotoOther:function(t){1==t?this.$router.push(this.fun.getUrl("serviceBasic")):2==t&&this.$router.push(this.fun.getUrl("serviceWordsReplyList"))},submitForm:function(){var t=this,e={WechatKf_Token:this.form.token,WechatKf_EncodingAESKey:this.form.key,WechatKf_is_open:this.form.status?1:0,WechatKf_secret:this.form.WechatKf_secret};$http.pc_post("plugin/YunChat/saveWechatKfSet",e,"loading").then(function(e){e.result?t.$message.success(e.msg):t.$message.error(e.message)})},goBack:function(){history.go(-1)}}},o=(s("22lP"),s("KHd+")),r=Object(o.a)(a,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"all"},[s("yun_service_side",{attrs:{defaultActive:"serviceBasic"}}),t._v(" "),s("div",{attrs:{id:"app"}},[s("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"15%"}},[s("div",{staticClass:"vue-head"},[s("el-radio-group",{model:{value:t.order_type,callback:function(e){t.order_type=e},expression:"order_type"}},[s("el-radio-button",{attrs:{label:"1"},nativeOn:{click:function(e){t.gotoOther(1)}}},[t._v("基础设置")]),t._v(" "),s("el-radio-button",{attrs:{label:"2"},nativeOn:{click:function(e){t.gotoOther(2)}}},[t._v("关键词回复")]),t._v(" "),s("el-radio-button",{attrs:{label:"3"},nativeOn:{click:function(e){t.gotoOther(3)}}},[t._v("企业微信客服设置")])],1)],1),t._v(" "),s("div",{staticClass:"vue-head",staticStyle:{"margin-top":"20px"}},[s("div",{staticClass:"vue-main-title"},[s("div",{staticClass:"vue-main-title-left"}),t._v(" "),s("div",{staticClass:"vue-main-title-content"},[t._v("企业微信客服设置")])]),t._v(" "),s("div",{staticClass:"vue-main-form"},[s("el-form-item",{attrs:{label:"企业微信客服",prop:"status"}},[s("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[t._v("\n >\n ")]),t._v(" "),s("div",{staticClass:"tip"},[t._v("开启后可以在公众号、小程序端配置企业微信客服,用户发起咨询在线客服可接收、回复企业微信客服消息!")])],1),t._v(" "),s("el-form-item",{attrs:{label:"企业微信客服Token",prop:"token"}},[s("el-input",{staticStyle:{width:"50%"},attrs:{placeholder:"请输入"},model:{value:t.form.token,callback:function(e){t.$set(t.form,"token",e)},expression:"form.token"}})],1),t._v(" "),s("el-form-item",{attrs:{label:"企业微信客服EncondingAESKey",prop:"key"}},[s("el-input",{staticStyle:{width:"50%"},attrs:{placeholder:"请输入"},model:{value:t.form.key,callback:function(e){t.$set(t.form,"key",e)},expression:"form.key"}})],1),t._v(" "),s("el-form-item",{attrs:{label:"企业微信客服服务器URL",prop:"url"}},[s("el-input",{staticStyle:{width:"50%"},attrs:{placeholder:"https://www.yunzmall.com/business/10/frontend/qy/WxCallback?business_id=1"},model:{value:t.form.url,callback:function(e){t.$set(t.form,"url",e)},expression:"form.url"}},[s("el-button",{staticStyle:{color:"#fff",backgroundColor:"#29ba9c"},attrs:{slot:"append"},on:{click:t.copy},slot:"append"},[t._v("复制")])],1)],1),t._v(" "),s("el-form-item",{attrs:{label:"企业微信客服secret",prop:"key"}},[s("el-input",{staticStyle:{width:"50%"},attrs:{placeholder:"请输入"},model:{value:t.form.WechatKf_secret,callback:function(e){t.$set(t.form,"WechatKf_secret",e)},expression:"form.WechatKf_secret"}})],1)],1)])]),t._v(" "),s("div",{staticClass:"vue-page"},[s("div",{staticClass:"vue-center"},[s("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("提交")]),t._v(" "),s("el-button",{on:{click:t.goBack}},[t._v("返回")])],1)])],1)],1)},[],!1,null,"6a9f9664",null);r.options.__file="customerService_settings.vue";e.default=r.exports},M3cC:function(t,e,s){}}]);
|