Commit 9406c2a6 by linjinhong

fix:修改问题

parent 870721fc
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
v-for="img in row.previewImgs" v-for="img in row.previewImgs"
:key="img" :key="img"
@click="handleCurrentChange(img.url)" @click="handleCurrentChange(img.url)"
style="cursor: pointer; margin-right: 5px" style="cursor: pointer; margin-right: 5px; flex: 1"
> >
<img v-if="img.url" :src="img.url" alt="" /> <img v-if="img.url" :src="img.url" alt="" />
</div> </div>
...@@ -388,6 +388,16 @@ watch( ...@@ -388,6 +388,16 @@ watch(
}, },
{ deep: true }, { deep: true },
) )
watch(
() => podOrderDetailsData.value,
(val) => {
if (val && val.productList?.length)
val.productList.forEach((el) => {
if (!el.previewImgs) el.previewImgs = JSON.parse(el.imageAry)
})
},
{ deep: true },
)
const podBoxIndex = computed(() => orderStore.podBoxIndex) const podBoxIndex = computed(() => orderStore.podBoxIndex)
...@@ -666,6 +676,7 @@ const initOrderDetailBox = async () => { ...@@ -666,6 +676,7 @@ const initOrderDetailBox = async () => {
} }
return item return item
}) })
console.log(669, podOrderDetailsData.value)
podOrderDetailsData.value = podOrderDetailsData.value =
boxList.find((item) => item.data)?.data || undefined boxList.find((item) => item.data)?.data || undefined
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment