Files

316 lines
8.5 KiB
Vue
Raw Normal View History

2022-10-01 09:12:01 +08:00
<template>
<div class="webFooter">
<div class="wrap">
2022-11-17 17:29:47 +08:00
<el-row type="flex" justify="center" :gutter="100">
<el-col :span="6" v-for="item in state.list" :key="item.id">
2022-10-01 09:12:01 +08:00
<div class="tit">{{ item.title }}</div>
2022-11-17 17:29:47 +08:00
<p v-for="subItem in item.children" :key="subItem.id">
<a :href="`${subItem.link}`" target="_black">{{ subItem.title }}</a>
</p>
</el-col>
<!-- <el-col :span="4">
<div class="tit">创新服务</div>
<p v-for="(item, index2) in state.list[1].children" :key="index2">
<a :href="item.link" target="_black">{{ item.title }}</a>
2022-10-01 09:12:01 +08:00
</p>
2022-10-13 17:42:32 +08:00
</el-col>
2022-10-01 09:12:01 +08:00
<el-col :span="8">
<div class="tit">联系我们</div>
<p>
2022-10-27 13:39:36 +08:00
<a :href="`tel:${state.mobile}`">客服电话{{ state.mobile }}</a>
2022-10-01 09:12:01 +08:00
</p>
<p>
2022-10-27 13:39:36 +08:00
<a :href="`mailto:${state.email}`">邮箱{{ state.email }}</a>
2022-10-01 09:12:01 +08:00
</p>
<p>
<a href="">地址{{ state.address }}</a>
</p>
2022-11-17 17:29:47 +08:00
</el-col> -->
2022-10-13 17:42:32 +08:00
<!-- <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>
</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>
</el-col> -->
2022-10-01 09:12:01 +08:00
</el-row>
<div class="icp-beian">
<el-link type="primary" href="https://beian.miit.gov.cn/"
>皖ICP备18001784号</el-link
>
</div>
</div>
</div>
</template>
2022-10-13 17:42:32 +08:00
<script setup>
import request from "@/utils/request";
import { onMounted, reactive, watch } from "vue";
2022-11-17 17:29:47 +08:00
import { getCategory } from "@/api/website/solution";
2022-10-01 09:12:01 +08:00
2022-10-13 17:42:32 +08:00
function navigation() {
return request({
url: "/v1/sys/navigation",
});
}
function config(params) {
return request({
url: "/v1/config",
params,
});
}
2022-10-01 09:12:01 +08:00
const state = reactive({
list: [],
mobile: "",
email: "",
address: "",
});
2022-10-13 17:42:32 +08:00
function getNavigation() {
// navigation().then((res) => {
// if (200 == res.code) {
// state.list = res.data;
// }
// });
const res = {
2022-11-17 17:29:47 +08:00
msg: "操作成功",
2022-10-13 17:42:32 +08:00
code: 200,
data: [
{
2022-11-17 17:29:47 +08:00
id: 21,
tenantId: 3,
parentId: 0,
title: "创新服务",
2022-10-13 17:42:32 +08:00
link: "/",
2022-11-17 17:29:47 +08:00
targetFlag: "0",
sort: 0,
status: "1",
createTime: "2022-02-21 14:03:28",
updateTime: "2022-02-21 14:03:28",
2022-10-13 17:42:32 +08:00
children: [
{
2022-11-17 17:29:47 +08:00
id: 22,
tenantId: 1,
parentId: 21,
title: "中科院设备共享平台",
link: "http://samp.cas.cn",
targetFlag: "0",
sort: 0,
status: "1",
createTime: "2022-02-21 14:03:47",
updateTime: "2022-02-21 14:03:47",
children: [],
},
{
id: 23,
tenantId: 1,
parentId: 21,
title: "中科院文献情报中心",
link: "https://www.las.ac.cn",
targetFlag: "0",
sort: 0,
status: "1",
createTime: "2022-02-21 14:04:52",
updateTime: "2022-02-21 14:04:52",
children: [],
},
{
id: 25,
tenantId: 1,
parentId: 21,
title: "中国科学院",
link: "https://www.cas.cn",
targetFlag: "0",
sort: 0,
status: "1",
createTime: "2022-02-21 14:05:59",
updateTime: "2022-02-21 14:05:59",
children: [],
},
{
id: 26,
tenantId: 1,
parentId: 21,
title: "中科院重庆院合肥分院",
link: "http://www.caszl.cn",
targetFlag: "0",
sort: 0,
status: "1",
createTime: "2022-02-21 14:06:29",
updateTime: "2022-02-21 14:06:29",
2022-10-13 17:42:32 +08:00
children: [],
},
],
},
{
2022-11-17 17:29:47 +08:00
id: 29,
tenantId: 3,
parentId: 0,
title: "联系我们",
2022-10-13 17:42:32 +08:00
link: "/",
2022-11-17 17:29:47 +08:00
targetFlag: "0",
sort: 0,
status: "1",
createTime: "2022-11-15 16:20:19",
updateTime: null,
2022-10-13 17:42:32 +08:00
children: [
{
2022-11-17 17:29:47 +08:00
id: 30,
tenantId: 3,
parentId: 29,
title: "客服电话18156053255",
link: "/",
targetFlag: "0",
sort: 0,
status: "1",
createTime: "2022-11-15 16:20:39",
updateTime: null,
2022-10-13 17:42:32 +08:00
children: [],
},
{
2022-11-17 17:29:47 +08:00
id: 31,
tenantId: 3,
parentId: 29,
title: "邮箱zky@gmail.com",
link: "/",
targetFlag: "0",
sort: 0,
status: "1",
createTime: "2022-11-15 16:20:56",
updateTime: null,
2022-10-13 17:42:32 +08:00
children: [],
},
{
2022-11-17 17:29:47 +08:00
id: 32,
tenantId: 3,
parentId: 29,
title: "地址安徽省合肥市高新区创新产业园D1南楼",
link: "/",
targetFlag: "0",
sort: 0,
status: "1",
createTime: "2022-11-15 16:21:43",
updateTime: null,
2022-10-13 17:42:32 +08:00
children: [],
},
2022-11-17 17:29:47 +08:00
],
},
{
id: 33,
tenantId: 3,
parentId: 0,
title: "解决方案",
link: "/",
targetFlag: "0",
sort: 0,
status: "1",
createTime: "2022-11-15 16:22:41",
updateTime: null,
children: [
2022-10-13 17:42:32 +08:00
{
2022-11-17 17:29:47 +08:00
id: 34,
tenantId: 3,
parentId: 33,
title: "企业创新升级",
link: "/",
targetFlag: "0",
sort: 0,
status: "1",
createTime: "2022-11-15 16:22:58",
updateTime: null,
2022-10-13 17:42:32 +08:00
children: [],
},
{
2022-11-17 17:29:47 +08:00
id: 35,
tenantId: 3,
parentId: 33,
title: "成果转化",
link: "/",
targetFlag: "0",
sort: 0,
status: "1",
createTime: "2022-11-15 16:23:21",
updateTime: null,
2022-10-13 17:42:32 +08:00
children: [],
},
],
},
],
};
state.list = res.data;
}
async function getConfig() {
// const mobileData = await config({ key: "mobile" });
const mobileData = {
code: 200,
message: "ok",
data: { mobile: { name: "联系电话", value: "18156053255" } },
};
state.mobile = mobileData.data.mobile.value;
// const emailData = await config({ key: "email" });
const emailData = {
code: 200,
message: "ok",
data: { email: { name: "网站邮箱", value: "zky@gmail.com" } },
};
state.email = emailData.data.email.value;
// const addressData = await config({ key: "address" });
const addressData = {
code: 200,
message: "ok",
data: {
address: { name: "地址", value: "安徽省合肥市高新区创新产业园D1南楼" },
},
};
state.address = addressData.data.address.value;
2022-10-01 09:12:01 +08:00
2022-10-13 17:42:32 +08:00
// 无法同时传多个key
2022-10-01 09:12:01 +08:00
2022-10-13 17:42:32 +08:00
// config({ key: "mobile,email,address" }).then((res) => {
// console.log(res);
2022-10-01 09:12:01 +08:00
2022-10-13 17:42:32 +08:00
// state.mobile = res.data.mobile.value;
// state.email = res.data.email.value;
// state.address = res.data.address.value;
// });
}
getNavigation();
getConfig();
2022-11-17 17:29:47 +08:00
const solutionCategoryList = ref([]);
const loadsolutionCategoryList = async () => {
const { data } = await getCategory();
solutionCategoryList.value = data;
};
loadsolutionCategoryList();
2022-10-01 09:12:01 +08:00
</script>
<style lang="scss" scoped>
.webFooter {
background: #dee9ff;
}
.wrap {
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;
font-family: Source Han Sans CN;
font-weight: 500;
color: #333333;
}
.qrcode {
width: 88px;
height: 88px;
}
.icp-beian {
text-align: center;
}
}
</style>