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
| <template>
| <div class="layout">
| <div class="hot-area">
| <!-- <img :src="res.list[0].img" alt="" /> -->
| <hotzone @change="changeHotzone" :zonesInit="res.zoneInfo" :image="res.list[0].img"></hotzone>
| </div>
| </div>
| </template>
| <script>
| import hotzone from "@/components/hotzone";
|
| export default {
| components: {
| hotzone,
| },
| props: ["res"],
| methods: {
| changeHotzone(info) {
| console.log(info);
| console.log(this.res);
| this.res.zoneInfo = info;
| // this.$emit("change", res);
| },
| },
| };
| </script>
| <style lang="scss" scoped>
| @import "./tpl.scss";
| .hot-area {
| width: 100%;
| display: block;
| overflow: hidden;
| > img {
| width: 300px;
| height: 500px;
| }
| }
| </style>
|
|