diff --git a/.local.config.js b/.local.config.js index 0698142..5cf40f6 100644 --- a/.local.config.js +++ b/.local.config.js @@ -46,6 +46,10 @@ const localDevConfig = ({ uniacid: 100, domain: 'https://5g.aigc-quickapp.com/', }, -})['100']; // 选择要使用的环境配置 + '1': { + uniacid: 1, + domain: 'https://5g.aigc-quickapp.com/', + }, +})['1']; // 选择要使用的环境配置 export default localDevConfig; \ No newline at end of file diff --git a/pages_goods/detail.vue b/pages_goods/detail.vue index 8075e06..510460b 100644 --- a/pages_goods/detail.vue +++ b/pages_goods/detail.vue @@ -463,6 +463,7 @@ + @@ -553,6 +554,25 @@ export default { this.$refs.contactPopup.open(); }, + /** + * 跳转到智能客服页面 + */ + goToAIChat() { + const productInfo = { + goods_id: this.goodsSkuDetail.goods_id || '', + goods_name: this.goodsSkuDetail.goods_name || '', + price: this.goodsSkuDetail.discount_price || this.goodsSkuDetail.member_price || this.goodsSkuDetail.price || '', + image: this.goodsSkuDetail.sku_image || '', + category_id: this.goodsSkuDetail.category_id || '' + }; + + uni.setStorageSync('selectedProduct', productInfo); + + uni.navigateTo({ + url: '/pages_tool/ai-chat/index' + }); + }, + /** * 关闭联系电话弹窗 */