chore:改了企业微信客服,智能客服的悬浮按钮

This commit is contained in:
2026-02-06 17:18:58 +08:00
parent 6d23a64aef
commit a489e24988
2 changed files with 31 additions and 2 deletions

View File

@@ -30,7 +30,9 @@
@click="handleUnifiedKefuClick"
:style="{ backgroundImage: currentKefuImg ? `url(${currentKefuImg})` : '', backgroundSize: '100% 100%' }"
>
<text class="icox icox-kefu" v-if="!kefuimg"></text>
<text class="ai-icon" v-if="isAIKefu && !currentKefuImg">🤖</text>
<text class="ai-icon" v-if="isWxworkKefu && !currentKefuImg">💬</text>
<text class="icox icox-kefu" v-if="!isAIKefu && !isWxworkKefu && !kefuimg"></text>
</view>
<!-- 智能客服按钮(当同时显示小程序系统客服时)-->
@@ -40,7 +42,8 @@
@click="handleUnifiedKefuClick"
:style="{ backgroundImage: currentKefuImg ? `url(${currentKefuImg})` : '', backgroundSize: '100% 100%' }"
>
<text class="ai-icon" v-if="!currentKefuImg">🤖</text>
<text class="ai-icon" v-if="isAIKefu && !currentKefuImg">🤖</text>
<text class="ai-icon" v-if="isWxworkKefu && !currentKefuImg">💬</text>
</view>
<!-- 小程序系统客服按钮 -->
@@ -127,6 +130,14 @@ export default {
const customerService = createCustomerService(this);
return customerService.isWeappOfficialKefu();
},
isAIKefu() {
const customerService = createCustomerService(this);
return customerService.isAIKefu();
},
isWxworkKefu() {
const customerService = createCustomerService(this);
return customerService.isWxworkKefu();
},
showWeappSystemKefu() {
const customerService = createCustomerService(this);
return customerService.shouldShowExtraWeappSystemKefu();