|
@@ -8,7 +8,7 @@
|
|
|
<view class="one">
|
|
|
<view class="one_1">
|
|
|
<view class="l">
|
|
|
- <image class="image" :src="specfileList.length>0?specfileList[0].url:goodsfileList[0].url" mode="aspectFill" @tap="diaView"></image>
|
|
|
+ <image class="image" :src="specfileList&&specfileList.length>0?specfileList[0].url:goodsfileList&&goodsfileList.length>0?goodsfileList[0].url:''" mode="aspectFill" @tap="diaView"></image>
|
|
|
</view>
|
|
|
<view class="r">
|
|
|
<view class="money">
|
|
@@ -223,11 +223,8 @@
|
|
|
deep: true,
|
|
|
immediate: true,
|
|
|
handler(val) {
|
|
|
- if (val && val.goods && val?.goods.length > 0) {
|
|
|
- this.$set(this, `goodsInfo`, val?.goods)
|
|
|
- if (val.goods && val.goods.file && val.goods.file.length > 0) {
|
|
|
- this.$set(this, `goodsfileList`, val.goods.file)
|
|
|
- }
|
|
|
+ if (val && val.goods && val.goods.file && val.goods.file.length > 0) {
|
|
|
+ this.$set(this, `goodsfileList`, val.goods.file)
|
|
|
}
|
|
|
if (val && val.act && val.act.length > 0) this.$set(this, `actList`, val?.act)
|
|
|
if (val && val.sets && val.sets.length > 0) this.$set(this, `setList`, val?.sets)
|