|
@@ -4,9 +4,9 @@
|
|
|
<el-tag style="margin-left: 15px" size="small" >{{selectProduct.brandname}}</el-tag>
|
|
|
<div class="product-detail container flex-align-stretch" style="width: 100%;flex-wrap:nowrap">
|
|
|
<div>
|
|
|
- <el-image style="width:400px;height:400px;margin-right:30px" :src="actImage?actImage.url:''" fit="cover" />
|
|
|
+ <el-image style="width:400px;height:400px;margin-right:30px" :src="actImage?actImage.url:''" fit="cover" />
|
|
|
<div class="flex-align-stretch column">
|
|
|
- <el-image class="thumImage mt-10" :class="item.attachmentid === actImage.attachmentid?'act':''" v-for="item in selectProduct.attinfos" :key="item.index" :src="item.url" @click="actImage = item" fit="cover" />
|
|
|
+ <el-image class="thumImage mt-10" :class="item.attachmentid === actImage.attachmentid?'act':''" v-for="item in selectProduct.attinfos" :key="item.index" :src="item.url" @click="actImage = item" fit="cover" />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -27,7 +27,7 @@
|
|
|
<p class="normal-margin">标准: {{selectProduct.standards || '--'}}</p>
|
|
|
</div>
|
|
|
<div v-if="selectProduct.itemextend">
|
|
|
- <p class="normal-margin">材质: {{selectProduct.itemextend.length? selectProduct.itemextend[0].material :'--'}}</p>
|
|
|
+ <p class="normal-margin">材质: {{selectProduct.itemextend.length? selectProduct.itemextend[0].material?selectProduct.itemextend[0].material:'--' :'--'}}</p>
|
|
|
</div>
|
|
|
<div class="flex-align-center" style="margin-bottom:30px">
|
|
|
<p>数量: </p>
|
|
@@ -50,7 +50,7 @@
|
|
|
<div class="content normal-margin" style="max-height:300px;width:850px;overflow-y:scroll;">
|
|
|
<!-- <p class="inline-16">更多:</p>-->
|
|
|
<el-tag class="inline-16" style="margin-top: 5px;margin-bottom: 5px;width: 120px" @click="typeClick(item)" v-for="(item,index) in detail" :key="index" size="small" :effect="selectProduct.itemno == item.itemno ? 'dark' : 'plain'">
|
|
|
- {{item.spec.length >14?item.spec.substring(0,13)+'...':item.spec}}
|
|
|
+ {{item.spec?item.spec.length >14?item.spec.substring(0,13)+'...':item.spec:item.spec}}
|
|
|
</el-tag>
|
|
|
<!-- <span style="color: #4f7bfd;width: 100px" @click="typeClick(item)" v-for="(item,index) in detail" :key="index">
|
|
|
{{item.model}}
|
|
@@ -153,13 +153,13 @@ export default {
|
|
|
"sa_itemgroupid": this.$route.query.id
|
|
|
}
|
|
|
})
|
|
|
- console.log(res.data.itemextend)
|
|
|
+ res.code === 0 ?this.$message.error(res.msg): console.log(res.data.itemextend)
|
|
|
|
|
|
this.detail = res.data
|
|
|
this.selectProduct = this.detail ? this.detail[0] : ''
|
|
|
- this.actImage = this.detail ? this.detail[0].attinfos[0] : {}
|
|
|
+ this.actImage = this.detail ? this.detail[0].attinfos ? this.detail[0].attinfos[0]:{} : {}
|
|
|
this.tradefield = this.detail ? this.detail[0].tradefield : []
|
|
|
- this.actTradefield = this.detail[0].tradefield[0].tradefield
|
|
|
+ this.actTradefield = this.detail?this.detail[0].tradefield?this.detail[0].tradefield[0]:'':''
|
|
|
|
|
|
},
|
|
|
countChange (num) {
|