From cfe83ada3804580a0e69fd6a811ace7b1975251e Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Sat, 25 Apr 2026 09:59:45 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E7=82=B9=E5=87=BB=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=88=86=E7=B1=BB=E4=B8=AD=E7=9A=84=E7=AB=8B=E5=8D=B3?= =?UTF-8?q?=E5=92=A8=E8=AF=A2=E4=B8=8D=E8=A6=81=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=AE=A2=E6=9C=8D=EF=BC=8C=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=88=B0=E8=B5=84=E6=BA=90=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components-diy/diy-category-item.vue | 18 ++++-------------- pages_goods/list.vue | 14 ++------------ 2 files changed, 6 insertions(+), 26 deletions(-) diff --git a/components-diy/diy-category-item.vue b/components-diy/diy-category-item.vue index f6efad0..70551f1 100644 --- a/components-diy/diy-category-item.vue +++ b/components-diy/diy-category-item.vue @@ -724,23 +724,13 @@ export default { } }, /** - * 发送商品信息到智能客服 + * 跳转到商品详情 * @param {Object} item 商品信息 */ sendToAIChat(item) { - const productInfo = { - goods_id: item.goods_id, - goods_name: item.goods_name, - price: this.showPrice(item), - image: this.goodsImg(item.goods_image), - category_id: item.category_id - } - - uni.setStorageSync('selectedProduct', productInfo) - - uni.navigateTo({ - url: '/pages_tool/ai-chat/index' - }) + this.$util.redirectTo('/pages_goods/detail', { + goods_id: item.goods_id + }); }, diyRedirectTo(link) { if (!link) return; diff --git a/pages_goods/list.vue b/pages_goods/list.vue index 07004bf..d5eb816 100644 --- a/pages_goods/list.vue +++ b/pages_goods/list.vue @@ -226,18 +226,8 @@ export default { mixins: [list], methods: { sendToAIChat(item) { - const productInfo = { - goods_id: item.goods_id, - goods_name: item.goods_name, - price: this.showPrice(item), - image: this.goodsImg(item.goods_image), - category_id: item.category_id - }; - - uni.setStorageSync('selectedProduct', productInfo); - - uni.navigateTo({ - url: '/pages_tool/ai-chat/index' + this.$util.redirectTo('/pages_goods/detail', { + goods_id: item.goods_id }); } }