You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
913 B
40 lines
913 B
export default {
|
|
data() {
|
|
return {
|
|
chatOptions: {
|
|
popup: true,
|
|
show: false,
|
|
goodsId: "",
|
|
orderId: "",
|
|
isReturen: 0
|
|
}
|
|
};
|
|
},
|
|
created() {
|
|
this.chatOptions.goodsId = this.$route.params.id || this.$route.query.productId || '';
|
|
this.chatOptions.orderId = this.$route.query.orderId || '';
|
|
this.chatOptions.isReturen = this.$route.query.isReturen || 0
|
|
},
|
|
methods: {
|
|
chatOpen() {
|
|
const { href } = this.$router.resolve({
|
|
name: `AppChat`
|
|
});
|
|
window.open(href, "_blank");
|
|
},
|
|
chatShow() {
|
|
this.chatOptions.show = true;
|
|
this.$cookies.set('unreadKefu',0);
|
|
this.$store.commit('unreadKefu', 0);
|
|
},
|
|
chatClose() {
|
|
this.chatOptions.show = false;
|
|
},
|
|
socketOpen() {
|
|
console.log("socketOpen");
|
|
},
|
|
socketError() {
|
|
console.error("socketError");
|
|
}
|
|
}
|
|
};
|
|
|