Commit 2f33b2d6 authored by yaya's avatar yaya

feat:修改钱币列表展示

parent a4b1b9cb
......@@ -166,6 +166,11 @@ export default {
this.categoryIds = response.data.data.categoryIds
this.itemImages = []
if (this.goods.topImage && this.goods.images.indexOf(this.goods.topImage) === -1) {
this.itemImages.push({
url: this.goods.topImage
})
}
for (var i = 0; i < this.goods.images.length; i++) {
this.itemImages.push({
url: this.goods.images[i]
......
......@@ -137,7 +137,7 @@ export default {
this.list = (response.data.data.items || []).map((e, index) => {
return {
...e,
imageList: e.topImage ? [e.topImage].concat(e.images) : e.images
imageList: e.topImage && e.images.indexOf(e.topImage) === -1 ? [e.topImage].concat(e.images) : e.images
}
})
this.total = response.data.data.total
......
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