|
|
|
@ -612,6 +612,11 @@ Page({ |
|
|
|
const formattedCreatedAt = formatDateTime(createdAt); |
|
|
|
console.log('formattedCreatedAt:', formattedCreatedAt); |
|
|
|
|
|
|
|
// 格式化修改时间
|
|
|
|
const updatedAt = preloadedData?.updated_at || preloadedData?.updatedAt || product.updated_at || product.updatedAt; |
|
|
|
const formattedUpdatedAt = formatDateTime(updatedAt); |
|
|
|
console.log('formattedUpdatedAt:', formattedUpdatedAt); |
|
|
|
|
|
|
|
// 详细追踪地区信息
|
|
|
|
console.log('=== 地区信息详细追踪 ==='); |
|
|
|
console.log('预加载数据中的region:', preloadedData?.region); |
|
|
|
@ -713,6 +718,8 @@ Page({ |
|
|
|
weightQuantityData: weightQuantityData, |
|
|
|
// 格式化创建时间
|
|
|
|
formattedCreatedAt: formattedCreatedAt, |
|
|
|
// 格式化修改时间
|
|
|
|
formattedUpdatedAt: formattedUpdatedAt, |
|
|
|
// 创建者信息
|
|
|
|
creatorName: creatorName, |
|
|
|
// 地区信息(先设置,后面会被覆盖)
|
|
|
|
@ -724,7 +731,9 @@ Page({ |
|
|
|
label: product.label, |
|
|
|
creatorName: creatorName, |
|
|
|
formattedCreatedAt: formattedCreatedAt, |
|
|
|
formattedUpdatedAt: formattedUpdatedAt, |
|
|
|
created_at: createdAt, |
|
|
|
updated_at: updatedAt, |
|
|
|
// 添加产品包装字段(放在product之后,确保不被覆盖)
|
|
|
|
producting: product.producting || '', |
|
|
|
// 添加货源描述字段
|
|
|
|
|