chore:点击商品分类中的立即咨询不要跳转到智能客服,跳转到资源详情页面
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user