2021-05-13 11:03:32 +08:00
|
|
|
<template>
|
|
|
|
<div class="layout">
|
|
|
|
<div class="flex-two">
|
2021-05-18 16:29:34 +08:00
|
|
|
<div class="flex-item" @click="modelNavigateTo(res.list[0])">
|
2021-06-09 20:12:26 +08:00
|
|
|
<u-image height="250rpx" width="100%" mode="scaleToFill" :src="res.list[0].img" alt>
|
2021-05-13 11:03:32 +08:00
|
|
|
<u-loading slot="loading"></u-loading>
|
|
|
|
</u-image>
|
|
|
|
</div>
|
2021-05-18 16:29:34 +08:00
|
|
|
<div class="flex-item" @click="modelNavigateTo(res.list[1])">
|
2021-06-09 20:12:26 +08:00
|
|
|
<u-image height="250rpx" width="100%" mode="scaleToFill" :src="res.list[1].img" alt>
|
2021-05-13 11:03:32 +08:00
|
|
|
<u-loading slot="loading"></u-loading>
|
|
|
|
</u-image>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import uImage from "@/uview-ui/components/u-image/u-image.vue";
|
2021-05-18 16:29:34 +08:00
|
|
|
import { modelNavigateTo } from "./tpl";
|
2021-05-13 11:03:32 +08:00
|
|
|
export default {
|
|
|
|
components: { uImage },
|
|
|
|
title: "两张横图",
|
|
|
|
props: ["res"],
|
|
|
|
mounted() {
|
2021-05-17 18:19:26 +08:00
|
|
|
|
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
|
|
|
};
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import "./tpl.scss";
|
|
|
|
.flex-two {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.flex-item {
|
|
|
|
width: 50%;
|
|
|
|
> img {
|
|
|
|
display: block;
|
|
|
|
max-width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|