Bottom.vue
955 字节
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
53
54
55
56
<template>
<div class="wrap">
<div class="main layout align_center justify_center">
<p class="address">地址:{{address}}</p>
<p class="sn">备案号:{{beian}} ©版权所有:{{banquan}}</p>
</div>
</div>
</template>
<script>
import { post } from "@/api/http";
export default {
name: "bottom",
data() {
return {
address: "",
beian: "",
banquan: ""
};
},
methods: {
// 底部信息
footerData() {
let url = "/api/common/footer_data";
post(url).then(res => {
this.address = res.address;
this.beian = res.beian;
this.banquan = res.banquan;
});
}
},
mounted() {
this.footerData();
}
};
</script>
<style scoped>
.wrap {
width: 100%;
background-color: #fff;
}
.main {
height: 79px;
width: 1200px;
margin: 0 auto;
font-size: 12px;
}
.address {
color: #5b5e63;
}
.sn {
color: #bdc4ce;
margin-left: 65px;
}
</style>