|
|
@@ -41,13 +41,13 @@ |
|
|
|
<span class="img-icon"> |
|
|
|
<el-image |
|
|
|
v-if="checkFile(scope.row.housingImg, 'image')" |
|
|
|
:src="scope.row.housingImg" |
|
|
|
:preview-src-list="[scope.row.housingImg]" |
|
|
|
:src="formatTableImg(scope.row.housingImg)" |
|
|
|
:preview-src-list="[formatTableImg(scope.row.housingImg)]" |
|
|
|
></el-image> |
|
|
|
<video |
|
|
|
v-if="checkFile(scope.row.housingImg, 'video')" |
|
|
|
:src="scope.row.housingImg" |
|
|
|
@click="playVideo(scope.row.housingImg)" |
|
|
|
:src="formatTableImg(scope.row.housingImg)" |
|
|
|
@click="playVideo(formatTableImg(scope.row.housingImg))" |
|
|
|
></video> |
|
|
|
</span> |
|
|
|
</div> |
|
|
@@ -215,30 +215,6 @@ export default { |
|
|
|
}, |
|
|
|
], |
|
|
|
serverDetailList: [{}], |
|
|
|
// // 房源优势 |
|
|
|
// housingAdvantage: [ |
|
|
|
// { |
|
|
|
// label: "精装修", |
|
|
|
// style: { |
|
|
|
// "background-image": |
|
|
|
// "linear-gradient(135deg, #01d8ba 0%, #0086e7 100%)", |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// label: "面积大", |
|
|
|
// style: { |
|
|
|
// "background-image": |
|
|
|
// "linear-gradient(135deg, #afd801 0%, #00b4e7 100%)", |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// label: "享受税收优惠", |
|
|
|
// style: { |
|
|
|
// "background-image": |
|
|
|
// "linear-gradient(135deg, #8d6dff 0%, #5f24eb 100%)", |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
// ], |
|
|
|
|
|
|
|
// 视频预览 |
|
|
|
videoPreview: { |
|
|
@@ -294,6 +270,10 @@ export default { |
|
|
|
parseMarkdown(str) { |
|
|
|
return str ? parseMarkdown(str) : ""; |
|
|
|
}, |
|
|
|
formatTableImg(imgList) { |
|
|
|
let housingImg = imgList ? JSON.parse(imgList)[0] : ""; |
|
|
|
return formatImg(housingImg); |
|
|
|
}, |
|
|
|
formatImg(url) { |
|
|
|
return formatImg(url); |
|
|
|
}, |
|
|
@@ -307,6 +287,7 @@ export default { |
|
|
|
if (!fileValue) { |
|
|
|
return ""; |
|
|
|
} |
|
|
|
fileValue = JSON.parse(fileValue)[0]; |
|
|
|
let index = fileValue.indexOf("."); |
|
|
|
let fileValueSuffix = fileValue.substring(index); //截断"."之前的,得到后缀 |
|
|
|
if (type == "video") { |