CS services back online

This commit is contained in:
Vion 2022-02-10 12:50:38 +08:00
parent 10d8a2a467
commit f8246016ce

View File

@ -56,22 +56,25 @@ export default {
methods:{ methods:{
...mapMutations(["checkIsLogin"]), ...mapMutations(["checkIsLogin"]),
lianxi(item,index){ lianxi(item,index){
this.checkIsLogin();
let user = this.$store.state.userInfo;
let curMemberId = (user?user.data.id:'');
if(item.title=='在线客服'){ if(item.title=='在线客服'){
this.customerServerStop = true; //this.customerServerStop = true;
/* Stop until 2022-2-10 /* Stop until 2022-2-10 */
var option = { var option = {
customer: {id: '', name: '', email: '', mobile: '', memberId: '999999'} customer: {id: '', name: '', email: '', mobile: '', memberId: curMemberId}
} }
dis_livchat(option); dis_livchat(option);
_hmt.push([ _hmt.push([
"_trackCustomEvent", "_trackCustomEvent",
"cs_consult", "live_chat",
{ {
"page_name_":this.$route.path, "type":"cs",
"shop_right_btn": 1, "member_id": curMemberId,
} }
]) ])
*/
} }
if(item.title=='购物车'){ if(item.title=='购物车'){
if(this.loginornot){ if(this.loginornot){
@ -85,22 +88,21 @@ export default {
} }
} }
if(item.title=='营养专家'){ if(item.title=='营养专家'){
this.customerServerStop = true; //this.customerServerStop = true;
/* Stop until 2022-2-10 /* Stop until 2022-2-10*/
var option = { var option = {
customer: {id: '', name: '', email: '', mobile: '', memberId: '999999'} customer: {id: '', name: '', email: '', mobile: '', memberId: curMemberId}
} }
dis_livchat(option); dis_livchat(option);
console.log(this.$route.path); console.log(this.$route.path);
_hmt.push([ _hmt.push([
"_trackCustomEvent", "_trackCustomEvent",
"sol_consult", "live_chat",
{ {
"page_name_":this.$route.path, "type":"sol",
"shop_right_btn": 1, "member_id": curMemberId,
} }
]) ])
*/
} }
}, },
toTop() { toTop() {