济菏高速业务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
2.0 KiB

1 year ago
<template>
<div class="DescCard">
1 year ago
<span class="time">{{ data.time }}</span>
<div class="info">
<img src="./images/avatar.svg" />
<span class="name">{{ data.name }}</span>
<span class="posts">{{ data.posts }}</span>
</div>
12 months ago
<div class="desc" v-if="data.processId">节点{{ data.processName }}</div>
<img
v-if="
data.type == 'bmp' ||
data.type == 'jpg' ||
data.type == 'jpeg' ||
data.type == 'png'
"
:src="data.url"
/>
{{ data.url }}
<video
v-if="data.type == 'mp4' || data.type == 'avi' || data.type == 'xmvb'"
:src="data.url"
>
<!-- <source :src="data.desc" /> -->
</video>
<!-- <div class="desc">{{ data.desc }}</div> -->
12 months ago
<div v-if="data.type == 'text'" class="desc" v-html="data.desc" />
1 year ago
</div>
</template>
<script>
12 months ago
import Video from "@screen/components/VideoMulti";
1 year ago
export default {
name: "DescCard",
1 year ago
props: {
data: {
type: Object,
default: () => ({}),
},
},
12 months ago
watch: {
"data.type": {
handler(newValue, oldValue) {
if (newValue != "text") {
this.data.url = process.env.VUE_APP_BASE_API + this.data.desc;
console.log("this.data.url", this.data.url);
}
},
deep: true,
immediate: true,
},
},
components: {
Video,
},
};
1 year ago
</script>
<style lang="scss" scoped>
1 year ago
.DescCard {
font-size: 14px;
// font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #ffffff;
1 year ago
line-height: 16px;
// -webkit-background-clip: text;
// -webkit-text-fill-color: transparent;
display: flex;
flex-direction: column;
gap: 6px;
background: #0d5f79;
1 year ago
border-radius: 6px 6px 6px 6px;
opacity: 1;
border: 1px solid #00b3cc;
1 year ago
padding: 9px 15px;
.time {
}
1 year ago
.info {
display: flex;
gap: 9px;
align-items: center;
.name {
font-size: 16px;
font-weight: 500;
line-height: 19px;
}
.posts {
}
1 year ago
}
.desc {
font-size: 16px;
line-height: 19px;
}
}
</style>