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 b16d6c4..3ab7908 100644 --- a/pages_goods/_components/goods-detail-view/goods-detail-view.vue +++ b/pages_goods/_components/goods-detail-view/goods-detail-view.vue @@ -3,7 +3,7 @@ - + @@ -464,6 +464,7 @@ import scroll from '@/common/js/scroll-view.js'; import detail from './detail.js'; import IMAGE_CONFIG from '@/common/js/image-config.js'; +import { createCustomerService } from '@/common/js/customer-service.js'; import pengpaiFadeinOut from '../pengpai-fadein-out/pengpai-fadein-out.vue'; @@ -483,6 +484,10 @@ export default { computed: { aiAvatarUrl() { return this.$util.img(IMAGE_CONFIG.aiAvatar); + }, + showAIChatBtn() { + const customerService = createCustomerService(this); + return customerService.hasValidKefuConfig() && customerService.isAIKefu(); } }, mixins: [scroll, detail]