Files

98 lines
2.8 KiB
Vue
Raw Normal View History

2021-12-31 17:24:58 +08:00
<template>
2022-02-16 08:54:56 +08:00
<div class="webFooter">
<div class="wrap">
<el-row>
2022-02-22 10:53:40 +08:00
<el-col :span="4" v-for="(item, index) in state.list" :key="index">
<div class="tit">{{ item.title }}</div>
<p v-for="(item2, index2) in item.children" :key="index2">
<a :href="item2.link" target="_black">{{ item2.title }}</a>
</p>
2022-02-16 08:54:56 +08:00
</el-col>
<el-col :span="8">
<div class="tit">联系我们</div>
2022-02-22 10:53:40 +08:00
<p>
<a href="">客服电话{{ state.mobile }}</a>
</p>
<p>
<a href="">邮箱{{ state.email }}</a>
</p>
<p>
<a href="">地址{{ state.address }}</a>
</p>
2022-02-16 08:54:56 +08:00
</el-col>
<!-- <el-col :span="4" style="text-align: center;">
2022-01-04 14:11:59 +08:00
<div class="tit">二维码</div>
<p><img class="qrcode" src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fbpic.588ku.com%2Felement_origin_min_pic%2F01%2F39%2F53%2F71573cc4a35de96.jpg&refer=http%3A%2F%2Fbpic.588ku.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1643849770&t=80c12feeca42dad377bbdde1d6e78f33" alt=""></p>
</el-col>
<el-col :span="4" style="text-align: center;">
<div class="tit">二维码</div>
<p><img class="qrcode" src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fbpic.588ku.com%2Felement_origin_min_pic%2F01%2F39%2F53%2F71573cc4a35de96.jpg&refer=http%3A%2F%2Fbpic.588ku.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1643849770&t=80c12feeca42dad377bbdde1d6e78f33" alt=""></p>
2022-02-16 08:54:56 +08:00
</el-col> -->
</el-row>
2021-12-31 17:24:58 +08:00
</div>
2022-02-16 08:54:56 +08:00
</div>
2021-12-31 17:24:58 +08:00
</template>
<script setup lang="ts">
2022-02-22 10:53:40 +08:00
import request from "@/utils/request";
2021-12-31 17:24:58 +08:00
import { onMounted, reactive, watch } from "vue";
2022-02-22 10:53:40 +08:00
function navigation() {
return request({
url: "/v1/sys/navigation",
});
}
function config(params) {
return request({
url: "/v1/config",
params,
});
}
const state = reactive({
list: [],
mobile: "",
email: "",
address: "",
});
function getNavigation() {
navigation().then((res) => {
if (200 == res.code) {
state.list = res.data;
}
});
}
function getConfig() {
config({ key: "mobile,email,address" }).then((res) => {
state.mobile = res.data.mobile.value;
state.email = res.data.email.value;
state.address = res.data.address.value;
});
}
getNavigation();
getConfig();
2022-01-04 14:11:59 +08:00
</script>
<style lang="scss" scoped>
.webFooter {
2022-02-16 08:54:56 +08:00
background: #dee9ff;
2022-01-04 14:11:59 +08:00
}
.wrap {
2022-02-16 08:54:56 +08:00
width: 1000px;
margin: 0 auto;
padding: 100px 0;
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 500;
color: #333333;
.tit {
font-size: 16px;
2022-01-04 14:11:59 +08:00
font-family: Source Han Sans CN;
font-weight: 500;
color: #333333;
2022-02-16 08:54:56 +08:00
}
.qrcode {
width: 88px;
height: 88px;
}
2022-01-04 14:11:59 +08:00
}
</style>