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