Tcsm
2023-05-23 c1a26beb08607034d45f0a31b5c88314a5909359
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
50
51
52
<template>
  <div class="app-container">
    <div class="wrapper">
      <div id="building">
 
      </div>
    </div>
  </div>
</template>
 
<script>
import {getRoot} from "@/api/root/index";
  export default {
    name: "index",
    data(){
      return{
        personInfos:[]
        }
    }
  ,
  mounted() {
        const id = this.$route.params && this.$route.params.id;
     this.getList(id);
  },
  methods:{
    getList(id)
    {
    //  alert(id)
      getRoot(id).then(response => {
        console.log(response.data)
        //这里是夫妻的信息,已经拿到了
        this.personInfos = response.data
    })
    }
  },
  }
</script>
 
<style>
.wrapper {
  /*背景图*/
  background: url("../../assets/images/Group 407.png");
  width: 100%;
  height: 100%;
  position: fixed;
  background-size: 100% 100%;
}
#building {
  /*设置透明度*/
  opacity: 0.75;
}
</style>