提交 eee571a6 authored 作者: liupengfei's avatar liupengfei

售前和售后客服组分配

上级 78e065f6
import Cookies from "js-cookie";
export function openQiYu(type) {
let options = {
uid: Cookies.get('Y-Token'), // 用户Id
name: Cookies.get('loginName'), // 用户名称
mobile: Cookies.get('loginMobile'), // 用户电话
success: function() {
// 设置成功
ysf.open();
}
};
if (type) {
options.groupid = "263991763";
} else {
options.groupid = "263994879";
}
ysf("config", options);
}
...@@ -288,6 +288,7 @@ ...@@ -288,6 +288,7 @@
import {errorMsg} from "@/utils/errorMsg" import {errorMsg} from "@/utils/errorMsg"
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
import {uploadUrl} from "@/utils/global"; import {uploadUrl} from "@/utils/global";
import {openQiYu} from "@/utils/qiyuUtils";
import {Message} from 'element-ui' import {Message} from 'element-ui'
export default { export default {
...@@ -674,14 +675,17 @@ ...@@ -674,14 +675,17 @@
window.open(val) window.open(val)
} }
}, },
/*售前*/ /*售前*/
beforeSale(){ beforeSale(){
ysf.open(); // 263994879
openQiYu();
}, },
/*售后*/ /*售后*/
afterSale(){ afterSale(){
if (Cookies.get('Y-Token')) { if (Cookies.get('Y-Token')) {
ysf.open(); // 263991763
openQiYu(1);
}else{ }else{
this.$router.push('/login') this.$router.push('/login')
} }
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
import {getCopyrightAPI, getLinksAPI, updateLinksAPI, bulletinListAPI, getChatTimeAPI} from "@/API" import {getCopyrightAPI, getLinksAPI, updateLinksAPI, bulletinListAPI, getChatTimeAPI} from "@/API"
import {errorMsg} from "@/utils/errorMsg" import {errorMsg} from "@/utils/errorMsg"
import {uploadUrl} from "@/utils/global"; import {uploadUrl} from "@/utils/global";
import {openQiYu} from "@/utils/qiyuUtils";
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
export default { export default {
...@@ -121,12 +122,12 @@ ...@@ -121,12 +122,12 @@
}, },
/*售前*/ /*售前*/
beforeSale(){ beforeSale(){
ysf.open(); openQiYu();
}, },
/*售后*/ /*售后*/
afterSale(){ afterSale(){
if (Cookies.get('Y-Token')) { if (Cookies.get('Y-Token')) {
ysf.open(); openQiYu(1);
}else{ }else{
this.$router.push('/login') this.$router.push('/login')
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论