Squashed commit of the following:

commit 2416eab34f
Author: jinhhanhan <1683105490@qq.com>
Date:   Fri Dec 5 17:12:14 2025 +0800

    chore:加了dify

commit c4f2cea1a9
Author: jinhhanhan <1683105490@qq.com>
Date:   Fri Dec 5 16:47:53 2025 +0800

    chore:加了智能体

commit 227ab42e5a
Author: jinhhanhan <1683105490@qq.com>
Date:   Thu Dec 4 14:27:46 2025 +0800

    chore:挂上了智能客服
This commit is contained in:
2025-12-10 15:21:32 +08:00
parent a0ddcd673d
commit 80c172ed77
4 changed files with 803 additions and 2263 deletions

View File

@@ -1,5 +1,4 @@
<template>
<<<<<<< HEAD
<!-- 悬浮按钮 -->
<view v-if="pageCount == 1 || need" class="fixed-box" :style="{ height: fixBtnShow ? '330rpx' : '120rpx' }">
<!-- AI智能助手 -->
@@ -23,26 +22,6 @@
<text class="iconfont icon-dianhua" v-if="!phoneimg"></text>
</view>
</view>
=======
<!-- 悬浮按钮 -->
<view v-if="pageCount == 1 || need" class="fixed-box" :style="{ height: fixBtnShow ? '120rpx' : '120rpx' }">
<!-- #ifdef MP-WEIXIN -->
<button
class="btn-item"
v-if="fixBtnShow"
hoverClass="none"
openType="contact"
sessionFrom="weapp"
showMessageCard="true"
:style="{backgroundImage:'url('+(kefuimg?kefuimg:'')+')',backgroundSize:'100% 100%'}"
>
<text class="icox icox-kefu" v-if="!kefuimg"></text>
</button>
<!-- #endif -->
<!-- 其他按钮AI 电话已隐藏 -->
</view>
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
</template>
<script>
@@ -60,15 +39,9 @@
return {
pageCount: 0,
fixBtnShow: true,
<<<<<<< HEAD
tel:'',
kefuimg:'',
phoneimg:''
=======
tel: '',
kefuimg: '',
phoneimg: ''
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
};
},
created() {
@@ -78,7 +51,6 @@
var that = this
uni.getStorage({
<<<<<<< HEAD
key:'shopInfo',
success(e){
that.tel = e.data.mobile
@@ -93,31 +65,12 @@
]),
aiAgentimg() {
return this.globalAIKefuConfig?.icon || this.$util.getDefaultImage().aiAgent || '' // AI智能助手的头像
=======
key: 'shopInfo',
success(e) {
that.tel = e.data.mobile
}
})
},
computed: {
...mapGetters([
'globalAIAgentConfig',
'aiUnreadCount'
]),
aiAgentimg() {
return this.globalAIAgentConfig?.icon || this.$util.getDefaultImage().aiAgent || ''
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
},
unreadCount() {
return this.aiUnreadCount
},
enableAIChat() {
<<<<<<< HEAD
return this.globalAIKefuConfig?.enable || true // 是否开启AI智能助手
=======
return this.globalAIAgentConfig?.enable || true
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
},
},
methods: {
@@ -125,7 +78,6 @@
'setAiUnreadCount'
]),
<<<<<<< HEAD
//拨打电话
call(){
uni.makePhoneCall({
@@ -134,29 +86,14 @@
},
// 打开AI聊天弹窗
=======
// 拨打电话(已无调用,可保留或删除)
call() {
uni.makePhoneCall({
phoneNumber: this.tel + ''
})
},
// 打开AI聊天已无调用可保留或删除
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
openAIChat() {
if (this.enableAIChat) {
this.setAiUnreadCount(0);
}
<<<<<<< HEAD
this.$util.redirectTo('/pages_tool/ai-chat/index')
}
=======
this.$util.redirectTo('/pages_tool/ai-chat/index')
}
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
}
};
</script>
@@ -200,10 +137,7 @@
.btn-item {
display: flex;
justify-content: center;
<<<<<<< HEAD
align-items: center; /* 新增:让🤖表情垂直居中 */
=======
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
text-align: center;
flex-direction: column;
line-height: 1;
@@ -229,21 +163,14 @@
transform: rotate(180deg);
}
<<<<<<< HEAD
&.switch {}
=======
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
&.icon-xiala {
margin: 0;
margin-top: 0.1rpx;
}
<<<<<<< HEAD
// 未读消息小红点
=======
// 未读消息小红点(已无使用,可保留样式)
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
.unread-badge {
position: absolute;
top: -5rpx;
@@ -267,7 +194,6 @@
// #endif
}
}
<<<<<<< HEAD
// AI图标样式优化让🤖表情居中显示
.ai-icon {
@@ -278,8 +204,6 @@
width: 100%;
height: 100%;
}
=======
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
}
}
</style>