提交 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);
}
......@@ -8,12 +8,12 @@
<span>
<router-link to="/personalCenter/personalHome" v-if="userInfoName"
target="_blank">您好!{{this.$store.state.userName == '' ? userInfoName : this.$store.state.userName}}</router-link>
<template v-else>
<template v-else>
您好!<router-link to="/login">请登录</router-link>
</template>
</span>
<i>/</i>
<span>
<span>
<!--<router-link to="/personalCenter/myOrder" v-if="username">我的订单</router-link>-->
<router-link to="/register" v-if="!userInfoName">免费注册</router-link>
</span>
......@@ -288,6 +288,7 @@
import {errorMsg} from "@/utils/errorMsg"
import Cookies from 'js-cookie';
import {uploadUrl} from "@/utils/global";
import {openQiYu} from "@/utils/qiyuUtils";
import {Message} from 'element-ui'
export default {
......@@ -320,7 +321,7 @@
},
ads: [],
displayall: false,
userInfoName: Cookies.get('loginName'),
userInfoName: Cookies.get('loginName'),
setSearchHistory: [],
routerCode: '',
titleMsg: {},
......@@ -674,14 +675,17 @@
window.open(val)
}
},
/*售前*/
beforeSale(){
ysf.open();
// 263994879
openQiYu();
},
/*售后*/
afterSale(){
if (Cookies.get('Y-Token')) {
ysf.open();
// 263991763
openQiYu(1);
}else{
this.$router.push('/login')
}
......
......@@ -64,6 +64,7 @@
import {getCopyrightAPI, getLinksAPI, updateLinksAPI, bulletinListAPI, getChatTimeAPI} from "@/API"
import {errorMsg} from "@/utils/errorMsg"
import {uploadUrl} from "@/utils/global";
import {openQiYu} from "@/utils/qiyuUtils";
import Cookies from 'js-cookie';
export default {
......@@ -121,12 +122,12 @@
},
/*售前*/
beforeSale(){
ysf.open();
openQiYu();
},
/*售后*/
afterSale(){
if (Cookies.get('Y-Token')) {
ysf.open();
openQiYu(1);
}else{
this.$router.push('/login')
}
......
......@@ -253,7 +253,7 @@
}
.clearfix .top20 .ziliaod .minjsdhbiox .bhocxx span{
display: flex;
align-items: center;
align-items: center;
}
</style>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论