diff --git a/pages/goods-detail/goods-detail.js b/pages/goods-detail/goods-detail.js
index b488fc0..c59b7d5 100644
--- a/pages/goods-detail/goods-detail.js
+++ b/pages/goods-detail/goods-detail.js
@@ -319,6 +319,8 @@ Page({
...product,
// 合并预加载数据中的字段
...(preloadedData || {}),
+ // 添加产品包装字段(放在product之后,确保不被覆盖)
+ producting: product.producting || '',
// 直接使用数据库字段名,确保与表结构完全一致,放在后面覆盖前面的值
product_contact: contactName,
contact_phone: contactPhone,
@@ -329,7 +331,8 @@ Page({
console.log('最终格式化后的数据:', {
product_contact: formattedGoods.product_contact,
contact_phone: formattedGoods.contact_phone,
- region: formattedGoods.region
+ region: formattedGoods.region,
+ producting: formattedGoods.producting
});
// 保存预加载数据中的isFavorite状态,确保是布尔值
diff --git a/pages/goods-detail/goods-detail.wxml b/pages/goods-detail/goods-detail.wxml
index 8bee961..cee2680 100644
--- a/pages/goods-detail/goods-detail.wxml
+++ b/pages/goods-detail/goods-detail.wxml
@@ -93,7 +93,7 @@
产品包装
- {{goodsDetail.displayGrossWeight || '暂无'}}
+ {{goodsDetail.producting || '暂无'}}