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