1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
| <template>
| <div class="layout">
| <div class="flex-two">
| <div class="flex-item" @click="modelNavigateTo(res.list[0])">
| <u-image height="250rpx" width="100%" mode="scaleToFill" :src="res.list[0].img" alt>
| <u-loading slot="loading"></u-loading>
| </u-image>
| </div>
| <div class="flex-item" @click="modelNavigateTo(res.list[1])">
| <u-image height="250rpx" width="100%" mode="scaleToFill" :src="res.list[1].img" alt>
| <u-loading slot="loading"></u-loading>
| </u-image>
| </div>
| </div>
| </div>
| </template>
| <script>
| import '@/components/uview-components/uview-ui'
|
| import { modelNavigateTo } from "./tpl";
| export default {
| title: "两张横图",
| props: ["res"],
| mounted() {
|
| },
| data() {
| return {
| modelNavigateTo,
| };
| },
| };
| </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>
|
|