lilishop-uniapp/pages/tabbar/home/template/tpl_flex_one.vue

37 lines
775 B
Vue
Raw Normal View History

2021-05-13 11:03:32 +08:00
<template>
<div class="layout">
2022-09-06 19:46:00 +08:00
<div class="flex-one">
2022-12-30 14:38:42 +08:00
<u-image v-if="res.list[0].zoneInfo == ''" @click="modelNavigateTo(res.list[0])" width="100%" mode="aspectFit" height="280rpx" :src="res.list[0].img" alt=""></u-image>
<hotzone v-else :res="res"></hotzone>
2021-05-13 11:03:32 +08:00
</div>
</div>
</template>
<script>
import { modelNavigateTo } from "./tpl";
2022-09-06 19:46:00 +08:00
import hotzone from "@/pages/tabbar/home/template/tpl_hot_zone.vue";
2021-05-13 11:03:32 +08:00
export default {
title: "单行图片模块",
2022-09-06 19:46:00 +08:00
components: {
hotzone,
},
2021-05-13 11:03:32 +08:00
data() {
return {
2022-10-26 16:28:23 +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>