2021-05-13 11:03:32 +08:00
|
|
|
<template>
|
|
|
|
<div class="layout">
|
2021-05-18 16:29:34 +08:00
|
|
|
<div class="flex-one" @click="modelNavigateTo(res.list[0])">
|
2021-05-13 11:03:32 +08:00
|
|
|
<u-image width="100%" height="280rpx" :src="res.list[0].img" alt=""></u-image>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
2021-05-18 16:29:34 +08:00
|
|
|
import { modelNavigateTo } from "./tpl";
|
2021-05-13 11:03:32 +08:00
|
|
|
|
|
|
|
export default {
|
2021-05-24 15:49:22 +08:00
|
|
|
title:"单行图片模块",
|
2021-05-13 11:03:32 +08:00
|
|
|
data() {
|
|
|
|
return {
|
2021-05-18 16:29:34 +08:00
|
|
|
modelNavigateTo,
|
2021-05-13 11:03:32 +08:00
|
|
|
};
|
|
|
|
},
|
|
|
|
props: ["res"],
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import "./tpl.scss";
|
|
|
|
.flex-one {
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
> img {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|