|
@@ -44,8 +44,8 @@
|
|
<el-col v-if="info.type == '4' || info.type == '5'">
|
|
<el-col v-if="info.type == '4' || info.type == '5'">
|
|
<el-col :span="24" v-for="(item, index) in list" :key="index">
|
|
<el-col :span="24" v-for="(item, index) in list" :key="index">
|
|
<el-col :span="24" class="goods bode">
|
|
<el-col :span="24" class="goods bode">
|
|
- <el-col :span="6" v-if="item.goods.file"><el-image :src="item.goods.file[0].url"></el-image></el-col>
|
|
|
|
- <el-col :span="6" v-else-if="item.url"><el-image :src="item.url"></el-image></el-col>
|
|
|
|
|
|
+ <el-col :span="6" v-if="item.goods.file"><el-image class="image" :src="item.goods.file[0].url"></el-image></el-col>
|
|
|
|
+ <el-col :span="6" v-else-if="item.url"><el-image class="image" :src="item.url"></el-image></el-col>
|
|
<el-col :span="18">
|
|
<el-col :span="18">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-col>
|
|
<el-col>
|
|
@@ -221,7 +221,8 @@ export default {
|
|
else if (res.data.type == '1' || res.data.type == '2' || res.data.type == '3') {
|
|
else if (res.data.type == '1' || res.data.type == '2' || res.data.type == '3') {
|
|
if (res.data.transport) this.$set(this, `transport`, res.data.transport);
|
|
if (res.data.transport) this.$set(this, `transport`, res.data.transport);
|
|
// 图片
|
|
// 图片
|
|
- if (res.data.goods.goods.file) this.$set(this, `file`, res.data.goods.goods.file[0].url);
|
|
|
|
|
|
+ if (res.data.goods.file && res.data.goods.file.length != 0) this.$set(this, `file`, res.data.goods.file[0].url);
|
|
|
|
+ else if (res.data.goods.goods.file) this.$set(this, `file`, res.data.goods.goods.file[0].url);
|
|
else this.$set(this, `file`, res.data.goods.url);
|
|
else this.$set(this, `file`, res.data.goods.url);
|
|
// 商品
|
|
// 商品
|
|
this.$set(this, `goods`, res.data.goods.goods);
|
|
this.$set(this, `goods`, res.data.goods.goods);
|