王饶冀 3 лет назад
Родитель
Сommit
ae5461f018

+ 1
- 1
digital-park-web/digital-park/src/views/investment-service/InvestmentServiceList/components/PropertyManage.vue Просмотреть файл

<span>支付方式:{{ item.payment.housingArea }}</span>| <span>支付方式:{{ item.payment.housingArea }}</span>|
<span>{{ item.type }}</span> <span>{{ item.type }}</span>
</div> </div>
<div class="main-advantageList">
<div class="main-advantageList" :title="item.advantageList.join('、')">
<span <span
class="item-span" class="item-span"
v-for="(advantage,advantageInx) of item.advantageList" v-for="(advantage,advantageInx) of item.advantageList"

+ 9
- 28
digital-park-web/digital-park/src/views/investment-service/property-detail/PropertyDetail.vue Просмотреть файл

<span class="img-icon"> <span class="img-icon">
<el-image <el-image
v-if="checkFile(scope.row.housingImg, '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> ></el-image>
<video <video
v-if="checkFile(scope.row.housingImg, '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> ></video>
</span> </span>
</div> </div>
}, },
], ],
serverDetailList: [{}], 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: { videoPreview: {
parseMarkdown(str) { parseMarkdown(str) {
return str ? parseMarkdown(str) : ""; return str ? parseMarkdown(str) : "";
}, },
formatTableImg(imgList) {
let housingImg = imgList ? JSON.parse(imgList)[0] : "";
return formatImg(housingImg);
},
formatImg(url) { formatImg(url) {
return formatImg(url); return formatImg(url);
}, },
if (!fileValue) { if (!fileValue) {
return ""; return "";
} }
fileValue = JSON.parse(fileValue)[0];
let index = fileValue.indexOf("."); let index = fileValue.indexOf(".");
let fileValueSuffix = fileValue.substring(index); //截断"."之前的,得到后缀 let fileValueSuffix = fileValue.substring(index); //截断"."之前的,得到后缀
if (type == "video") { if (type == "video") {

Загрузка…
Отмена
Сохранить