diff --git a/common/js/customer-service.js b/common/js/customer-service.js index ac49cf0..78d472e 100644 --- a/common/js/customer-service.js +++ b/common/js/customer-service.js @@ -2,6 +2,8 @@ * 客服统一处理服务 * 整合各种客服方式,提供统一的调用接口 */ +import IMAGE_CONFIG from './image-config.js'; + export class CustomerService { constructor(vueInstance, externalConfig = null) { this.vm = vueInstance; @@ -473,7 +475,7 @@ export class CustomerService { // 优先使用指定的智能客服头像 if (config?.type === 'aikefu' || config?.type === 'wxwork' || config?.type === 'qyweixin') { - return '/static/images/image_680328925892268.png'; + return this.vm.$util.img(IMAGE_CONFIG.aiAvatar); } return shopInfo.kefuimg || this.vm.$util?.getDefaultImage()?.kefu || ''; diff --git a/pages_goods/_components/goods-detail-view/goods-detail-view.vue b/pages_goods/_components/goods-detail-view/goods-detail-view.vue index d903f84..b16d6c4 100644 --- a/pages_goods/_components/goods-detail-view/goods-detail-view.vue +++ b/pages_goods/_components/goods-detail-view/goods-detail-view.vue @@ -4,7 +4,7 @@ - + @@ -463,6 +463,7 @@ // 商品详情视图 import scroll from '@/common/js/scroll-view.js'; import detail from './detail.js'; +import IMAGE_CONFIG from '@/common/js/image-config.js'; import pengpaiFadeinOut from '../pengpai-fadein-out/pengpai-fadein-out.vue'; @@ -479,6 +480,11 @@ export default { components: { pengpaiFadeinOut }, + computed: { + aiAvatarUrl() { + return this.$util.img(IMAGE_CONFIG.aiAvatar); + } + }, mixins: [scroll, detail] }; diff --git a/pages_tool/ai-chat/ai-chat-message.vue b/pages_tool/ai-chat/ai-chat-message.vue index 91dff58..185dddb 100644 --- a/pages_tool/ai-chat/ai-chat-message.vue +++ b/pages_tool/ai-chat/ai-chat-message.vue @@ -353,6 +353,7 @@