diff --git a/pages_goods/detail.vue b/pages_goods/detail.vue
index 80819cb..c7b4a88 100644
--- a/pages_goods/detail.vue
+++ b/pages_goods/detail.vue
@@ -460,11 +460,11 @@
-
+
-
+
@@ -514,6 +514,19 @@
+
+
+
+
+
@@ -537,23 +550,35 @@ export default {
* @param {Object} item 商品信息
*/
sendToAIChat(item) {
- const productInfo = {
- goods_id: item.goods_id || '',
- goods_name: item.goods_name || '',
- price: item.discount_price || item.member_price || item.price || '',
- image: item.sku_image || '',
- category_id: item.category_id || ''
- }
-
- uni.setStorageSync('selectedProduct', productInfo)
-
- uni.navigateTo({
- url: '/pages_tool/ai-chat/index'
- })
+ this.$refs.contactPopup.open();
+ },
+
+ /**
+ * 关闭联系电话弹窗
+ */
+ closeContactPopup() {
+ this.$refs.contactPopup.close();
+ },
+
+ /**
+ * 复制电话号码到剪切板
+ */
+ copyPhoneNumber() {
+ uni.setClipboardData({
+ data: '021-51815181',
+ success: () => {
+ uni.showToast({
+ title: '复制成功',
+ icon: 'success'
+ });
+ this.closeContactPopup();
+ }
+ });
}
}
};
+