Squashed commit of the following:
commit2416eab34fAuthor: jinhhanhan <1683105490@qq.com> Date: Fri Dec 5 17:12:14 2025 +0800 chore:加了dify commitc4f2cea1a9Author: jinhhanhan <1683105490@qq.com> Date: Fri Dec 5 16:47:53 2025 +0800 chore:加了智能体 commit227ab42e5aAuthor: jinhhanhan <1683105490@qq.com> Date: Thu Dec 4 14:27:46 2025 +0800 chore:挂上了智能客服
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<<<<<<< HEAD
|
||||
<!-- 悬浮按钮 -->
|
||||
<view v-if="pageCount == 1 || need" class="fixed-box" :style="{ height: fixBtnShow ? '330rpx' : '120rpx' }">
|
||||
<!-- AI智能助手 -->
|
||||
@@ -22,6 +23,26 @@
|
||||
<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>
|
||||
@@ -39,9 +60,15 @@
|
||||
return {
|
||||
pageCount: 0,
|
||||
fixBtnShow: true,
|
||||
<<<<<<< HEAD
|
||||
tel:'',
|
||||
kefuimg:'',
|
||||
phoneimg:''
|
||||
=======
|
||||
tel: '',
|
||||
kefuimg: '',
|
||||
phoneimg: ''
|
||||
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@@ -51,6 +78,7 @@
|
||||
|
||||
var that = this
|
||||
uni.getStorage({
|
||||
<<<<<<< HEAD
|
||||
key:'shopInfo',
|
||||
success(e){
|
||||
that.tel = e.data.mobile
|
||||
@@ -65,12 +93,31 @@
|
||||
]),
|
||||
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: {
|
||||
@@ -78,6 +125,7 @@
|
||||
'setAiUnreadCount'
|
||||
]),
|
||||
|
||||
<<<<<<< HEAD
|
||||
//拨打电话
|
||||
call(){
|
||||
uni.makePhoneCall({
|
||||
@@ -86,14 +134,29 @@
|
||||
},
|
||||
|
||||
// 打开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>
|
||||
@@ -137,7 +200,10 @@
|
||||
.btn-item {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
<<<<<<< HEAD
|
||||
align-items: center; /* 新增:让🤖表情垂直居中 */
|
||||
=======
|
||||
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
|
||||
text-align: center;
|
||||
flex-direction: column;
|
||||
line-height: 1;
|
||||
@@ -163,14 +229,21 @@
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
&.switch {}
|
||||
|
||||
=======
|
||||
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
|
||||
&.icon-xiala {
|
||||
margin: 0;
|
||||
margin-top: 0.1rpx;
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
// 未读消息小红点
|
||||
=======
|
||||
// 未读消息小红点(已无使用,可保留样式)
|
||||
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
|
||||
.unread-badge {
|
||||
position: absolute;
|
||||
top: -5rpx;
|
||||
@@ -194,6 +267,7 @@
|
||||
// #endif
|
||||
}
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
|
||||
// AI图标样式优化(让🤖表情居中显示)
|
||||
.ai-icon {
|
||||
@@ -204,6 +278,8 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
=======
|
||||
>>>>>>> 2416eab34fc318a92df6c2cb10784d90d6977aac
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user