Gathering detailed insights and metrics for @tencentcloud/tui-customer-service-plugin-vue
Gathering detailed insights and metrics for @tencentcloud/tui-customer-service-plugin-vue
Gathering detailed insights and metrics for @tencentcloud/tui-customer-service-plugin-vue
Gathering detailed insights and metrics for @tencentcloud/tui-customer-service-plugin-vue
npm install @tencentcloud/tui-customer-service-plugin-vue
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
24
3
tui-customer-service-plugin 是基于 uikit 的客服插件,专为企业客服人员设计,用于为客户提供咨询解答服务。它具备丰富的功能,如消息快速回复、自动回复、访客信息查看、营销数据分析、客户管理等,并且支持多渠道接入,可以实现多样化集成。 在电商行业中,客服插件的功能更加贴合电商行业的特点,例如购物车信息互通、链接自动识别、多店铺管理等功能。它具有以下优势:
集成 @tencentcloud/chat-uikit-vue ≥ 2.3.3 或@tencentcloud/chat-uikit-uniapp ≥ 2.3.3
如未集成,请务必先根据 Vue2 版本 TUIKit 快速集成指引、Vue3 版本 TUIKit 快速集成指引 或 uniapp 版本 TUIKit 快速集成指引 进行集成。
如已集成,请务必升级版本 ≥ 2.3.3
已集成 @tencentcloud/chat-uikit-vue ≥ 2.3.3 / @tencentcloud/chat-uikit-uniapp ≥ 2.3.3 请忽略此步骤。 如未集成,首先请您跟随指引 Vue2 版本 TUIKit 快速集成指引、Vue3 版本 TUIKit 快速集成指引 或 uniapp 版本 TUIKit 快速集成指引的集成。 TUIKit Demo 登录成功后,如果您已经开通了客服插件,可以直接体验 Demo 的客服号 “线上商城”和 “线上医疗问诊”。
如果您需要创建属于自己的客服号,可以参见后续步骤操作。
请单击 插件市场 > 客服插件 免费试用或购买插件。详情请参见:插件市场 > 概述与开通指引。
!注意:
每个插件限免费试用 1 次,有效期 7 天,试用结束后将停服,请提前购买。
通过 npm 方式下载 客服插件,为了方便您后续的拓展,建议您将客服插件复制到自己工程的目录下: 下面的复制代码为按照chat-demo 设置的路径。请按照自己的项目文件按需修改。
需要将 tui-customer-service-plugin-vue
复制到与 TUIKit
同级。
1// macos 2npm i @tencentcloud/tui-customer-service-plugin-vue 3rsync -av --exclude={'node_modules','package.json','excluded-list.txt','srcipt'} ./node_modules/@tencentcloud/tui-customer-service-plugin-vue ./src 4// windows 5npm i @tencentcloud/tui-customer-service-plugin-vue 6xcopy .\node_modules\@tencentcloud\tui-customer-service-plugin-vue .\src /i /e /exclude:.\node_modules\@tencentcloud\tui-customer-service-plugin-vue\excluded-list.txt
需要将 tui-customer-service-plugin-vue
复制到 TUIKit
内部,为TUIKit/tui-customer-service-plugin-uniapp
。
1// macos 2npm i @tencentcloud/tui-customer-service-plugin-uniapp 3rsync -av --exclude={'node_modules','package.json','excluded-list.txt','script'} ./node_modules/@tencentcloud/tui-customer-service-plugin-uniapp ./TUIKit 4// windows 5npm i @tencentcloud/tui-customer-service-plugin-uniapp 6xcopy .\node_modules\@tencentcloud\tui-customer-service-plugin-uniapp .\TUIKit\tui-customer-service-plugin /i /e /exclude:.\node_modules\@tencentcloud\tui-customer-service-plugin-uniapp\excluded-list.txt
@customer_service_account
。1TUIStore.update(StoreName.CUSTOM, "customerServiceAccounts", []); 2如: 3TUIStore.update(StoreName.CUSTOM, "customerServiceAccounts", ['@customer_service_account']);
1const isCustomerChat = () => {
2 const customerServiceAccounts = TUIStore.getData(
3 StoreName.CUSTOM,
4 "customerServiceAccounts"
5 );
6 if (Array.isArray(customerServiceAccounts) && currentConversationID.value != undefined)
7 return customerServiceAccounts.includes(
8 currentConversationID.value.replace("C2C", ""));
9}
1原: 2<div :class="['tui-chat', !isPC && 'tui-chat-h5']"> 3修改为: 4 <CustomerServiceChat 5 style="height: 100%" 6 v-if="isCustomerChat()" 7 /> 8<div v-else :class="['tui-chat', !isPC && 'tui-chat-h5']">
1//vue 2import {CustomerServiceChat} from '../../../tui-customer-service-plugin-vue'; 3//uniapp 4import CustomerServiceChat from '../../tui-customer-service-plugin-uniapp/components/CustomerServiceChat/index-uniapp.vue';
1if(isCustomerChat()) return;
详见: 在线客服插件
No vulnerabilities found.
No security vulnerabilities found.