|
|
@@ -27,14 +27,23 @@ export default {
|
|
|
info: {
|
|
|
type: Object,
|
|
|
default: () => {}
|
|
|
- }
|
|
|
+ },
|
|
|
+ goodsStyleId:'',
|
|
|
},
|
|
|
data() {
|
|
|
return {}
|
|
|
},
|
|
|
computed: {
|
|
|
imgUrl() {
|
|
|
- if (this.$util.isEmpty(this.info)) return ''
|
|
|
+ if (this.$util.isEmpty(this.info)) return '';
|
|
|
+ let img = '';
|
|
|
+ this.info.goodsStyleList.forEach((ele)=>{
|
|
|
+ if(ele.id==this.goodsStyleId){
|
|
|
+ console.log(ele.img)
|
|
|
+ img = ele.img
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(!this.$util.isEmpty(img)) return img;
|
|
|
return this.info.smallCoverUrl ? this.info.smallCoverUrl : this.info.smallImgList[0]
|
|
|
}
|
|
|
},
|