feat: 类型一数据联调

master
JINGYJ 2 days ago
parent de25003e02
commit b1f418906f

@ -8,16 +8,23 @@
--> -->
<template> <template>
<div class="type-first"> <div class="type-first">
<!-- <div class="type-first-top"> <div class="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4 type-first-mid">
<span></span> <span>递烟</span> <div class="type-first-mid-box" v-for="(item, index) in info" :key="index">
</div> -->
<div class="type-first-mid">
<div class="type-first-mid-box" v-for="(item, index) in info">
<div class="type-first-mid-box-video"> <div class="type-first-mid-box-video">
<img src="https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg" class="w-[100%] h-[100%]"/> <video
class="w-[100%] h-[100%]"
:src="item.video_url"
controls
></video>
</div> </div>
<div class="type-first-mid-box-text"> <div class="type-first-mid-box-text" v-if="title === '酒精度数'">
123123 <span>酒精度数:</span> <span style="font-weight: normal;">{{ item['酒精度数'] }}</span>
</div>
<div class="type-first-mid-box-text" v-else-if="title === ''">
<span>语音角色:</span> <span style="font-weight: normal;">{{ item['语音角色'] }}</span>
</div>
<div class="type-first-mid-box-text" v-else>
<span>关键帧:</span> <span v-for="item1 in item[`${title}时间`]" style="font-weight: normal;">{{ item1 }}</span>
</div> </div>
</div> </div>
</div> </div>
@ -52,13 +59,14 @@ const props = withDefaults(defineProps < Props > (), {
color: #1D2129; color: #1D2129;
} }
.type-first-mid { .type-first-mid {
display: flex; // display: flex;
justify-self: start; // justify-self: start;
justify-content: space-between; // justify-content: space-between;
align-content: space-between; // align-content: space-between;
flex-direction: row; // flex-direction: row;
flex-wrap: wrap; // flex-wrap: wrap;
height: 744px; height: 744px;
overflow-y: auto;
.type-first-mid-box { .type-first-mid-box {
box-sizing: border-box; box-sizing: border-box;
width: 348px; width: 348px;

@ -8,12 +8,16 @@
--> -->
<template> <template>
<div class="type-fourth"> <div class="type-fourth">
<div class="type-fourth-top"> <!-- <div class="type-fourth-top">
<span></span> <span>车牌识别</span> <span></span> <span>车牌识别</span>
</div> </div> -->
<div class="type-fourth-mid"> <div class="type-fourth-mid">
<div class="type-fourth-mid-video"> <div class="type-fourth-mid-video">
<img src="https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg" class="w-[100%] h-[100%]"/> <video
class="w-[720px] h-[100%]"
:src="info[0].video_url"
controls
></video>
</div> </div>
<div class="type-fourth-mid-tab"> <div class="type-fourth-mid-tab">
<el-button class="w-[76px] h-[32px!important]">全部</el-button> <el-button class="w-[76px] h-[32px!important]">全部</el-button>
@ -21,7 +25,7 @@
<el-button class="w-[76px] h-[32px!important]">车辆</el-button> <el-button class="w-[76px] h-[32px!important]">车辆</el-button>
<el-button class="w-[76px] h-[32px!important]">路灯</el-button> <el-button class="w-[76px] h-[32px!important]">路灯</el-button>
</div> </div>
<div class="type-fourth-mid-box"> <!-- <div class="type-fourth-mid-box">
<div class="type-fourth-mid-crad" v-for="(item, index) in 8"> <div class="type-fourth-mid-crad" v-for="(item, index) in 8">
<div class="type-fourth-mid-crad-image"> <div class="type-fourth-mid-crad-image">
<img src="https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg" class="w-[100%] h-[100%]"/> <img src="https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg" class="w-[100%] h-[100%]"/>
@ -30,15 +34,26 @@
123123 123123
</div> </div>
</div> </div>
</div> </div> -->
</div> </div>
<div class="type-fourth-bottom"></div> <div class="type-fourth-bottom"></div>
</div> </div>
</template> </template>
<script setup> <script lang="ts" setup>
defineOptions({ defineOptions({
name: "Type3CigaretteOfferWarp" name: "Type3CigaretteOfferWarp"
}); });
interface Props {
typeKey: String;
info: Record<string, any>;
title: String;
}
const props = withDefaults(defineProps<Props>(), {
typeKey: "3",
info: {},
title: String,
});
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.type-fourth { .type-fourth {

Loading…
Cancel
Save