Commit f6e501d7 authored by yaya's avatar yaya

feat:优化发布拍品图片展示

parent 574f63d3
...@@ -229,6 +229,9 @@ export default { ...@@ -229,6 +229,9 @@ export default {
if (!response.data.data.buyLimitNum || response.data.data.buyLimitNum === -1) { if (!response.data.data.buyLimitNum || response.data.data.buyLimitNum === -1) {
this.goods.buyLimitNum = 0 this.goods.buyLimitNum = 0
this.numType = -1 this.numType = -1
} else {
this.numType = 2
}
this.goods.images = response.data.data.images ? response.data.data.images.split(';') : [] this.goods.images = response.data.data.images ? response.data.data.images.split(';') : []
if (this.goods.images && this.goods.images.length > 0) { if (this.goods.images && this.goods.images.length > 0) {
for (var i = 0; i < this.goods.images.length; i++) { for (var i = 0; i < this.goods.images.length; i++) {
...@@ -237,9 +240,6 @@ export default { ...@@ -237,9 +240,6 @@ export default {
}) })
} }
} }
} else {
this.numType = 2
}
} }
}) })
.catch(response => { .catch(response => {
......
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